generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What is the problem with this?

Previous Thread :: Next Thread 
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
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
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
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
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
15 Feb 2016 02:07 PM
Nevermind, I did something and it fixed it.

Thanks anyways
Report Abuse
BlixBlocker is not online. BlixBlocker
Joined: 24 Dec 2013
Total Posts: 657
15 Feb 2016 02:08 PM
Thread closed
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image