you see, I've been practicing my scripting and I got this error message that I don't understand. here is my code:
local Listofnames = "TroytheDestroyer, DadatheDestroyer, " local playeradded = game.Players.PlayerAdded if playeradded == listofnames then -- global listofnames unknown Print game.Players.LocalPlayer..'is verified.' -- I want it to put the player's name that joined in the output. end if playeradded ~= listofnames then -- global listofnames unknown Player:Kick() -- global Player unknown Print game.Players.LocalPlayer..'has been kicked due to insufficent privilages.' end -- is that what i do to make the kicked player's name appear on the output? -- to all of you who saw this script before, I just want to test my scripting. so this is my first script im going to make.
thanks for reading.
When comparing objects, use the double equals sign ==
if playeradded == listofnames then