generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I make this

Previous Thread :: Next Thread 
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
04 May 2015 09:34 PM
bump
Report Abuse
TimeTicks is not online. 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 is not online. 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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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 is not online. 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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image