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: Need help on this script *URGENT*

Previous Thread :: Next Thread 
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
02 Apr 2013 05:32 AM
Ok so I want to be able to get multiple weapons from lighting into your backpack if you have the tshirt on.
The weapons will be in lighting and I wanted to ask why wont this work and if your suppose to group the weapons in lighiting:

local Tools = game.Lighting.Tools:GetChildren() --Tools model location
local AssetID = "http://www.roblox.com/asset/?id=111295177" --Tshirt asset ID

game.Workspace.ChildAdded:connect(function(c) --Waits for child
if c:findFirstChild("Torso") then --Checks if child has torso
if c.Torso.roblox.Texture==AssetID then --Checks texture
for i=1,#Tools do --Gives tools
Tools[i]:Clone().Parent = c
end
end
end)
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Apr 2013 05:37 AM
Nonononononononononononononononnono

We have the adge service for a reason. Do not make the use wear a T-shirt, for the love of God.

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
02 Apr 2013 05:40 AM
what
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
02 Apr 2013 05:41 AM
HEEELPP
Report Abuse
MarcsMinion is not online. MarcsMinion
Joined: 22 Oct 2011
Total Posts: 8734
02 Apr 2013 05:51 AM
s
Report Abuse
HD188753 is not online. HD188753
Joined: 13 Jun 2012
Total Posts: 5021
02 Apr 2013 05:55 AM
Wrong forum, go to scripting helpers.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
02 Apr 2013 05:58 AM
function VIPCheck(Player, Items, Conditions, Rank, Callback)
for Type, ID in pairs(Conditions) do
function Check(Type, ID)
for _,Value in pairs(ID) do
if Type == "Badge" then
if game:GetService("BadgeService"):UserHasBadge(Player.userId, tonumber(Value)) then return true end
elseif Type == "Group" then
if Player:IsInGroup(Value) then
if Rank and Rank[Value] then
if tonumber(Rank[Value]) then --[ Rank --]]
if Player:GetRankInGroup(Value) >= Rank[Value] then return true end
else --[ Role --]]
if Player:GetRoleInGroup(Value):lower() == Rank[Value]:lower() then return true end
end
else
return true
end
end
elseif Type == "Gamepass" then
if game:GetService("GamePassService"):PlayerHasPass(Player, Value) then return true end
elseif Type == "Username" then
if Player.Name:lower() == Value:lower() then return true end
end
return false
end
end
if not Check(Type, ID) then return end
end
if Callback then Callback(Player) end
for _, Item in pairs(Items) do
Item:Clone().Parent = Player.Backpack
Item:Clone().Parent = Player.StarterGear
end
end

VIPCheck(Player, {game.Lighting.Tools:GetChildren()}, {["Badge"] = {111295177}})


Documentation can be found here: http://www.roblox.com/VIP-Script-item?id=105005092

~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
02 Apr 2013 09:21 AM
Hello valued player,
You have reached the Scripters subforum. Here at, 'Scripters,' we like to discuss computer science and advanced Lua topics. We understand that it is April Fools, but spam is still not appreciated. Even if YOU think it's funny, the recieving end of your post may not. Thanks!

~ Not a Moderator, The Makeshift Support Team, thedestroyer115
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