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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 06 Dec 2015 12:46 PM |
Share the code? ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 06 Dec 2015 02:36 PM |
Can you open up a test-place? ᕦ (ಠДಠ) ᕤ Powar11 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|