|
| 06 Sep 2014 02:34 PM |
while wait() do if player.pants.Value == 1 then newpants = Instance.new("Pants", player.Character) newpants.Name = "Pants" player.Pants.PantsTemplate = "http://www.roblox.com/asset?id=174231515" while wait() do wait(9999) end end end
(I defined player earlier in the script) |
|
|
| Report Abuse |
|
|
| |
|
KOzero
|
  |
| Joined: 11 May 2010 |
| Total Posts: 1411 |
|
|
| 06 Sep 2014 02:48 PM |
Why did you write this for no reason?
while wait() do wait(9999) end
|
|
|
| Report Abuse |
|
|
|
| 06 Sep 2014 02:49 PM |
| Well you wouldnt want pants spamming in your character would you? |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2014 03:00 PM |
Use an if statement or an event?
while wait() do wait(9999) end
is inefficent |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Sep 2014 03:01 PM |
| JUST FOCUS ON THE REAL PROBLEM |
|
|
| Report Abuse |
|
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 06 Sep 2014 03:22 PM |
I think that the problem is in line 2, it says "pants", while it's "Pants". Capitalize "p".
if player.Pants.Value == 1 then |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2014 04:25 PM |
| no, its "pants" im sure of it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
frommage
|
  |
| Joined: 22 Apr 2014 |
| Total Posts: 100 |
|
|
| 06 Sep 2014 06:57 PM |
| You should use debounce rather then wait(9999) qq |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2014 07:08 PM |
| FOCUS ON THE REAL PROBLEM, THE PANTS WONT SPAWN IF THE VALUE IS 1 |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Sep 2014 07:17 PM |
Why did you write this for no reason?
while wait() do wait(9999) end |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2014 07:22 PM |
.. you guys are never going to fix the real problem. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 06 Sep 2014 07:31 PM |
player.pants.Changed:connect(function() if player.pants.Value == 1 then newpants = Instance.new("Pants", player.Character) newpants.Name = "Pants" player.Pants.PantsTemplate = "http://www.roblox.com/asset?id=174231515" end end) |
|
|
| Report Abuse |
|
|
frommage
|
  |
| Joined: 22 Apr 2014 |
| Total Posts: 100 |
|
|
| 06 Sep 2014 07:31 PM |
if player.pants.Value == >1 then Idk I'll look this over |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|