It works in studio but not a server. In the server, EVERYTHING happens besides the camera showing you the object. In studio, everything happens; even the part where it shows you the object.
Any help? There was no output.
script.Parent.Touched:connect(function(hit)
if hit.Name == "Block" then
game.Workspace["Applause "]:Play()
hit:Destroy()
print("Level passed!")
for i,v in pairs(game.Players:GetChildren())do
v.PlayerGui.Introduction.Label:TweenPosition(UDim2.new(0, 0, 0, 300))
v.PlayerGui.Introduction.Label.Text = "Nice job!"
wait(5)
v.PlayerGui.Introduction.Label.Text = "From now on, I'll give you a fun fact every time you win."
wait(5)
v.PlayerGui.Introduction.Label.Text = "FUN FACT: The conveyors go at a speed of 20."
wait(5)
v.PlayerGui.Introduction.Label:TweenPosition(UDim2.new(0, 0, 0, 500))
game.Workspace.CurrentCamera.CameraSubject = game.Workspace.FO_Teleporter.Camera
wait(1)
game.Workspace.CurrentCamera.CameraType = "Scriptable" -- Locks in place, no rotation or movement
game.Workspace.ForeignDetect:Play()
v.PlayerGui.Introduction.Label.Text = "FOREIGN OBJECT DETECTED: Teleporter"
wait(5)
v.PlayerGui.Introduction.Label.Text = "It teleports one object to the second teleporter on the stage."
wait(4)
game.Workspace.CurrentCamera.CameraType = "Fixed"
v.Character:MoveTo(game.Workspace.Stage4.SpawnLocation.Position)
end
end
end)

2 comments
Strange, I was literally just having this exact same problem with a game I'm working on. Not sure why exactly it's happening...
I thought it was because I was using a normal script, but changing it only made it worse