TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
|
| 10 Jan 2015 04:29 PM |
title
cd = script.Parent part = script.Parent.Parent local function onMouseClick(player) part.CFrame = CFrame.new(147.6, 0, 0) wait(0.1) part.CFrame = CFrame.new(147.7, 0, 0) wait(0.1) part.CFrame = CFrame.new(147.8, 0, 0) wait(0.1) part.CFrame = CFrame.new(147.9, 0, 0) wait(0.1) part.CFrame = CFrame.new(148, 0, 0) wait(0.1) part.CFrame = CFrame.new(148.1, 0, 0) wait(0.1) part.CFrame = CFrame.new(148.2, 0, 0) wait(0.1) part.CFrame = CFrame.new(148.3, 0, 0) wait(0.1) part.CFrame = CFrame.new(148.4, 0, 0) wait(0.1) part.CFrame = CFrame.new(148.5, 0, 0) wait(0.1) cd.MouseClick:connect(onMouseClick) |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 10 Jan 2015 04:31 PM |
lrn2forloop
http://wiki.roblox.com/index.php?title=For_loop#For |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 10 Jan 2015 04:31 PM |
It doesen't even work because of a missing end.
cd = script.Parent part = script.Parent.Parent cd.MouseClick:connect(function(plr) for i = 147.6,148.5,0.1 do part.CFrame = CFrame.new(i,0,0) end end) |
|
|
| Report Abuse |
|
|
TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
|
| 10 Jan 2015 04:31 PM |
| Also, it does not work for some reason, can you help with that too? :C |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 10 Jan 2015 04:32 PM |
@OP
fedora just fixed le script and made it nice and short
|
|
|
| Report Abuse |
|
|
TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
| |
|
TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
|
| 10 Jan 2015 04:52 PM |
| Now ow would I make a script that does that but backwards, like a sliding door that opens when you click and closes when you click again? |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 10 Jan 2015 04:54 PM |
cd = script.Parent part = script.Parent.Parent cd.MouseClick:connect(function(plr) for i = 148.5.6,147.6,-0.1 do part.CFrame = CFrame.new(i,0,0) end end) |
|
|
| Report Abuse |
|
|