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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 08:12 PM
Okay, so what I want it to do is, well its a VIP script, if the user has my shirt, than they get to have a iris katana, & 125 health, but! It doesn't work.. =/

Can someone maybe see what's wrong with it, please?


wait()
local Character = script.Parent.Parent.Character
if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then
Character.Humanoid.MaxHealth = 125
Character.Humanoid.Health = 125
for i,v in pairs(script:GetChildren()) do
v.Parent = Character.Backpack
end
end
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 08:15 PM
I put the script in starter pack, and pasted the iris katana in the script =/
Report Abuse
Sam010100001 is not online. Sam010100001
Top 100 Poster
Joined: 09 Aug 2009
Total Posts: 34814
21 Dec 2011 08:26 PM
wait()
local Character = script.Parent.Parent.Character
if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then
Character.Humanoid.MaxHealth = 125
Character.Humanoid.Health = 125
for _, v in pairs(script:GetChildren()) do
local c = v:clone()
c.Parent = Character.Backpack
end
end

Also, is this the whole script?


What Pumpkin?
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 08:48 PM
Well, it should be. And nothing happend.. Again. No Iris katana >_<
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 08:51 PM
[ Content Deleted ]
Report Abuse
Sam010100001 is not online. Sam010100001
Top 100 Poster
Joined: 09 Aug 2009
Total Posts: 34814
21 Dec 2011 09:09 PM
game.Players.PlayerAdded:connect(function (NewPlayer)
local f = script:clone()
f.Parent = NewPlayer
if (script.Parent.Parent.Character) then
wait()
local Character = script.Parent.Parent.Character
if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then
Character.Humanoid.MaxHealth = 125
Character.Humanoid.Health = 125
for _, v in pairs(script:GetChildren()) do
local c = v:clone()
c.Parent = Character.Backpack
end
end
end
end)

This should be it

What Pumpkin?
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
21 Dec 2011 09:11 PM
^


----------
    ~ pwnedu46, the unicorn ~
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:25 PM
@sam, would i put it in starter gui, or starterpack? and would i insert the katana into the script?
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 09:29 PM
[ Content Deleted ]
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:32 PM
Sorry lowcart I'll try yours
Report Abuse
Sam010100001 is not online. Sam010100001
Top 100 Poster
Joined: 09 Aug 2009
Total Posts: 34814
21 Dec 2011 09:36 PM
@Lowcart
Lol you didn't even read it. Backpack is in the ipairs loop.

Also, pen, this should work anywhere at all

game.Players.PlayerAdded:connect(function (NewPlayer)
local f = script:clone()
f.Parent = NewPlayer
if (script.Parent.Parent.Character) then
wait()
local Character = NewPlayer
if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then
Character.Humanoid.MaxHealth = 125
Character.Humanoid.Health = 125
for _, v in pairs(script:GetChildren()) do
local c = v:clone()
c.Parent = Character.Backpack
end
end
end
end)
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 09:38 PM
[ Content Deleted ]
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:39 PM
@Sam, I tried yours. Yet to try Low's, none have worked so far, btw should I insert it in StarterGui, workspace, or StarterPack? my guess is starterpack.
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 09:41 PM
[ Content Deleted ]
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:41 PM
and yours?
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 09:42 PM
[ Content Deleted ]
Report Abuse
Sam010100001 is not online. Sam010100001
Top 100 Poster
Joined: 09 Aug 2009
Total Posts: 34814
21 Dec 2011 09:43 PM
@Lowcart

Character = NewPlayer = The player, not the character.

lololololol
Report Abuse
Lowcart is not online. Lowcart
Joined: 12 Sep 2011
Total Posts: 1323
21 Dec 2011 09:44 PM
[ Content Deleted ]
Report Abuse
Sam010100001 is not online. Sam010100001
Top 100 Poster
Joined: 09 Aug 2009
Total Posts: 34814
21 Dec 2011 09:45 PM
@Lowcart
Me
Because Character is all on the right side of the keyboard, where as player is all over the map (i.e. I can type character using the left hand only once, where as player uses the left hand a few times)
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:47 PM
@Sam,

@Low

could you guys try getting it to work in one of your games? i've been trying for an hour no luck... Use for the VIP shirt one of you shirts just for a test [IF YOU WOULD LIKE TO HELP]
Report Abuse
Pendragon is not online. Pendragon
Joined: 14 Oct 2007
Total Posts: 8263
21 Dec 2011 09:49 PM
>_<
Report Abuse
bobert3700 is not online. bobert3700
Joined: 30 Oct 2010
Total Posts: 45
21 Dec 2011 11:32 PM
Stupid Noobs...
He is missing the function...

function onPlayerEnter(pl)
wait()
local Character = script.Parent.Parent.Character
if Character.Torso.roblox.Texture == "http://www.roblox.com/asset/?id=67763698" then
Character.Humanoid.MaxHealth = 125
Character.Humanoid.Health = 125
for i,v in pairs(script:GetChildren()) do
v.Parent = Character.Backpack
end
end
end

game.Players.ChildAdded:connect(onPlayerEnter)
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