In this video I show you how to make a clickable door in Roblox Studio (2019) Subscribe➡
Twitter ➡
HERE'S THE SCRIPT:
local model = script.Parent.Parent.Parent
local door = model.Door
local value = script.Opened.Value
local close = model.Close
local open = model.Open
script.Parent.MouseClick:Connect(function(player)
if value == false then
value = true
door.Position = open.Position
door.Orientation = open.Orientation
elseif value == true then
value = false
door.Position = close.Position
door.Orientation = close.Orientation
end
end)
#RobloxStudio #RobloxStudioTutorial #RobloxTutorial

0 Comments