Buy car Dialog gui.

Sort:
Previous Thread :: Next Thread 
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1227
25 Sep 2011 06:02 AM
This is not a request, i am helping you.


--To open the gui from a dialog (normal script)(put this in the dialong but not the choice)

local dialog = script.Parent

function answer(player, pick)
local char = player.Character
local humanoid = char["Humanoid"]
if pick.Name == "Yes" then --Change yes to the name of the dialog choice that opens the gui
local guicopy = script.Parent:findFirstChild("PurchaseCar"):clone()--change PurchaseCar to the name of the gui(make sure gui is in the dialog but not the choice)
guicopy.Parent = player.PlayerGui
guicopy["Frame"].Visible = true
end
end


dialog.DialogChoiceSelected:connect(answer)




--To buy the car.(Local Script)(Put this in button)


local model = game.Lighting.Ferrari1 --change ferrari1 to the name of the car(make sure car is in lighting)
local Cash = game.Players.LocalPlayer.leaderstats.Cash -- change Cash to your currency
function onClicked()
if Cash.Value >= 350000 then --change 350000 to the amount it costs
Cash.Value = Cash.Value - 350000 --change 350000 to the amount it costs
local c = model:Clone()
wait()
c.Parent = game.Workspace
c:MakeJoints()
end
end
script.Parent.MouseButton1Down:connect(onClicked)




To close the gui(normal script)(put 1 of these in the button so there cannot be spam regen)



bin = script.Parent

function Clicked()
bin.Parent.Visible = false
end
bin.MouseButton1Down:connect(Clicked)






Hope these help.
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 06:03 AM
shouldn't you just post a link to a model?
ReplyReport Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1227
25 Sep 2011 06:17 AM
yh, but this is for people who do not want to use free models and want to make it themselves, if you want ther model heres the link:

http://www.roblox.com/Buy-car-Dialog-gui-item?id=62478277
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 06:24 AM
copying and pasting a script isn't making it yourself
ReplyReport Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1227
25 Sep 2011 06:29 AM
I mean't make the gui and dialog yourself. The scripts are a different issue because not many people know how to do it.
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 06:33 AM
if they can't script they shouldn't be looking here
ReplyReport Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1227
25 Sep 2011 06:36 AM
Well its 'SCRIPTING HELPERS' so we help people with scripting.
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 06:36 AM
yes HELP we don't give people scripts
ReplyReport Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1227
25 Sep 2011 06:45 AM
Well I'm just being nice ok, If I want to give them away I can. I made them so i can do what i want with them.
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 06:46 AM
I understand, hey you wana try a data persistence api?
ReplyReport Abuse
nascar203 is not online. nascar203
Joined: 29 Oct 2009
Total Posts: 1343
25 Sep 2011 07:55 AM
@nate it's problby copied.
ReplyReport Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 08:04 AM
mine or his?
ReplyReport Abuse
kittenpilot123 is not online. kittenpilot123
Joined: 26 Nov 2010
Total Posts: 49
29 Aug 2013 03:30 PM
Thank you. Im bad at both scripting and making GUIs. Your scripts defidently helped. Thank you for saving me time.. Now all I gotta do is make the GUis.
ReplyReport Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
Add a Reply