Advertisement

How To Make A Click To Open and Close Door In Roblox Studio (2019)

How To Make A Click To Open and Close Door In Roblox Studio (2019) 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

clickable door roblox,How to make a clickable door in Roblox Studio,How to make a door,make a door open,clickable door,clicking door,click to open,make a door in roblox studio,click open and close door in Roblox Studio,how to script on roblox,roblox coding tutorial,roblox scripting basics,roblox scripting tutorial,how to code,coding,how to make a roblox game 2019,ROBLOX Scripting Tutorial roblox studio,how to make a game in roblox,how to make a roblox game,

Post a Comment

0 Comments