Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I reset why don't I have the shirt and pants still?

Asked by 10 years ago

while 1 == 1 do Game.Players.PlayerAdded : connect(function(player) Player.Shirt.ShirtID = http://www.roblox.com/MFO-Blue-Uniform-item?id=137345315 end)

Game.Players.PlayerAdded : connect(function(player) Player.Pants.PantsID = http://www.roblox.com/MFO-Blue-Uniform-Pants-item?id=137371085%20 end)

Can you please post what's wrong with this script?

1 answer

Log in to vote
0
Answered by
Dom2d2 35
10 years ago

Hey, the issue isn't very big. Remember that ID does NOT equal URL or link. So, instead it would look like this:

while 1 == 1 do Game.Players.PlayerAdded : connect(function(player) Player.Shirt.ShirtID = 137345315 end)

Game.Players.PlayerAdded : connect(function(player) Player.Pants.PantsID = 137371085 end)

There may be another issue with the script, but I know for a fact that IDs are just the numbers at the end of URLs, also, with these IDs, you may need to subtract 1 from each number to get the correct asset. :)

Also, why do you need to say while 1 ==1 do? You could say while true do, but be sure to include a wait to prevent ROBLOX from crashing.

0
Ok, thanks Dom c:. I do while 1 == 1 do because that's the only loop I know xD. hypersonicpie 0 — 10y
Ad

Answer this question