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 » Scripting Helpers
Home Search
 

Re: Permissions Script not working

Previous Thread :: Next Thread 
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
29 Aug 2012 11:48 PM
So this script I have checks if you are in the table; if you are, then a test message comes up in your player.PlayerGui. I change the playername accordingly to what the test server gives me. Please help!

local access = {"thedeathmaster01", "Player"}

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg:lower():sub(1,4) == "test" and access[player.Name] then
hint = Instance.new("Hint", player.PlayerGui)
hint.Text = "Works!"
hint.Name = "testmsg"
wait(5)
player.PlayerGui.testmsg:Destroy()
end
end)
end)

This item is deprecated. Do not use it for new work.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
29 Aug 2012 11:53 PM
bumpity

This item is deprecated. Do not use it for new work.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
29 Aug 2012 11:57 PM
This item is deprecated. Do not use it for new work.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Aug 2012 12:01 AM
KMXD????!?!?!?!?!?!? DOOM?!?!!?!?? PLEASE HELP1!!1!!!!!

This item is deprecated. Do not use it for new work.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Aug 2012 12:02 AM
Still doesn't work:

local access = {"thedeathmaster01", "Player"}

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
for _,v in pairs(access[player.Name]) do
if msg:lower():sub(1,4) == "test" then
hint = Instance.new("Hint", player.PlayerGui)
hint.Text = "Works!"
hint.Name = "testmsg"
wait(5)
player.PlayerGui.testmsg:Destroy()
end
end
end)
end)

This item is deprecated. Do not use it for new work.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
30 Aug 2012 12:32 AM
BUMP!!!!!!!!!!!!!!!!!!!!

This item is deprecated. Do not use it for new work.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
30 Aug 2012 12:45 AM
Hmm..
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
30 Aug 2012 12:46 AM
dafuq??

for _,v in pairs(access[player.Name]) do
Report Abuse
einsteinK is not online. einsteinK
Joined: 22 May 2011
Total Posts: 1015
30 Aug 2012 03:23 AM
So this script I have checks if you are in the table; if you are, then a test message comes up in your player.PlayerGui. I change the playername accordingly to what the test server gives me. Please help!

local access = {"thedeathmaster01", "Player"}

function Check(name)
for k,v in pairs(access) do
if v:lower() == name:lower() then return true end
end
return false
end

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg:lower():sub(1,4) == "test" and Check(player.Name) then
hint = Instance.new("Hint", player.PlayerGui)
hint.Text = "Works!"
hint.Name = "testmsg"
wait(5)
player.PlayerGui.testmsg:Destroy()
end
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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