xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 11 Apr 2015 08:44 PM |
| Ive gone dumb someone give me a simply script to move a block back and forth in a motion? |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Apr 2015 08:57 PM |
Like, what kind of motion though?
You can't just spew out an order with no details and expect someone to just hand something to you. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2015 09:05 PM |
"You can't just spew out an order with no details and expect someone to just hand something to you."
What are you talking about? My math teacher does that all the time :P |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2015 09:08 PM |
http://wiki.roblox.com/index.php?title=Vector3#Methods
>lerp |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 11 Apr 2015 09:08 PM |
while true do wait(1) block.CFrame = block.CFrame*CFrame.new(block.Size.X,0,0) wait(1) block.CFrame = block.CFrame*CFrame.new(-block.Size.X,0,0) end
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Apr 2015 09:38 PM |
@Matt
Well, your math teacher is special. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2015 10:40 PM |
function Tween(part,position,frames) for i = 1,frames do part.CFrame:lerp(position,i/frames) wait() end end |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 12 Apr 2015 05:24 PM |
| @sett i tried vector3 it just teleported ._. |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2015 05:29 PM |
while true do for x = 1, 15 do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(1, 0, 0) wait(0.1) end for y = 1, 15 do script.Parent.CFrame = script.Parent.CFrame + Vector3.new(-1, 0, 0) wait(0.1) end end
If this isn't satisfying I have another one.
|
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
| |
|
| |
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 12 Apr 2015 05:34 PM |
| Frost i need velocity to increase it? |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
| |
|
|
| 12 Apr 2015 05:36 PM |
local original = script.Parent.CFrame
while wait() do script.Parent.CFrame = original * CFrame.new(math.sin(tick()*3),0,0) end |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 12 Apr 2015 05:56 PM |
| ^ makes the brick move like hell |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2015 06:06 PM |
clonetrooper replied
*dies* |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
| |
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 12 Apr 2015 09:16 PM |
| I know this is alot i just need a simple way to make models(From lighting) appear in the workspace(kind of like loading maps) |
|
|
| Report Abuse |
|
|
9draco
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 5841 |
|
|
| 12 Apr 2015 11:54 PM |
| thats got nothing to do with "moving" a block. You should just clone the model to your workspace in a certain position. |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 13 Apr 2015 06:10 AM |
^My thread name
And u gave me a idea on how to work it |
|
|
| Report Abuse |
|
|