Game says UserID isn't equal to the same number

Heres the code, I don’t understand this

	print(player.UserId,script.Parent.Player.Value)
	print(player.UserId==script.Parent.Player.Value)	
	if player.UserId==script.Parent.Player.Value then
		if fullshift==false then
			print("splow?")
		elseif fullshift==true then
			print("splow!")
		end
	else
		warn("Not good")
	end
end)

Heres the output

  00:36:36.989  436519811 436519811  -  Server - Attack:3
  00:36:36.989  false  -  Server - Attack:4
  00:36:36.989  Not good  -  Server - Attack:12

What type of Value is this. If it is a string then it won’t match. If it is a string, then you could use

if player.UserId == tonumber(script.Parent.Player.Value) then

I was rewriting the code from an older version, the value was an string. Thanks :pray:

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