Are Number Values Hackable?

Hello, I wanted to know are number values in the player easily hackable such as like this

game.Players.PlayerAdded:Connect(function(plr)
	
	local ImportantFolder = Instance.new("Folder", plr)
	ImportantFolder.Name = "IMFOLDER"
	
	local Attributes = Instance.new("Folder", plr)
	Attributes.Name = "attributes"
	
	local plrS = Instance.new("NumberValue", ImportantFolder)
	plrS.Name = "PlayerStrength"
	plrS.Value = 120 -- When skill added change to players skill level
	
	local hasBall = Instance.new("BoolValue", ImportantFolder)
	hasBall.Name = "hasBall"
	hasBall.Value = false
	
	local isBlocking = Instance.new("BoolValue", ImportantFolder)
	isBlocking.Name = "isBlocking"
	isBlocking.Value = false
	
	local isCatching = Instance.new("BoolValue", ImportantFolder)
	isCatching.Name = "isCatching"
	isCatching.Value = false
	
	local speed = Instance.new("NumberValue", Attributes)
	speed.Name = "Speed"
	speed.Value = 16
	
	local staminaRegen = Instance.new("NumberValue", Attributes)
	staminaRegen.Name = "StaminaRegen"
	staminaRegen.Value = 10
	
end)

if so how would I fix that so the values are accessible to other scripts easily.

It really depends, but usually no. If this is in a server script, then the values are completely protected. If you are in a localscript, then the values can be changed through exploits. Keep in mind that exploits can change parameters in remote events fired from the client.

I assume that this is in a server script, because it has a PlayerAdded function, so this would not be exploitable. Exploits are not as big of a problem now as they have been in the past, so while YES you should keep them in mind, it is not something you need to prioritize at the moment. Good luck

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.