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: Vip script not working. ):

Previous Thread :: Next Thread 
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Apr 2013 10:42 PM
Game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.StarterGear
repeat wait() until plr.Backpack
local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id.
local Jetpack = game.Debris.Jetpack -- here
local Medkit = game.Debris.Medkit -- here
local Firebrand = game.Debris.Firebrand -- here
local char = plr.Character
if char ~= nil then
if char:FindFirstChild("Shirt Graphic").Graphic == texture then
Jetpack:clone().Parent = plr.StarterGear
Medkit:clone().Parent = plr.StarterGear
Firebrand:clone().Parent = plr.StarterGear
wait(1)
char:BreakJoints()
else
print("not vip")
end
end
end)


20:37:53.274 - Workspace.Script:20: attempt to index a nil value
20:37:53.284 - Script "Workspace.Read Me", Line 20
20:37:53.286 - stack end


I've also tried
if char:FindFirstChild("Shirt Graphic").Graphic == "Thelinkblah" then --the link is the txture just got lazy to write it right now


Also I've also tried using a variable
local shirt = char:FindFirstChild("Shirt Graphic")
if shirt.Graphic == texture(also tried "thelinkblah" then ....

Any ideas?
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
06 Apr 2013 11:00 PM
Game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.StarterGear
repeat wait() until plr.Backpack
local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id.
local Jetpack = game.Debris.Jetpack -- here
local Medkit = game.Debris.Medkit -- here
local Firebrand = game.Debris.Firebrand -- here
local char = plr.Character
if char ~= nil then
if char:FindFirstChild("Shirt Graphic").Graphic == texture then
Workspace.Jetpack:clone().Parent = plr.StarterGear --(Change the workspace here into where your Item is)
Workspace.Medkit:clone().Parent = plr.StarterGear
Workspace.Firebrand:clone().Parent = plr.StarterGear
wait(1)
char:BreakJoints()
else
print("not vip")
end
end
end)
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Apr 2013 11:02 PM
Thanks fo trying,but that won't make a diffrence, nor work. BUMP please help!
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
06 Apr 2013 11:03 PM
Line 20 is the end. Also: char:BreakJoints() why would you do this?

Here is it buffed a bit:

Game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.StarterGear
repeat wait() until plr.Backpack
local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id.
local Jetpack = game.Debris:findFirstChild("Jetpack") -- here
local Medkit = game.Debris:findFirstChild("Medkit") -- here
local Firebrand = game.Debris.Firebrand -- here
local char = plr.Character
if char then
if char:FindFirstChild("Shirt Graphic").Graphic == texture then
Jetpack:clone().Parent = plr.StarterGear and plr.BackPack
Medkit:clone().Parent = plr.StarterGear and plr.BackPack
Firebrand:clone().Parent = plr.StarterGear and plr.BackPack
else
print("not vip")
end
end
end)
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
06 Apr 2013 11:05 PM
Game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.StarterGear
repeat wait() until plr.Backpack
local texture = "www.roblox.com/asset/?id=84750703" --Took the time to get the id.
local Jetpack = game.Debris:findFirstChild("Jetpack") -- here
local Medkit = game.Debris:findFirstChild("Medkit") -- here
local Firebrand = game.Debris.Firebrand -- here
local char = plr.Character
if char then
if char:FindFirstChild("Shirt Graphic").Graphic == texture then
a = Jetpack:clone()
a.Parent = plr.StarterGear and plr.BackPack

b = Medkit:clone()
b.Parent = plr.StarterGear and plr.BackPack


c=Firebrand:clone()
c.Parent = plr.StarterGear and plr.BackPack

else
print("not vip")
end
end
end)
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Apr 2013 11:06 PM
To get the tools in the bacpack
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Apr 2013 11:08 PM
Also the P in BackPack is not capitalized, its lowercase.
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
06 Apr 2013 11:08 PM
'and plr.Backpack'
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
06 Apr 2013 11:08 PM
Ye I know. I messed up on the capitalization. My bad.
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
06 Apr 2013 11:13 PM
Didnt work.. Says there is a error where the if texture == texure then line.
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