works in studio mode but not test mode or play
14:09:16.988 - Players.Player1.PlayerGui.ScreenGui.LocalScript:193: attempt to index local 't' (a nil value)
gui.Play.MouseButton1Down:connect (function()
local r = game.Players.LocalPlayer.Character:FindFirstChild("Head")
local t = game.ServerScriptService:FindFirstChild("cam2")
t:Clone().Parent = r
t:Clone().Parent = r
t:Clone().Parent = r
gui.Parent.Parent.Character.Torso.CFrame = CFrame.new(math.random (7370.002,7385.002), 94.889, -8137.3)
gui.Parent.Parent.Character.Torso.Anchored = false
gui.Sound:Stop()
gui.Sound.SoundId = "rbxassetid://142322500"
gui.Sound:Play()
gui.Core.Visible = false
gui.Overlay.Visible = false
gui.Play.Visible = false
end)

2 comments
Please accept answer and upvote if this helps!
Great answer, and nice explanation. Great job AKAHADES.