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: this doesn't work

Previous Thread :: Next Thread 
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 10:38 PM
for i = 1, 90 do
a.Size = a.Size * Vector3.new(math.rad(1),math.rad(1),math.rad(1))
wait()
end
wait(1)
for i = 1, 90 do
a.Size = a.Size * Vector3.new(math.rad(-1),math.rad(-1),math.rad(-1))
wait()
end
end

a is defined this is not the whole script, but the size doesn't change
Report Abuse
tuxedoman23 is not online. tuxedoman23
Joined: 24 Apr 2009
Total Posts: 4670
03 Jan 2014 10:39 PM
I think radians are always positive..?
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 10:41 PM
no, because if you change this over to position, they work with negatives
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jan 2014 10:42 PM
..............
Multiplying a vector by a vector... o.e
/i think you want to add...

btw radians can be negative
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 10:53 PM
I CHANGED IT, doesn't work
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 10:54 PM
Are you trying to rotate it?

a.CFrame = a.CFrame*CFrame.Angles(math.rad(1),math.rad(1),math.rad(1))
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 10:55 PM
no, i'm trying to make the brick look like its breathing by making it become bigger smoothly and get smaller smoothy
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jan 2014 10:57 PM
a.FormFactor = "Custom"
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 10:59 PM
still doesn't work, brick is just smaller
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 11:01 PM
Do this instead:

i = 0
b = a.Size
while true do
i = i+wait()
a.Size = b+Vector3.new(math.sin(2/7*math.pi*i),math.sin(2/7*math.pi*i),math.sin(2/7*math.pi*i))
end
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
03 Jan 2014 11:04 PM
doesn't work
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 11:09 PM
Yes it does; I just tested it.
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Jan 2014 11:11 PM
And my suggestions should work as well
Are you sure the script is even running this code and not erroring before this?
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2014 11:25 PM
Yes definitely have them be Custom FormFactor
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
04 Jan 2014 12:02 AM
thank you but it increases and keeps increasing until it falls out the workspace, i want it to increase by 1 stud on x y and z then decrease down 1 stud.
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:07 AM
for i = 1, 90, 1 do
a.Size = a.Size * Vector3.new(math.rad(1),math.rad(1),math.rad(1))
wait()
end
wait(1)
for i = 90, 1, -1 do
a.Size = a.Size * Vector3.new(math.rad(-1),math.rad(-1),math.rad(-1))
wait()
end
end
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:09 AM
for i = 1, 90, 1 do
a.Size = Udim3.new(i,i,i)
wait()
end
wait(1)
for i = 90, 1, -1 do
a.Size = Udim3.new(i,i,i)
wait()
end

try that
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
04 Jan 2014 12:10 AM
@iV, it's UDim2 and that's for GUI's.
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:10 AM
while true do
for i = 1, 90, 1 do
a.Size = Udim3.new(i,i,i)
wait()
end
wait(1)
for i = 90, 1, -1 do
a.Size = Udim3.new(i,i,i)
wait()
end
end

sorry lol
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:11 AM
@Azarth

I thought Udim3 was for 3D objects and Udim2 was for 2D, like GUIs.
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
04 Jan 2014 12:24 AM
UDim2 is used for GUI's and there is no 3rd dimension in GUI's.
Report Abuse
Kratos232 is not online. Kratos232
Joined: 28 Oct 2011
Total Posts: 229
04 Jan 2014 12:33 AM
Try this.

a = script.Parent

while true do
for i = 1, 10 do
a.Size = a.Size + Vector3.new(.1, .1, .1)
wait(0.1)
end
wait(1)
for i = 1, 10 do
a.Size = a.Size - Vector3.new(.1, .1, .1)
wait(0.1)
end
wait(1)
end
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:38 AM
while true do
for i = 1, 90, 1 do
a.Size = Vector3.new(i,i,i)
wait()
end
wait(1)
for i = 90, 1, -1 do
a.Size = Vector3.new(i,i,i)
wait()
end
end

This should do it then.
Report Abuse
Kratos232 is not online. Kratos232
Joined: 28 Oct 2011
Total Posts: 229
04 Jan 2014 12:40 AM
@iV

No. That wouldn't work.
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
04 Jan 2014 12:45 AM
Yes it does?
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