|
| 03 Jan 2016 12:07 AM |
function onTouched(part) game.Workspace.Track.Velocity = -50,0,0 end game.Workspace.Track.Velocity = -50,0,0 end script.Parent.Touched:connect(onTouched)
I tried it but when an object touched the sensor did not change the velocity on the track |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jan 2016 12:09 AM |
So I tried a new code without the 2nd end and it still does not work
function onTouched(part) game.Workspace.Track.Velocity = -50,0,0 end game.Workspace.Track.Velocity = -50,0,0 end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Jan 2016 12:10 AM |
function onTouched(part) game.Workspace.Track.Velocity = Vector3.new(-50,0,0) end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 12:10 AM |
I meant to post
function onTouched(part) game.Workspace.Track.Velocity = -50,0,0 game.Workspace.Track.Velocity = -50,0,0 end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2016 12:10 AM |
Here u go
function onTouched(part) game.Workspace.Track.Velocity = Vector3.new(-50,0,0) end game.Workspace.Track.Velocity = Vector3.new(-50,0,0) script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 03 Jan 2016 12:11 AM |
I think velocity takes vector3 values,
try game.Workspace.Track.Velocity = Vector3.new(-50, 0, 0)
|
|
|
| Report Abuse |
|
|