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 weapons script

Previous Thread :: Next Thread 
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
24 Nov 2012 08:14 PM
When vip shirt is on you and you spawn this doesnt work, how come?

function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer.Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=98812413" then --Put your shirt's texture after the =
clone = game.Lighting.Potion:clone()
clone4 = game.Lighting.Potion:clone()
clone5 = game.Lighting.WindForce:clone() --put your tool in the Lighting and change "TOOL" to the name of our tool.
clone6 = game.Lighting.Potion:clone()
clone.Parent = newPlayer.Backpack
clone4.Parent = newPlayer.Backpack
clone5.Parent = newPlayer.Backpack
clone6.parent = newPlayer.Backpack
end
end

function onPlayerAdded(newPlayer)
newPlayer.Changed:connect(function(property)
if property == "Character" then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerAdded)
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
24 Nov 2012 08:24 PM
Anybody?
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
24 Nov 2012 08:27 PM
"http://www.roblox.com/asset/?id=98812413"
This is a T-shirt, not a texture.
Do the id minus one. (98812412)
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
24 Nov 2012 08:41 PM
Still no work
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
24 Nov 2012 08:41 PM
Still no work
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
24 Nov 2012 08:43 PM
You need to post an output.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
24 Nov 2012 08:52 PM
local Texture = 'http://www.roblox.com/asset/?id=98812413'

Game.Players.PlayerAdded:connect(function(Player)
repeat wait() until Player.Character
if Player.Character.Torso.roblox.TextureId == Texture then
Game.Lighting['weapon name']:Clone().Parent = Player.StarterGear
-- repeat above if more than one weapon
end
end)
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
24 Nov 2012 09:38 PM
What about this ?

function Respawn(p)
wait(5)
if game:GetService("BadgeService"):UserHasBadge(p.userId, 98812413) then --Tshirt ID
local a = game.Lighting:FindFirstChild("WindForce")
if a ~= nil then
local b = a:GetChildren()
for i=1, #b do
b[i]:Clone().Parent = p.Backpack
end
end
end
end
function Enter(p)
wait(5)
if game:GetService("BadgeService"):UserHasBadge(p.userId, 98812413) then --Tshirt ID
local c = game.Lighting:FindFirstChild("Potion")
if c ~= nil then
local d = c:GetChildren()
for i=1, #d do
d[i]:Clone().Parent = p.Backpack
end
end
end
p.Changed:connect(function (property)
if (property == "Character") then
Respawn(p)
end
end)
end
game.Players.ChildAdded:connect(Enter)
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