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: I need help on a cloning script

Previous Thread :: Next Thread 
24stop is not online. 24stop
Joined: 30 Jul 2015
Total Posts: 107
22 Aug 2015 07:16 PM
so i have this car, that when you drive it, it won't respawn back where you get it from. I tried a regen button but that will regenerate the car and the person who's driving it will be forced out of the car. I want a button so that when you step on it it will clone the car, so that if somebody is driving one already, it won't effect them and somebody else can get their car.
Report Abuse
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
22 Aug 2015 07:19 PM
put this script in the cars seat:

script.Parent.TouchEnded:connect(function(h)
if h.Parent:FindFirstChild("Humanoid") then
h.Parent:Destroy()
end
end)


Green tea is green tea if its just green tea
Report Abuse
Valtameri is not online. Valtameri
Joined: 09 Mar 2014
Total Posts: 525
22 Aug 2015 07:20 PM
Continue using the same regen button. BUT, add a script to the car's seat so that when someone sits in it, it's parent becomes the workspace.

[ George Orwell taught me math! 2 + 2 = 5 ]
Report Abuse
24stop is not online. 24stop
Joined: 30 Jul 2015
Total Posts: 107
22 Aug 2015 07:25 PM
@valtameri

what would the script be? can you give it to me?

im a newb scripter
Report Abuse
Valtameri is not online. Valtameri
Joined: 09 Mar 2014
Total Posts: 525
22 Aug 2015 07:30 PM
In a script in the seat:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
script.Parent.Parent.Parent = game.Workspace
end
end)

[ George Orwell taught me math! 2 + 2 = 5 ]
Report Abuse
24stop is not online. 24stop
Joined: 30 Jul 2015
Total Posts: 107
22 Aug 2015 08:04 PM
bump




@above haven't tested yet, will in a sec
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