I wanted to make a pin, somehow this error popped out
Here’s my code:
local function resetPin(plr)
plr.Pin.Value == 0
end
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
message = string.lower(message)
local command = message[1]
local target = message[2]
resetPin(target)
end)
end)
Anyone know how to fix the problem?