So I'm new to StarterGui's and all but I made a working one in studio, and I go to ROBLOX Player to play the game. and it's not working. This is specifically an IntroGui and all you have to do is press play, which triggers the other scripts. However, once pressed play, nothing happens. I have no clue what's wrong and can I have some help?

function onButtonClicked()
	workspace.CurrentCamera.CameraType = "Custom"
	workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
	wait(0.03)
	game.ReplicatedStorage.Start:Clone().Parent = game.ServerScriptService
	script.Parent.Parent.Parent:Destroy()
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

This is a LocalScript.

2 comments

0

LocalScripts can't access ServerScriptService.

0

Oh I see thank you.