this code stops on the if v == plrid then part and i have no idea why
You’re comparing the player itself rather than the UserId of the player, you can just add a .UserId
at the end of the v.
Let me know if this works.
Move this to #help-and-feedback:scripting-support so it doesn’t get taken down
dident work this is what i did:
What do the print statements print?
try this:
if v.UserId == tonumber(PlrId) then
--Code
end
Might be the number inputed is a string rather than a number.
im not typing the players id in im typing the name
Oh.
Thats a weird variable name if you’re inputing a player name, not an id??
try keeping the original u had, just add a .Name
to the end of the v instead.
kind of weird that nothing is happening.
Works! thx so much for the help
Please edit this to put it in the Scripting Support forum.
Also mark whichever one of @JAcoboiskaka1121’s posts was your Solution to help other people out.
let me explain this
plrid => text
v => player
you are trying to check if the text is equal to a player
which is not true
you can go v.UserId if you want the player id
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.