|
| 01 May 2014 09:28 PM |
function getCharacter(Player) return game.Workspace:findFirstChild(Player.Name) end
function getPlayer(Character) return game.Players:findFirstChild(Character.Name)
end
function NewObject(object) if (object:findFirstChild("Humanoid") ~= nil) then wait(0.5) if (getPlayer(object) ~= nil) then print("Reset Space") local space = getPlayer(object).Vehicles space.Value = 0
end end end
game.Workspace.ChildAdded:connect(NewObject)
xDDD
OFFER ON RSTF!! |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:29 PM |
| wut happens if i remove dat script from a driveblox game? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Expoltion
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 15135 |
|
|
| 01 May 2014 09:30 PM |
| i think it find which car is whos |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:30 PM |
the game wont function properly if you remove that.
it sets an essential value to 0 at times |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:31 PM |
oh ok,
because everytime u die and have a car u lose it, i want to avoid that, any help on dat? |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:32 PM |
| how do i make it everytime u die u still got ur car? |
|
|
| Report Abuse |
|
|
Expoltion
|
  |
| Joined: 29 Sep 2013 |
| Total Posts: 15135 |
|
|
| 01 May 2014 09:33 PM |
actually, i think this is the script where it removes the car cus this
local space = getPlayer(object).Vehicles space.Value = 0
finds the "Vehicles" and sets the space value to 0 which removes to car?
|
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:33 PM |
| change "space.Value = 0" to "space.Value = 1" and tell me what happens |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:35 PM |
| If you want the car to stay after you die, just put a script in there making the cars parent, workspace. |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:35 PM |
| >change it to 1 instead of 0< |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:36 PM |
if i put 1 it says i own it when i don't..
and spark how? i suck at dis |
|
|
| Report Abuse |
|
|
| |
|
Drizi
|
  |
| Joined: 05 Apr 2013 |
| Total Posts: 25873 |
|
|
| 01 May 2014 09:36 PM |
y u copying games dogg
dat not kool |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 01 May 2014 09:39 PM |
Just make a while true function to find cars inside character, and if so, make them parented to workspace. Like so:
while true do for I,v in pairs(game.Players:GetChildren()) do for a,c in pairs(v:GetChildren()) do if v.Name == "CARSNAMEHERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" then v.Parent = game.Workspace end end end end |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:40 PM |
Misplaced a variable. Here's the right script:
while true do for I,v in pairs(game.Players:GetChildren()) do for a,c in pairs(v:GetChildren()) do if c.Name == "CARSNAMEHERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" then c.Parent = game.Workspace end end end end |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:42 PM |
| i put dat in the onspawn script right |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:44 PM |
i make a script for that one by it self?
and can i do this, "chevelle, other cars, etc" |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:45 PM |
sparkie pls learn2lua
a while loop isnt a function bb |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:45 PM |
i make a script for that one by it self?
and can i do this, "chevelle, other cars, etc"! |
|
|
| Report Abuse |
|
|
|
| 01 May 2014 09:46 PM |
bb, I don't script often.
I'm too busy off roblox and swimming and working out and school work stuff.
Rblx comes last for me. Or atleast I hope it does most of the time. xP |
|
|
| Report Abuse |
|
|