zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 12:51 PM |
| Ok, I just scripted a GUI that gives you a rocket launcher when you get 1,0000 points, but it doesn't WORK!!! Oh and p.s. 1,0000 sounds like a lot of points, but on my game it's easy to get. Oh and one more thing if you want to know the link to my new game just ask, thank you! |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 12:54 PM |
1.No 2.??? 3.Profit
-sips tea- |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 21 Oct 2012 12:58 PM |
| This sounds easy to script, post the script so we can see it. |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 01:00 PM |
| Ok, I will in a second if I can get on edit mode. |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 01:05 PM |
| Ok, done the GUI script is in my models, its the first two on the first page of my models! |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 21 Oct 2012 01:07 PM |
| I ment, copy everything of the script, and POST IT ON THIS FORUM! |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
| |
|
9A0
|
  |
| Joined: 18 Oct 2012 |
| Total Posts: 136 |
|
|
| 21 Oct 2012 01:10 PM |
| Bet it's a freemodel that you didn't script and you can't fix / use it just cause you can't script. Anyways, Copy/paste the code so we see it. |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
| |
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 01:12 PM |
function buy() if script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Points.Value >= 1,0000 then script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Points.Value = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Points.Value-0 local clone1 = script.Parent.Parent.Items["rocket"]:Clone() clone1.Parent = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack local clone2 = script.Parent.Parent.Items["rocket"]:Clone() clone2.Parent = script.Parent.Parent.Parent.Parent.Parent.Parent.StarterGear end end
script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
9A0
|
  |
| Joined: 18 Oct 2012 |
| Total Posts: 136 |
|
|
| 21 Oct 2012 01:13 PM |
That's one messy script..
I'll post something a lot easier.. |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 01:15 PM |
| THX! Oh and I learned how to do little scripting from "Scripting for dummies" |
|
|
| Report Abuse |
|
|
9A0
|
  |
| Joined: 18 Oct 2012 |
| Total Posts: 136 |
|
|
| 21 Oct 2012 01:21 PM |
pts = player.leaderstats.Points you = script.Parent.Parent.Parent.Parent.Parent item = game.Lightning["ITEMNAMEHERE"]
function buy()
if pts.Value >= 10000 then pts.Value = pts.Value - 10000 item:clone().Parent = you.Backpack wait(2) else script.Parent.Text = "You don't have this much points." wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Down:connect(buy)
|
|
|
| Report Abuse |
|
|
9A0
|
  |
| Joined: 18 Oct 2012 |
| Total Posts: 136 |
|
|
| 21 Oct 2012 01:23 PM |
| wait, wow, I meant that the player.. Wait, lemme fix. |
|
|
| Report Abuse |
|
|
9A0
|
  |
| Joined: 18 Oct 2012 |
| Total Posts: 136 |
|
|
| 21 Oct 2012 01:23 PM |
you = script.Parent.Parent.Parent.Parent.Parent pts = you.leaderstats.Points item = game.Lightning["ITEMNAMEHERE"]
function buy()
if pts.Value >= 10000 then pts.Value = pts.Value - 10000 item:clone().Parent = you.Backpack wait(2) else script.Parent.Text = "You don't have this much points." wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
| |
|
zomega99
|
  |
| Joined: 31 May 2012 |
| Total Posts: 76 |
|
|
| 21 Oct 2012 01:55 PM |
wait isn't it
plyer. = script.Parent.Parent.Parent.Parent.Parent points = you.leaderstats.Points item = game.Lightning["rocket launcher"]
function buy()
if pts.Value >= 10000 then pts.Value = pts.Value - 10000 item:clone().Parent = you.StarterPack wait(2) else script.Parent.Text = "Ima kill u if u dont get more POINT!!!!" wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 02:03 PM |
plyer. = script.Parent.Parent.Parent.Parent.Parent points = you.leaderstats.Points item = game.Lighting["rocket launcher"]
function buy()
if points.Value >= 10000 then points.Value = pts.Value - 10000 item:clone().Parent = you.StarterPack wait(2) else script.Parent.Text = "Ima kill u if u dont get more POINT!!!!" wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 02:04 PM |
Oops, this script is messy so there still might be a few mistakes.
you = script.Parent.Parent.Parent.Parent.Parent points = you.leaderstats.Points item = game.Lighting["rocket launcher"]
function buy()
if points.Value >= 10000 then points.Value = pts.Value - 10000 item:clone().Parent = you.StarterPack item:clone().Parent = you.Backpack wait(2) else script.Parent.Text = "Ima kill u if u dont get more POINT!!!!" wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Down:connect(buy) |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 02:12 PM |
player = script.Parent.Parent.Parent.Parent.Parent points = player.leaderstats.Points item = game.Lighting["rocket launcher"]
function buy() if points.Value >= 10000 then points.Value = points.Value - 10000 item:Clone().Parent = player.StarterGear item:Clone().Parent = player.Backpack else script.Parent.Text = "Not enough money, but it's funny since it's suppose to cost 10000, but it says 500" wait(5) script.Parent.Text = "Buy Rocket Launcher [500]" end end
script.Parent.MouseButton1Click:connect(buy) |
|
|
| Report Abuse |
|
|