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 » Club Houses » Let's Make a Deal
Home Search
 

Re: WUT DOES DIS SCRIPT DO??

Previous Thread :: Next Thread 
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
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
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:29 PM
wut happens if i remove dat script from a driveblox game?
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:29 PM
,.
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:30 PM
help
Report Abuse
Expoltion is not online. Expoltion
Joined: 29 Sep 2013
Total Posts: 15135
01 May 2014 09:30 PM
i think it find which car is whos
Report Abuse
Karmavorous is not online. Karmavorous
Joined: 12 Nov 2013
Total Posts: 2646
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
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
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
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:32 PM
how do i make it everytime u die u still got ur car?
Report Abuse
Expoltion is not online. 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
Karmavorous is not online. Karmavorous
Joined: 12 Nov 2013
Total Posts: 2646
01 May 2014 09:33 PM
change "space.Value = 0" to "space.Value = 1" and tell me what happens
Report Abuse
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
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
Karmavorous is not online. Karmavorous
Joined: 12 Nov 2013
Total Posts: 2646
01 May 2014 09:35 PM
>change it to 1 instead of 0<
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
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
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:36 PM
qq
Report Abuse
Drizi is not online. Drizi
Joined: 05 Apr 2013
Total Posts: 25873
01 May 2014 09:36 PM
y u copying games dogg

dat not kool
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:37 PM
u kool
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:38 PM
hulp
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:39 PM
help!
Report Abuse
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
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
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
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
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
01 May 2014 09:42 PM
i put dat in the onspawn script right
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
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
Karmavorous is not online. Karmavorous
Joined: 12 Nov 2013
Total Posts: 2646
01 May 2014 09:45 PM
sparkie pls learn2lua

a while loop isnt a function bb
Report Abuse
JasmineLoradelll is not online. JasmineLoradelll
Joined: 29 Mar 2013
Total Posts: 4288
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
SparkIeFarts is not online. SparkIeFarts
Joined: 27 Sep 2008
Total Posts: 16166
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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