Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why isn't this script working? UNANSWERD

Asked by 10 years ago

when i added

1script.IsOpened.Value = true
2script.IsOpening.Value = true
3script.Parent.CFrame = cf
4script.OpenSound:Play()
5end

the script suddenly broke. idk why :/

01local cf = script.Parent.CFrame
02 
03function onClicked()
04if script.IsOpened.Value == false and script.IsOpening.Value == false then
05script.IsOpening.Value = true
06for i = 1,16 do
07script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 0, -0.23) * CFrame.fromEulerAnglesXYZ(0, -0.1, 0)
08wait(0.01)
09end
10script.IsOpening.Value = false
11script.IsOpened.Value = true
12elseif script.IsOpened.Value == true and script.IsOpening.Value == false then
13script.IsOpening.Value = true
14for i = 1,16 do
15script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0) * CFrame.new(0, 0, 0.23)
View all 29 lines...

this is a script in a brick. its a door.

0
Please explain what you are trying to do, where the script is, whether it is a server or local script, and any output. Perci1 4988 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

It has no tooting brick in it :/

0
ik their is one Xandenge 0 — 10y
Ad

Answer this question