|
| 17 Aug 2015 06:09 PM |
make it so when you die the car gets removed
and make it so if u spawn 2 cars then the old car gets despawned and the new car stays spawned.
local config = { gear = script.Parent, check = true, PlayersService = Game:GetService('Players'), DebrisService = Game:GetService('Debris'), MyCharacter = nil, MyTorso = nil, DeployedCar = nil, Tool = script.Parent, Handle = script.Parent:WaitForChild('Handle'), COOLDOWN_TIME = 5, Car = Game:GetService('InsertService'):LoadAsset(163379061):GetChildren()[1] };
function config.CreateOwnerTag() local ownerTag = Instance.new('ObjectValue') ownerTag.Value = config.PlayersService:GetPlayerFromCharacter(config.MyCharacter) ownerTag.Name = "Owner" return ownerTag end
function config.SpawnCar() if config.MyTorso then local ownerTag = config.CreateOwnerTag() if config.DeployedCar ~= nil then config.DeployedCar:Destroy(); end local carClone = config.Car:Clone(); ownerTag.Parent = carClone; carClone.Parent = workspace; carClone:TranslateBy((config.MyTorso.CFrame.p - config.Car:GetModelCFrame().p) + Vector3.new(0,5,0) + config.MyTorso.CFrame.lookVector * 15) carClone:MakeJoints() config.DeployedCar = carClone DebrisService:AddItem(config.DeployedCar, 60 * 15) end end
config.gear.Equipped:connect(function(m) -- config.Handle.Touched:connect(OnTouched); config.MyCharacter = config.gear.Parent; config.MyTorso = config.MyCharacter:WaitForChild('Torso'); m.Button1Up:connect(function() if config.check then config.check = false; config.SpawnCar(); wait(config.COOLDOWN_TIME); config.check = true; end end); end);
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
Gredgar
|
  |
| Joined: 19 Jun 2015 |
| Total Posts: 4829 |
|
|
| 17 Aug 2015 06:10 PM |
ask lmad's #1 ape verbal he can do it
Gnna give this ape a cracker ( ͡° ͜ʖ ͡° ) |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:10 PM |
O
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:11 PM |
KKKK
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:12 PM |
qq
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:12 PM |
yyyy
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:14 PM |
kk
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:15 PM |
gg
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:15 PM |
dd
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
lagoman29
|
  |
| Joined: 08 Jul 2010 |
| Total Posts: 34 |
|
|
| 17 Aug 2015 06:16 PM |
make a value in the gui. when a car is spawned then: value.value = 1 (number value)
then
if you go to spawn another car then value.value = 0 car:destroy() wait(2) value.value = 1 spawn car
to remove: if the player's health is 0 then value.value = 0 car:destroy()
hope it helps, if you need the ACTUAL code, PM me! I'll be glad to help more. --for free :)-- -lago |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:17 PM |
tt
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:18 PM |
@lag
i need the whole entire script posted here with the things i said added
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:20 PM |
aaaaaaaa
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:21 PM |
yyyyyy
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:23 PM |
155
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:24 PM |
655
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:28 PM |
34535353
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:29 PM |
yyyy
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:30 PM |
np
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:32 PM |
ertetete
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:46 PM |
123131
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:51 PM |
12414141
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 06:58 PM |
23424242
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,680 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 07:12 PM |
4234242
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,630 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2015 07:15 PM |
3424242
-~|| CCC + LS IS NFT/NFS UNLESS OP || ROBUX: R$6,630 || RAP: 286,970 ||~- |
|
|
| Report Abuse |
|
|