of     2   
chevron_rightchevron_rightchevron_right

Spectrumz
#44590139Saturday, March 26, 2011 1:40 AM GMT

function onPlayerEntered(newPlayer) wait(10) if newPlayer.Shirt.ShirtTemplate == "http://www.Roblox.com/asset/ID=25173491" then local l = game.Lighting.LinkedRocketLauncher:Clone() l.Parent = newPlayer.StarterGear local p = game.Lighting.LinkedRocketLauncher:Clone() p.Parent = newPlayer.Backpack end end game.Players.PlayerAdded:connect(onPlayerEntered) It's supposed to give people with my shirt on (yes i did remember to subtract one from the asset number) a rocket launcher in ten seconds. However, I think that newPlayer brings you right to game.Players, and in game.Players there is no Shirt or ShirtTemplate.
shouksta
#44590313Saturday, March 26, 2011 1:42 AM GMT

newPlayer.Character
Spectrumz
#44590451Saturday, March 26, 2011 1:44 AM GMT

Lol@shouksta I've already tried that.....
shouksta
#44590524Saturday, March 26, 2011 1:45 AM GMT

Then you know it works perfectly >.>
Spectrumz
#44590691Saturday, March 26, 2011 1:47 AM GMT

......No actually <.<
slayer9365
#44590731Saturday, March 26, 2011 1:48 AM GMT

I do not believe that a Player has a shirt, I think that it is the Character that has that.
shouksta
#44590797Saturday, March 26, 2011 1:49 AM GMT

Then it's a problem with your shirt id because newPlayer.Character is the correct way of doing it and theres nothing else wrong with your script so use newPlayer.Character and make sure your shirt id is right.
Spectrumz
#44591476Saturday, March 26, 2011 1:58 AM GMT

function onPlayerEntered(newPlayer) wait(10) if newPlayer.Character.Shirt.ShirtTemplate == "http://www.Roblox.com/assetID=25173491" then local l = game.Lighting.LinkedRocketLauncher:Clone() l.Parent = newPlayer.StarterGear local p = game.Lighting.LinkedRocketLauncher:Clone() p.Parent = newPlayer.Backpack end end game.Players.PlayerAdded:connect(onPlayerEntered) This is what it is as of right now. Visit my place and see if it doesn't work.
shouksta
#44591587Saturday, March 26, 2011 1:59 AM GMT

Is the id the same id as the shirt you're wearing or have you -1'd
Spectrumz
#44591737Saturday, March 26, 2011 2:01 AM GMT

I have already subtracted 1 from the shirt ID, which is 25173492, making it 25173491. I double checked. There is something wrong with the script, and Output is being lazy.
Spectrumz
#44594386Saturday, March 26, 2011 2:41 AM GMT

Bump. By the way, since newPlayer brings you to game.Player.WHO EVER THIS IS, and since in the character property in your Player has no Shirt property, having Character would be wrong.
Miksterman
#44596330Saturday, March 26, 2011 3:13 AM GMT

"http://www.Roblox.com/assetID=25173491" Capital 'R' might be a problem as in ShirtTexture (OrWhatever) it has "http://www.roblox.com/...." and it is comparing a capital to a lower case so it returns false.
Spectrumz
#44598155Saturday, March 26, 2011 3:45 AM GMT

Nope doesn't change anything. This script is a toughie.
Spectrumz
#44622467Saturday, March 26, 2011 5:03 PM GMT

function onPlayerEntered(newPlayer) wait(10) if newPlayer:findFirstChild("Shirt").ShirtTemplate == "http://www.roblox.com/asset/?id=25173491" then local l = game.Lighting.LinkedRocketLauncher:Clone() l.Parent = newPlayer.StarterGear local p = game.Lighting.LinkedRocketLauncher:Clone() p.Parent = newPlayer.Backpack end end game.Players.PlayerAdded:connect(onPlayerEntered) I tried this and it STILL doesn't work.
shouksta
#44622521Saturday, March 26, 2011 5:04 PM GMT

Your still trying to find a shirt in a player when the shirt is inside the players character
Spectrumz
#44623215Saturday, March 26, 2011 5:15 PM GMT

I told you that I've tried that already, but I'll add character to the findfirstchild line and see what happens.
shouksta
#44623292Saturday, March 26, 2011 5:16 PM GMT

Spectrumz if you have tried it already it's a problem with your asset id because shirt IS inside Player.Character no matter how stubborn you want to be about it I'm right.
Spectrumz
#44623782Saturday, March 26, 2011 5:24 PM GMT

I quadruple checked the shirt ID. This is what it came up with when I typed "print(game.Workspace.Spectrumz.Shirt.ShirtTemplate)" into the command bar: http://www.roblox.com/asset/?id=25173492. I subtracted one from the id number already. This is the script I have INCLUDING character. function onPlayerEntered(newPlayer) wait(10) if newPlayer.Character:findFirstChild("Shirt").ShirtTemplate == "http://www.roblox.com/asset/?id=25173491" then local l = game.Lighting.LinkedRocketLauncher:Clone() l.Parent = newPlayer.StarterGear local p = game.Lighting.LinkedRocketLauncher:Clone() p.Parent = newPlayer.Backpack end end game.Players.PlayerAdded:connect(onPlayerEntered) It DOES NOT WORK. Everything is right, the Output says nothing, and I have the shirtID right and everything. Try and make this script your way and see if it works.
shouksta
#44623999Saturday, March 26, 2011 5:27 PM GMT

function onPlayerEntered(newPlayer) wait(10) if newPlayer.Character.Shirt.ShirtTemplate == "http://www.roblox.com/asset/?id=25173491" then local l = game.Lighting.LinkedRocketLauncher:Clone() l.Parent = newPlayer.StarterGear local p = game.Lighting.LinkedRocketLauncher:Clone() p.Parent = newPlayer.Backpack end end game.Players.PlayerAdded:connect(onPlayerEntered)
Cheater
#44624043Saturday, March 26, 2011 5:27 PM GMT

Why you subtract one from your ID? Doesn't it take another ID then?
Spectrumz
#44624105Saturday, March 26, 2011 5:28 PM GMT

Someone else told me you were supposed to subtract one for it to work.
Spectrumz
#44624140Saturday, March 26, 2011 5:29 PM GMT

On a different thread. But I guess I'll try... for the fiftieth time...
shouksta
#44624148Saturday, March 26, 2011 5:29 PM GMT

try not subtracting one
thebigbug
#44624359Saturday, March 26, 2011 5:32 PM GMT

game.Players.ChildAdded:connect()
Spectrumz
#44624379Saturday, March 26, 2011 5:32 PM GMT

...It works because I didn't subtract one. Wow. I feel incredibly stupid. :P I blame it on the other guy on different thread. :D

    of     2   
chevron_rightchevron_rightchevron_right