Can someone tell me how to fix this script or give me the right code?
function run()
local plr = game.Players.LocalPlayer
local camera = game.Workspace.Camera2:Clone()
if plr.PlayerGui then
camera.Parent = plr.PlayerGui
end
game.ScreenGui.Intro.Play.MouseButton1Click:Connect(run)

3 comments
Where is your problem occurring? Why are you trying to 'move a script to another service once a button is clicked'?
I am trying to move the camera script to startergui once the play button is clicked.
I do not know where it is occuring.