Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make if someone name is something the rest of the script is denied for them? Found out how

I wanna make a chat gui When I try to make a (Owner) at front for me It double posts so I am trying to make it cancel the first one for my player Then make the one with (Owner) start

I tried using ifplayername = player.Name == "fireboltofdeath" then I put ifplayername = false But when I added if ifplayername == true then The rest is script it cancelled the whole script.

1 answer

✓ Accepted answer

im not sure what your trying to say but if you want a script to only run for one player then you could do something like this

player = game.Players.LocalPlayer
if player.Name ~= "fireboltofdeath" then
script:Destroy()
end
-- rest of code here

2 comments

0

Ok thanks I'll see if it works then if it does..You know we earn reputation :/

0

Thanks but I found out how!

This discussion is preserved as it was. New answers, comments, and votes are closed.