Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I make this script work with a Serverscript instead of a Local?

game.Players.PlayerAdded:Connect(function(player)
Instance.new("IntValue",game.Workspace)
game.Workspace.Value.Name = "ServerChecks"
game.Workspace.ServerChecks.Parent = game.Players.LocalPlayer
end)

Wondering how I could make this work with a serverscript rather then a Local, thanks!

1 answer

✓ Accepted answer

You have to put it in ServerServiceScript

game.Players.PlayerAdded:Connect(function(player)
	local intVal = Instance.new("IntValue",game.Workspace)
	intVal .Name = "ServerChecks"
	intVal .Parent = player.Character
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.