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: How would I..

Previous Thread :: Next Thread 
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
24 Feb 2014 07:57 PM
..make this script not work on certain people? Like a permission script that makes it not work on the people in the permission part of the script.


Here's the script.


script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
while wait() do
local m = Instance.new("Hint", plr.PlayerGui)
m.Text = "Text"
end
end
end
end)
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
24 Feb 2014 08:04 PM
Anyone?
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 04:48 PM
Like a permission script from the VIP doors. But I want it for whoever has there name in the script it won't work on them but it will work on the people that don't have their name in the script.
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
25 Feb 2014 04:54 PM
So I'm supposing this means something like you only want the message to display if the person is a VIP. So here we go:

deluxeplrs = {icanxlr8, lukemad999} -- Add other people's names by putting a comma after your name, or erasing my name. (Dun do it.)

function checkforplayer(plr)
for k, v in pairs(deluxeplrs) do
if tostring(v) == plr.Name then
fair = true
else
fair = false
end
end
return fair
end
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if checkforplayer(plr) == true then
while wait() do
local m = Instance.new("Hint", plr.PlayerGui)
m.Text = "Text"
end
end
end
end
end)


Did you know it's illegal to hunt Martians on Jupiter?
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 05:22 PM
It's not working. :/
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 05:33 PM
:I
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
25 Feb 2014 05:35 PM
he forgot to put deluxeplayers as strings.
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 05:36 PM
Oh :/
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 06:16 PM
Bump :/
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 06:22 PM
b3
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
25 Feb 2014 06:28 PM
Hello...?
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
26 Feb 2014 08:01 PM
qq
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
01 Mar 2014 12:06 AM
.
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
01 Mar 2014 12:14 AM
dude=dave2011
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr==dude then
while wait() do
local m = Instance.new("Hint", plr.PlayerGui)
m.Text = "Text"
end
end
end
end
end)
change dude to the person you want it to work for
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
01 Mar 2014 08:50 AM
Well what do I do if I want to put more than 1 persons name?
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
01 Mar 2014 10:19 AM
dudes={"dave2011","YourMom","stopbeinglazywithtables"}
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if game.Players:GetPlayerFromCharacter(hit.Parent) then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
for i=1,#dudes do
if plr.Name==dudes[i] then
while wait() do
local m = Instance.new("Hint", plr.PlayerGui)
m.Text = "Text"
end
end
end
end
end
end)
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
01 Mar 2014 10:21 AM
Do you even Lua brav?
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
01 Mar 2014 11:41 AM
who? me?
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
01 Mar 2014 06:45 PM
Thanks.
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
02 Mar 2014 05:56 PM
Wait, it doesn't work. :I
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
02 Mar 2014 06:00 PM
..
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
02 Mar 2014 06:08 PM
lazy, you could have fixed it. use a NORMAL script
the comments are there because I am sure you will mess something up

vip = {"lazyNonScripter"} --Add names as !*STRINGS*! which are "" okay?????

script.Parent.Touched:connect(function(hit) --Make sure parent is a part
if hit.Parent:findFirstChild("Humanoid") then --If at least an NPC
local plr = game.Players:GetPlayerFromCharacter(hit.Parent) --Gets the player
if plr then if --Checks if player exists
plr:lower() == vip:lower() then --Checks if admin
local m = Instance.new("Hint", plr.PlayerGui)
repeat m.Text = "Text" until false --change false to a condition
end
end
end
end)
Report Abuse
Lem0nzz is not online. Lem0nzz
Joined: 18 Jul 2011
Total Posts: 926
02 Mar 2014 06:09 PM
ahahaha u got trolllddd
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
05 Mar 2014 04:39 PM
Okay. Would it screw up the script if I renamed the name of the vip thing? And where ever it shows it name?
Report Abuse
lukemad9999 is not online. lukemad9999
Joined: 05 Jun 2012
Total Posts: 3838
05 Mar 2014 06:22 PM
...
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