|
| 15 Feb 2016 01:57 PM |
I have no idea why this is not working. I get no errors at all.
local Owners = {"Player"} function CreateAlert(Name,Text) for i,e in pairs(game.Players:GetPlayers()) do local GUI = Instance.new("ScreenGui",e.PlayerGui) local Frame = Instance.new("Frame",GUI) local TextLabel = Instance.new("TextLabel",Frame) GUI.Name = Name Frame.BackgroundTransparency = 0.1 Frame.BorderSizePixel = 0 Frame.BackgroundColor3 = Color3.new(0,0,0) Frame.Position = UDim2.new(.05,0,0.05,0) Frame.Size = UDim2.new(.9,0,.9,0) TextLabel.BackgroundTransparency = 1 TextLabel.Position = UDim2.new(0,0,0,0) TextLabel.Size = UDim2.new(1,0,1,0) TextLabel.Font = "SourceSansLight" TextLabel.FontSize = "Size32" TextLabel.Text = Text end end game.Players.PlayerAdded:connect(function(player) if CheckOwner(player.Name) == true then CreateAlert("Notification","The user "..player.." with the role Owner has joined") wait(5) player.PlayerGui.Notification:Destroy() end end) |
|
|
| Report Abuse |
|
|
| 15 Feb 2016 02:01 PM |
Oh, sorry. Here's my checkowner function
function CheckOwner(Player) for i,e in pairs(Owners) do if Player == e then return true else return false end end end |
|
|
| Report Abuse |
|
|
| 15 Feb 2016 02:07 PM |
Nevermind, I did something and it fixed it.
Thanks anyways |
|
|
| Report Abuse |
|
| |