Is utilizing the StarterPlayer folder in the Workspace a security risk?

Heya.

I had a question regarding about securing my game and whether this is a smart idea or not.

I have been placing BoolValues inside the StarterCharacterScripts so my GameScript can navigate through the values within Clients.

Furthermore, I am also doing my best to try and secure the game to the best of my ability. Is this method considered faulty and impractical? Should I rather just script all the values from ServerScriptService?

To make this post less confusing: should I rely on the StarterPlayer/StarterCharacterScripts folder, or is it considered inefficient / bad practice?

There is a bug present where anything destroyed in the character gets replicated to the server, this could potentially break your server scripts if not handled correctly, for now it is best to store value objects outside of character, it is completely safe since they will be managed from the server.

So to clarify, I should:

1.) Create a server script within the the ServerScriptService.

2.) Have that server script responsible for managing/creating the values. For ex.:

local RS = game:GetService("ReplicatedStorage")

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)

		local afkVal = Instance.new("BoolValue")
		afkVal.Name = "AFK"
		afkVal.Value = true
		afkVal.Parent = character
		
		--Then so on more values added ect. ect.
	end)
end)

Is this correct?

Your still putting them inside the character, either put them in the player or another location

1 Like