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

Can anyone tell why isn't this simple script not Working?

Asked by
faruque 30
10 years ago

The rest of the script work but in line 10 where it says "game.Worksace.SliderTrap.Slider.CFrame = CFrame.new(-13.868, 4.711, -12.051)" isn't CFraming the Part know as "Slider" Back to it normal Positions.


function onClick() script.Parent.BrickColor = BrickColor.new("Really red") script.Parent.Parent.Slider.Friction = 0 script.Parent.Parent.Slider.Anchored = false wait(1) script.Parent.Parent.Slider.Friction = 1 game.Workspace.SliderTrap.Slider.Anchored = true wait(5) script.Parent.BrickColor = BrickColor.new("Camo") game.Worksace.SliderTrap.Slider.CFrame = CFrame.new(-13.868, 4.711, -12.051) end script.Parent.ClickDetector.MouseClick:connect(onClick)

1 answer

Log in to vote
0
Answered by 10 years ago

You misspelt Workspace on line 10.

0
Omg what a Silly mistake I made. Thank you so much!! faruque 30 — 10y
0
You're welcome Spongocardo 1991 — 10y
0
I would give you a point if you could :L faruque 30 — 10y
Ad

Answer this question