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: Sketchy respawn pads

Previous Thread :: Next Thread 
cat348 is not online. cat348
Joined: 07 Mar 2008
Total Posts: 10638
06 Dec 2015 11:54 AM
So at my new place, I'm trying to make respawnable cars using the old respawn pad technology pioneered by Telamon. but it only works Sometimes and i have no idea why.

The car is named correctly, and grouped with the respawn pad.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
06 Dec 2015 12:46 PM
Share the code?
ᕦ (ಠДಠ) ᕤ Powar11
Report Abuse
cat348 is not online. cat348
Joined: 07 Mar 2008
Total Posts: 10638
06 Dec 2015 01:03 PM
Standard respawn pad,

local car = script.Parent.Parent.Car:Clone()

while true do

wait(5)


local n = script.Parent.Parent:FindFirstChild("Car") == nil
if (n or (script.Parent.Position - script.Parent.Parent.Car.VehicleSeat.Position).magnitude > 40) then
if (n ~= true) then
script.Parent.Parent.Car.Parent = game.Workspace
end
local c = car:Clone()
c.Parent = script.Parent.Parent
c:makeJoints()
end

end

How it works is you name the car "Car" and group it with a pad, When the car goes away from the pad it makes a copy.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
06 Dec 2015 02:36 PM

Can you open up a test-place?
ᕦ (ಠДಠ) ᕤ Powar11
Report Abuse
cat348 is not online. cat348
Joined: 07 Mar 2008
Total Posts: 10638
06 Dec 2015 03:19 PM
The vehicles are already featured here ( http://www.roblox.com/games/28927097/StudioARE-base ) , The busses near the spawn respawn normally, The vehicles over at the film lot Do not. (The vehicles on parking spots are supposed to respawn) The ones that are failing to respawn should do.


http://www.roblox.com/games/28927097/StudioARE-base

Honestly the whole place is running slow and weird, I havent done much of this kinda thing in a while.
Report Abuse
superalp1111 is online. superalp1111
Joined: 22 Oct 2011
Total Posts: 70
06 Dec 2015 03:48 PM
As I understand...
When car is far more than 40 studs from the pad, it will regen.
BUT!
"if (n ~= true) then"
If car is not in workspace, then it probably won't regen. Also after copying the car, if it copies in Workspace, then probably it will regen even if car is on Workspace.
So, this is very mixed situation, try to making "if (n ~= true) then" line disabled. Do not forget to disable "end" after it too. I really wonder what will happen if you do that :D %45 Works.
Report Abuse
cat348 is not online. cat348
Joined: 07 Mar 2008
Total Posts: 10638
06 Dec 2015 08:43 PM
Well, If the car isn't in workspace, Where could it be :p?

Also, nothing happens when those lines are disabled.
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