Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

You misspelt Workspace on line 10.

3 comments

0

Omg what a Silly mistake I made. Thank you so much!!

0

You're welcome

0

I would give you a point if you could :L

This discussion is preserved as it was. New answers, comments, and votes are closed.