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 » Scripters
Home Search
 

Mesh and Vector3 Angel Wing problem.

Previous Thread :: Next Thread 
iUnEarthly is not online. iUnEarthly
Joined: 31 May 2012
Total Posts: 883
06 Aug 2015 10:29 PM
wait (5)
mesh = script.Parent.Mesh
canextend = true
function Extend()
while true do
if mesh.Scale.X ~= 3.5 and canextend == false then
mesh.Scale = Vector3.new(mesh.Scale.X + 0.2, mesh.Scale.Y, mesh.Scale.Z)
else
canextend = false
end

if canextend == false then
mesh.Scale = Vector3.new(mesh.Scale.X - 0.1, mesh.Scale.Y, mesh.Scale.Z)
if mesh.Scale.X ~= 3 then
canextend = true
end
end
wait()
end
end
print("Script READY")
wait(1)
Extend()


My problem is it just keeps expanding and doesn't stop.
I don't know what the problem is.
Report Abuse
iUnEarthly is not online. iUnEarthly
Joined: 31 May 2012
Total Posts: 883
06 Aug 2015 10:30 PM
Sorry! Slight script typo.
wait (5)
mesh = script.Parent.Mesh
canextend = true
function Extend()
while true do
if mesh.Scale.X ~= 3.5 and canextend == true then -- typo here "true" e.e
mesh.Scale = Vector3.new(mesh.Scale.X + 0.2, mesh.Scale.Y, mesh.Scale.Z)
else
canextend = false
end

if canextend == false then
mesh.Scale = Vector3.new(mesh.Scale.X - 0.1, mesh.Scale.Y, mesh.Scale.Z)
if mesh.Scale.X ~= 3 then
canextend = true
end
end
wait()
end
end
print("Script READY")
wait(1)
Extend()
Report Abuse
iUnEarthly is not online. iUnEarthly
Joined: 31 May 2012
Total Posts: 883
07 Aug 2015 11:40 AM
[Bump]
Report Abuse
iUnEarthly is not online. iUnEarthly
Joined: 31 May 2012
Total Posts: 883
08 Aug 2015 07:53 PM
Hello...?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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