EASY Sliding Door Tutorial - Roblox Studio (E TO OPEN)

Аватар автора
Геймерская Энергия
This video shows an easy way to make a sliding door in Roblox Studio. This door is E to open, but I might make another video where you click to open. Script: local frame = script.Parent local Frame = script.Parent local openSound = frame:WaitForChild("DoorOpen") local closeSound = frame:WaitForChild("DoorClose") local proximityprompt = Frame:WaitForChild("ProximityPrompt") local model = frame.Parent local frameClose = model:WaitForChild("DoorFrameClose") local frameOpen = model:WaitForChild("DoorFrameOpen") local opened = model:WaitForChild("Opened") local tweenService = game:GetService("TweenService") local debounce = true proximityprompt.Triggered:Connect(function() if debounce == true then debounce = false if opened.Value == true then opened.Value = false closeSound:Play() tweenService:Create(frame,TweenInfo.new(1),{CFrame = frameClose.CFrame}):Play() else opened.Value = true openSound:Play() tweenService:Create(frame,TweenInfo.new(1),{CFrame = frameOpen.CFrame}):Play() end wait(1) debounce = true end end)

0/0


0/0

0/0

0/0