Things working in studio, but not in actual game

I was making a game and you could flip levers, you are in first person, with camera bobbing, and doors. It was a good game until I tried to make a containment breach with it.

I made it so you could flip levers to release settings and stuff like that, in studio. But, when I test ingame, it doesn’t work.

Working In studio

Not working in game.

https://doy2mn9upadnk.cloudfront.net/uploads/default/original/4X/d/d/9/dd9c37c13a6792ed3f77169945b4fb7e5c0372e6.mp4`

First Lever Script :

    local ison = false
    local stop = true
    script.Parent.MouseClick:Connect(function(f)
    if  ison then
	
	workspace.BoolValues.ELOon.Value = true
	script.Parent.MaxActivationDistance = 0
	script.Parent.Parent.Parent.Union2.Orientation = Vector3.new(0,180,180)
	script.Parent.Parent.Parent.Union2.Position = Vector3.new(10.813, 94.54, -104.57)
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,.1,0))
	wait(2)
	script.Parent.MaxActivationDistance = 32
	ison = false
else
	workspace.BoolValues.ELOon.Value = true
	script.Parent.MaxActivationDistance = 0
	script.Parent.Parent.Parent.Union2.Orientation = Vector3.new(0, 0,0)
	script.Parent.Parent.Parent.Union2.Position = Vector3.new(10.813, 95.12, -104.57)
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(.1)
	workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.CFrame = CFrame.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,-.1,0))
	wait(2)
	script.Parent.MaxActivationDistance = 32
	ison = true
end
end)

Second Lever Script :

    local ison = false
    local play = 1
    script.Parent.MouseClick:Connect(function()
    if not ison then
	
	if play == 1 then
	ison = true
	play = play + 1
	script.Parent.hellowr:Play()
	workspace.BoolValues.STMon.Value = true
	script.Parent.Static:Play()
	script.Parent.Parent.Parent.Union2.Position = Vector3.new(12.803, 94.54, -104.57)
	script.Parent.Parent.Parent.Union2.Orientation = Vector3.new(0, 180, 180)
	end
	if play == 2 then
		ison = true
	workspace.BoolValues.STMon.Value = true
	script.Parent.Static:Play()
	script.Parent.Parent.Parent.Union2.Position = Vector3.new(12.803, 94.54, -104.57)
	script.Parent.Parent.Parent.Union2.Orientation = Vector3.new(0, 180, 180)
	end
else
	ison = false
	workspace.BoolValues.STMon.Value = false
	script.Parent.Static:Stop()
	script.Parent.Parent.Parent.Union2.Position = Vector3.new(12.803, 95.12, -104.57)
	script.Parent.Parent.Parent.Union2.Orientation = Vector3.new(0, 0, 0)
	end
    end)

Images :
image

image

image

image

7 Likes

Please refer to the category guidelines for more information about posting to this category. We can’t help you if you don’t provide any information for us to go by, only a problem scenario.

The only advice I can offer you here with the lack of information provided is to go back and debug your code, confer with the Developer Hub and make sure you’re using things correct.

5 Likes

Made more details about it. Thanks for the advice.

1 Like

There is any error in the console?

Type /console in the chat or search it in settings.

I believe you should look into TweenService, it’ll be much more efficient, there will be less lines of code and it should be easier to debug.

Some links you may find useful:

1 Like

There is no error in the console, only plugin errors.

Thank you for your service. pffftt… funny right? ehh…

But actually, thank you for that. I’ll be sure to use it.

2 Likes

You should use TweenService, this is an absolubtly mess to understand, with just 1 line of code you could do the same, and smoother

local tweenservice = game:GetService("TweenService")

tweenservice:Create(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell, TweenInfo.new(12), {Position = Vector3.new(workspace.Map.SCP_106_Full_Cell.SCP_106_Cell.Cell.Position + Vector3.new(0,12,0)))}):Play()
4 Likes

This is kind of off from the OP, but this game seems interesting. Could you provide the link?

1 Like