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)

3 comments
Omg what a Silly mistake I made. Thank you so much!!
You're welcome
I would give you a point if you could :L