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.

4 comments
Thanks merely, but I put that and it said another error message: "Expected '=', got 'game'". what now?
You generally need to use parentheses when calling a method. print(game.Players.LocalPlayer..'is verified.') instead of Print game.Players.LocalPlayer..'is verified.'
Thanks!
Wait, now it says basically that listofnames and Player are unknown. I'm a little confused.