|
| 04 May 2015 09:08 PM |
wut = script.Parent
function onTouched(Hit) if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
wait(1)
for i=1,100 do wait() wut.CFrame = wut.CFrame * CFrame.new(0, -0.5, 0) end wait (1)
end end
wut.Touched:connect(onTouched)
So it goes down then just teleports to the orginal position it was in? |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 May 2015 09:43 PM |
| You want it to teleport to the original position? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 May 2015 09:47 PM |
local part = script.Parent
function onTouched(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human then wait(1) for i=1,100 do part.CFrame = part.CFrame * CFrame.new(0, -0.5, 0) wait() end wait (1) part.CFrame = CFrame.new((Vector3.new(1190.2, 623.2, -1225.2))) end end
part.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 09:52 PM |
No, I making a bunch of these. And I dont plan on changing the Vector3 values.
I meant a thing where it find the coordinates of the parent of the script and then after the "go down" thingy it teleports back. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 May 2015 10:33 PM |
| use a table to store the initial position and then use that table as the location to teleport back. |
|
|
| Report Abuse |
|
|
|
| 10 May 2015 02:33 PM |
BUMP
IDK HOW 2 U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING U C I AM BAD A SKRIPTING AND I NEED HELP CUZ I AM BAD AT SKRIPTING |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 10 May 2015 02:44 PM |
I would add a debounce and see if that fixes it.
http://wiki.roblox.com/index.php?title=Debounce |
|
|
| Report Abuse |
|
|