Roblox Studio Indonesia : Buka Pintu dengan menahan tombol E

Subscribers:
15,900
Published on ● Video Link: https://www.youtube.com/watch?v=DpSRcEYgfWs



Roblox
Game:
Roblox (2006)
Duration: 10:09
4,055 views
137


Di video kali ini saya akan bagikan tutorial membuka pintu dengan menahan tombol E ( atau tombil lain yg bisa kita atur )

Please Like dan Subscribe agar dapat membantu channel ini tumbuh :p


Script yang dipakai :
local TweenService = game:GetService("TweenService")

local engsel = script.Parent.Engsel
local prompt = script.Parent.Pintu.ProximityPrompt

local buka = {}
buka.CFrame = engsel.CFrame * CFrame.Angles(0, math.rad(90), 0)

local tutup = {}
tutup.CFrame = engsel.CFrame * CFrame.Angles(0, 0, 0)

local tweenInfo = TweenInfo.new(1)
local tweenOpen = TweenService:Create(engsel, tweenInfo, buka)
local tweenClose = TweenService:Create(engsel, tweenInfo, tutup)

prompt.Triggered:Connect(function()
if prompt.ActionText == "Tutup" then
tweenClose:Play()
prompt.ActionText = "Buka"
else
tweenOpen:Play()
prompt.ActionText = "Tutup"
end
end)







Tags:
hold e to open door
roblox studio indonesia cara buka pintu dengan tombol
cara buka pintu dengan menahan tombol e



Other Statistics

Roblox Statistics For Roblox Studio Indonesia

Roblox Studio Indonesia currently has 1,259,838 views spread across 247 videos for Roblox. There's over 2 days worth of watchable video for Roblox published on his channel, or 92.89% of the total watchable video on Roblox Studio Indonesia's YouTube channel.