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: Help please

Previous Thread :: Next Thread 
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
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
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 02:41 PM
reply pls
Report Abuse
KOzero is not online. 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
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 02:49 PM
Well you wouldnt want pants spamming in your character would you?
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
06 Sep 2014 03:00 PM
Use an if statement or an event?

while wait() do
wait(9999)
end

is inefficent
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 03:00 PM
bump
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 03:01 PM
JUST FOCUS ON THE REAL PROBLEM
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 03:20 PM
anyone?
Report Abuse
Mitko0o1 is not online. 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
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 04:25 PM
no, its "pants" im sure of it.
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 04:31 PM
bump
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 06:42 PM
b2
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 06:49 PM
b3
Report Abuse
frommage is not online. 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
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:08 PM
FOCUS ON THE REAL PROBLEM, THE PANTS WONT SPAWN IF THE VALUE IS 1
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:14 PM
bump
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
06 Sep 2014 07:17 PM
Why did you write this for no reason?

while wait() do
wait(9999)
end
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:22 PM
..
you guys are never going to fix the real problem.
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:27 PM
bump
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:30 PM
bump[2]
Report Abuse
Bobobob12 is not online. 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 is not online. 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
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:33 PM
bobo didnt help
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:37 PM
bump
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
06 Sep 2014 07:40 PM
b2
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