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 » Scripting Helpers
Home Search
 

Re: Help with this. I have a car shop dialouge i need the car not to stack

Previous Thread :: Next Thread 
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
07 Sep 2011 06:46 AM
Example: I bougth another car while other car is still in the position i want it to be. So it stacks. I need other car to disappear while its still in the place i want it to be:

MY CURRENT SCRIPT:
if (choice == script.Parent.Choice2) then
if (player.leaderstats.KOs.Value >= 0) then
gun = game.Lighting["Sniper"]:clone()
gun.Parent = player.Backpack
player.leaderstats.KOs.Value = player.leaderstats.KOs.Value - 0
script.Parent.Choice2.ResponseDialog = "Have a nice day!"
else
script.Parent.Choice2.ResponseDialog = "You don't have enough gold"
end
return
end
Report Abuse
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
07 Sep 2011 10:17 AM
OH SHI I meant this
if (choice == script.Parent.Choice3) then if player.leaderstats.KOs.Value >= 0 then
model = game.Lighting["Humvee"]:clone()
model.Parent = Workspace.Brick1
model:MakeJoints()
player.leaderstats.KOs.Value = player.leaderstats.KOs.Value - 0
script.Parent.Choice3.ResponseDialog = "Have a nice day!"
else
script.Parent.Choice3.ResponseDialog = "You don't have enough gold"
end
return
end
Report Abuse
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
07 Sep 2011 10:21 AM
!!!!!!!!
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
07 Sep 2011 10:52 AM
You mean stack ends?
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
07 Sep 2011 11:01 AM
No, he means how would you delete the first car when you buy another one.
Report Abuse
pokelord910 is not online. pokelord910
Joined: 26 May 2009
Total Posts: 1045
07 Sep 2011 11:13 AM
Car:remove() on the appropriate line?
Report Abuse
pokelord910 is not online. pokelord910
Joined: 26 May 2009
Total Posts: 1045
07 Sep 2011 11:14 AM
if (choice == script.Parent.Choice3) then if player.leaderstats.KOs.Value >= 0 then
model = game.Lighting["Humvee"]:clone()
model.Parent = Workspace.Brick1
model:MakeJoints()
player.leaderstats.KOs.Value = player.leaderstats.KOs.Value - 0
script.Parent.Choice3.ResponseDialog = "Have a nice day!"
car:remove()
else
script.Parent.Choice3.ResponseDialog = "You don't have enough gold"
end
return
end


like that?
Report Abuse
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
07 Sep 2011 09:00 PM
Bump it doesnt work :O
Report Abuse
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
08 Sep 2011 03:05 AM
BUMP!!!!!!!!!
Report Abuse
eddz99 is not online. eddz99
Joined: 30 Dec 2009
Total Posts: 1707
08 Sep 2011 03:15 AM
ZZZZ
Report Abuse
thisissporez is not online. thisissporez
Joined: 04 Sep 2011
Total Posts: 1273
08 Sep 2011 07:18 AM
space = Workspace
object = space:findFirstChild("Part")
wait()
:remove(..object)
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 10:03 AM
thisis, this will remove a random part...:

I thinking this is in a Gui, am I right?

script.Parent.MouseButton1Click:connect(function()
workspace:FindFirstChild("Car's Model Name"):Remove()
--code for spawning car
end)
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
08 Sep 2011 10:06 AM
Nope, dialog-shop.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 10:09 AM
well add

workspace:FindFirstChild("Car's Model Name"):Remove()
--code for spawning car

to the dialog choice script, that should remove the previous car and spawn a new one.
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
08 Sep 2011 11:23 AM
Capitalize Workspace, dun capitalize remove.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 11:24 AM
ultra, you dony need to cap Workspace, and you dont have to have :remove() as lowercase R.
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
10 Sep 2011 04:29 PM
Oyush? I still correct...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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