My code looks like this, on the server:

local Name = nameShort(msg:sub(7,string.len(msg)))
if SS.Taken1.Value == true then
	print(Name) -- Prints
	if SS.User1.Value == Name then -- Stops her
		print(Name) -- Doesn't print
		SS.Taken1.Value = false
		SS.User1.Value = ""
		game.Players:FindFirstChild(Name):LoadCharacter()
	end
end

The print prints "tobiO0310" and the SS.User1.Value == "tobiO0310" the exact same. I can't understand, why it detects the wrong thing.

1 comment

0

I just needed to put the "SS.User1.Value" and "Name" value to a "tostring" function...