sup190
|
  |
| Joined: 31 Jan 2011 |
| Total Posts: 2026 |
|
|
| 30 Jul 2016 08:10 PM |
while true do wait(1) script.Parent.CFrame = script.Parent.CFrame + Vector3.new(1,0,0)
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 30 Jul 2016 08:11 PM |
script.Parent.Touched:connect(function() -- end)
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
sup190
|
  |
| Joined: 31 Jan 2011 |
| Total Posts: 2026 |
|
| |
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 30 Jul 2016 08:16 PM |
It's an event that fires when the object is touched. There's an issue with your code
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
sup190
|
  |
| Joined: 31 Jan 2011 |
| Total Posts: 2026 |
|
|
| 30 Jul 2016 08:19 PM |
It works on it's own but not with the touched function
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 30 Jul 2016 08:20 PM |
can you post your code?
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
sup190
|
  |
| Joined: 31 Jan 2011 |
| Total Posts: 2026 |
|
|
| 30 Jul 2016 08:26 PM |
Basically I'm trying to make an inanimate object such as a bookshelf move across the room when you touch a trigger(scary game)and I have no other clue on how to achieve this so I'm testing out this script
script.Parent.Touched:connect(function()
while true do wait(1) script.Parent.CFrame = script.Parent.CFrame + Vector3.new(9,0,0) wait(1) script.Parent.CFrame = script.Parent.CFrame + Vector3.new(9,0,0) wait(1) end
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 30 Jul 2016 08:28 PM |
You wouldn't use this for that instance. Look into debounce and repeat loops.
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
sup190
|
  |
| Joined: 31 Jan 2011 |
| Total Posts: 2026 |
|
|
| 30 Jul 2016 08:36 PM |
So would I use Part sliding?
http://wiki.roblox.com/index.php?title=Part_sliding
Would this help?
|
|
|
| Report Abuse |
|
|