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: Messed up script

Previous Thread :: Next Thread 
Anden2349 is not online. Anden2349
Joined: 18 Apr 2010
Total Posts: 295
17 Aug 2011 05:56 PM
if script.Parent.Door7.Position ~ script.Parent.Door7.Value.Value then
print("Repair Started")
script.Parent.Door1.Position = 35.5, 8.8, -22.5
wait(2.5)
--Some extra that I cut out of the forums
script.Parent.Door6.Position = 40.5, 8.8, -22.5
wait(2.5)
print("Half Done Repairing")
script.Parent.Door7.Position = 41.5, 8.8, -22.5
wait(2.5)
--Some extra that I cut out of the forums
script.Parent.Door12.Position = 46.5, 8.8, -22.5
wait(2.5)
script.Parent.Door13.Position = 47.5, 8.8, -22.5
wait(2.5)
script.Parent.Door14.Position = 48.5, 8.8, -22.5
print("Done Repairing")
end
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
17 Aug 2011 05:57 PM
~=

~ doesn't do anything :P
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
17 Aug 2011 05:57 PM
~?

Put ==

~I am currently looking for a decent ad maker
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
17 Aug 2011 05:59 PM
No one else noticed the lack of Vector3's?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
17 Aug 2011 06:00 PM
I stopped reading when I saw "~"

~I am currently looking for a decent ad maker
Report Abuse
61352151511 is not online. 61352151511
Joined: 30 Nov 2009
Total Posts: 8094
17 Aug 2011 06:00 PM
if script.Parent.Door7.Position ~= script.Parent.Door7.Value.Value then
print("Repair Started")
script.Parent.Door1.Position = Vector3.new(35.5, 8.8, -22.5)
wait(2.5)
script.Parent.Door6.Position = Vector3.new(40.5, 8.8, -22.5)
wait(2.5)
print("Half Done Repairing")
script.Parent.Door7.Position = Vector3.new(41.5, 8.8, -22.5)
wait(2.5)
script.Parent.Door12.Position = Vector3.new(46.5, 8.8, -22.5)
wait(2.5)
script.Parent.Door13.Position = Vector3.new(47.5, 8.8, -22.5)
wait(2.5)
script.Parent.Door14.Position = Vector3.new(48.5, 8.8, -22.5)
print("Done Repairing")
end

~ Mitch ~
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
17 Aug 2011 06:01 PM
Put this inbetween every position coordinate-

.Position=Vector3.new(x,y,z)

~I am currently looking for a decent ad maker
Report Abuse
Anden2349 is not online. Anden2349
Joined: 18 Apr 2010
Total Posts: 295
17 Aug 2011 06:04 PM
Oh I thought ~ meant not equal to since it should only rebuild if it is broken so if Door7's Position is off from normal it is broken
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
17 Aug 2011 06:11 PM
~= is not equal, however == is.

~I am currently looking for a decent ad maker
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