Share:
Notifications
Clear all

GLITCHY DOOR

 

Newbie
Joined: 2 months ago
Posts: 0
Topic starter  

Hello it seems that door doesn't work, i have copied it from a Minecraft door and still failure to do this. Yes i copied every part dozens of it!

 

 

EDIT:

 

Oh and i forgot the same scripts were:

 

--[[Created by OIogist

on August 13, 2019

at 7:46 P.M.]]

 

--Define Varaibles

local model = script.Parent

local door = model.MinecraftDoor

local pos1 = model.Pos1

local pos2 = model.Pos2

 

local open = door.OpenSound

local close = door.CloseSound

 

local click = model.Clicker

 

local cf1 = CFrame.Angles(0, math.rad(90), 0)

 

--Event

click.MouseClick:connect(function()

door.CFrame = door.CFrame * cf1

if door.Position == pos1.Position then

door.Position = pos2.Position

open:Play()

elseif door.Position == pos2.Position then

door.Position = pos1.Position

close:Play()

end

end)

 (The Script named as Event"

 


Quote
Share: