|
| 12 Mar 2016 05:26 PM |
Alright so I need to get everyones player gui and remove it if they dont have the gamepass, this is my script, what do you add to the else
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) if player:IsInGroup(0000000) then print("player is in") else end end) end) |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 05:28 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) if player:IsInGroup(0000000) then print("player is in") else player.PlayerGui.[Name of gui]:Destroy end end) end)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Mar 2016 05:30 PM |
| wheres the part that gets the player? |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 05:30 PM |
try this
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) if player:IsInGroup(0000000) then print("player is in") else for _,v in pairs(player.PlayerGui:GetChildren()) do v:Destroy() end end end) end)
|
|
|
| Report Abuse |
|
|
| |
|