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: GUI problems!!!!!!!

Previous Thread :: Next Thread 
zomega99 is not online. 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
IHateMittRomney is not online. IHateMittRomney
Joined: 05 Oct 2012
Total Posts: 69
21 Oct 2012 12:54 PM
1.No
2.???
3.Profit

-sips tea-
Report Abuse
zomega99 is not online. zomega99
Joined: 31 May 2012
Total Posts: 76
21 Oct 2012 12:57 PM
what?
Report Abuse
Fedorakid is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. zomega99
Joined: 31 May 2012
Total Posts: 76
21 Oct 2012 01:08 PM
OK.
Report Abuse
9A0 is not online. 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 is not online. zomega99
Joined: 31 May 2012
Total Posts: 76
21 Oct 2012 01:11 PM
Ok!
Report Abuse
zomega99 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. zomega99
Joined: 31 May 2012
Total Posts: 76
21 Oct 2012 01:26 PM
Thanks!!
Report Abuse
zomega99 is not online. 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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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
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