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: Can someone help me?

Previous Thread :: Next Thread 
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:24 PM
local Model = game.Workspace["Magma goalie"]
while true do
for i = 28,14,40 do
Model:GetChildren()
Model.Torso = CFrame.new(i,3.8, 265.5)
wait(.1)
end
end
When I tested it and reseted it it crashed the game!What I'm trying to do is for ever The Magma goalie model always moves to the new CFrame.THe torso moves for it.WOuld I need welds for this or something?Output says running script but it crashed the game.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 04:24 PM
You never break the loop.
Report Abuse
matt1020304050 is not online. matt1020304050
Joined: 24 May 2008
Total Posts: 4475
01 Sep 2011 04:27 PM
local Model = game.Workspace["Magma goalie"]
while wait() do
for i = 28,14,40 do
Model:GetChildren() -- ?
Model.Torso = CFrame.new(i,3.8, 265.5)
wait(.1)
end end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:33 PM
@Matt

I said GetChildren() because their are parts in there.There are
Two parts named "Leg"
Two Parts named "Arm"
One Part named "Torso
One Part named "Head"
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:44 PM
Anyone?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:45 PM
@kingkiller

What you mean by that logic?Do you mean to change the wait()?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 04:46 PM
But if you are only changing the torso, there is no reason to randomly call GetChildren.

local Model = game.Workspace["Magma goalie"]
for i = 28,14,40 do
Model.Torso = CFrame.new(i,3.8, 265.5)
wait(.1)
end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:50 PM
Ok but I have a question

WOudl I need welds for ALL THE PARTS IN Magma goalie to move to or will the torso only move?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 04:52 PM
Are you trying to move ALL THE PARTS, or just the Torso, as your previous script would have done?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 04:54 PM
I'm trying to move ALL the parts in the Model.I just think that I might need welds so it would stick together when it moves.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 04:58 PM
local Model = game.Workspace["Magma goalie"]
while wait() do
for _, v in next, Model:GetChildren() do
coroutine.resume(coroutine.create(function()
for i = 28,14,40 do
v.CFrame = CFrame.new(i, 3.8, 265.5)
wait(.1)
end
end))
end
end
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 04:59 PM
Or, wait a minute, why can't you just use :MoveTo?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:00 PM
You mean when they just move to 3 CFrames?(Positions)
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:01 PM
Model:MoveTo(Vector3.new(1,4,6))

would move the entire modell to 1,4,6.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:05 PM
So by your logic you mean it moves to
1,4,6?Because thats not what I'm trying to do.By your example, when I'm trying to do is

The model would move 1,2,3,4,5,6 Not 1,4,6
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:05 PM
*Facepalm*

Well if you put it in that LOOP then you CAN make it tween.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:08 PM
local tween = Explain.By that logic what you mean by tween?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:10 PM
Tween

as in

moving the x position to

1 to 2 to 3 to 4 to 5 to 6


What ELSE would a tween be? A talent show??
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:15 PM
So it would be

local Model = game.Workspace["Magma goalie"]
while true do
Model:GetChildren()
Model:MoveTo(Vector3.new(1,4,6))
wait()
end

I know thats not the real numbers but still, the HOLE MODEL parts would go to
1,2,3,4,5,6

Ps, when I thought you meant tween I thought you meant pre teen XD
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:18 PM
local Model = game.Workspace["Magma goalie"]
while wait() do
for i = 28,14,40 do
Model:MoveTo(i, 3.8, 265.5)
wait(.1)
end
wait()
end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:23 PM
The script in the output said it was running, it didn't crash teh game but the Model didn't move.Nothing moved in the model.

And I have a questin

Why do you have 3 waits?Just asking.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:27 PM
The one used as a condition is so that it's positive it won't crash, the wait(.1) is the delay between the model moves. The third one was a mistake.


But the script worked for me just fine when I tested it.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:35 PM
-__-

Was the only part in the Model Torso?VBecause I had more parts in Magma goalie.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
01 Sep 2011 05:36 PM
No, I had 2 different parts in it.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
01 Sep 2011 05:39 PM
:P

When I made it it looked like a robloxian.That's why I was asking if I needed welds for it to work.
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