I am trying to make a client only script that will change de skybox for only the player that touch the part, but I can't get it to work only for the client. It is a local script and Ive tried putting it in StarterCharactersScripts and StarterPlayerScripts

Anyone have any idea why?

game.workspace.SKYBOX.Touched:Connect(function()
	game.Lighting.Sky.Parent = workspace
end)

2 comments

0

Localscripts affect the client, regular scripts affect the server.

0

Skys need to be parented to Lighting to work, why are you parenting it to the workspace?