|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
HD188753
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 5021 |
|
|
| 02 Apr 2013 05:55 AM |
Wrong forum, go to scripting helpers.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|