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 » Scripters
Home Search
 

Re: I am literally about to punch my monitor...

Previous Thread :: Next Thread 
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:04 AM
This script is inside a gui inside of startergui>frame>agui>thisscript
player = script.Parent.Parent.Parent.Parent.Parent
money = player.leaderstats.KOs
price = 2
tool = game.Lighting:findFirstChild("SeaSword")


function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear

end
end
script.Parent.MouseButton1Down:connect(buy)
The "Sea Sword" is in lighting. HELP! D::::::::: (It isnt working at all :c)
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:06 AM
BAMP I HAVE NO PATIENCE I AM DONE AHHHHHHHH
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 11:07 AM
Send me a picture of your monitor with a hole through it when you're done?
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:08 AM
AHHHH ELUNATE YOUR SO AWESOME :DDDDD
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
30 Nov 2014 11:08 AM
noice 1 m8.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:09 AM
kthx now can someone help me with my shop ;~;
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 11:12 AM
player = script.Parent.Parent.Parent.Parent.Parent

You'd hope that's right.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:13 AM
Umm.. what?

And here, my friends is Mr. Serious, not like his cousin Mr. Derpy.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:16 AM
MY FIST IS IN A BALL I SWEAR BY ME MUM ILL SUCKERPUNCH DISH MONITOR
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 11:18 AM
Do it.

I dare you.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:19 AM
Buh it cost 100 dollars... i... i dont wanna break it :c
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 11:22 AM
Exactly -.-
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:24 AM
O SWAEEYRTOIEAu%$riesujFJRWngeaoifrWAJeriohesarifesaujhflkdsfewf
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
30 Nov 2014 11:26 AM
You should've used a local script


U wot m8
Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
30 Nov 2014 11:26 AM
"SeaSword" should be "Sea Sword"

Follow me on Twitch! I'm WaffleRBLX.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:27 AM
@Waffloid
But the tool doesnt have a space .-.
Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
30 Nov 2014 11:33 AM
k. Whats the output?

Follow me on Twitch! I'm WaffleRBLX.
Report Abuse
Illlusions is not online. Illlusions
Joined: 18 Aug 2010
Total Posts: 726
30 Nov 2014 11:36 AM
Nothing happens in the output; that is why i wanna punch my monitor
Report Abuse
Waffloid is not online. Waffloid
Joined: 14 Jul 2011
Total Posts: 1606
30 Nov 2014 11:44 AM
Change FindFirstChild to WaitForChild.

Follow me on Twitch! I'm WaffleRBLX.
Report Abuse
TheMcInc is online. TheMcInc
Joined: 30 Sep 2012
Total Posts: 227
30 Nov 2014 11:55 AM
First things first, this should be a localscript. Second, here's your mistake
player = game.Players.LocalPlayer

So, it should be:
player = game.Players.LocalPlayer
money = player.leaderstats.KOs
price = 2
tool = game.Lighting:findFirstChild("SeaSword")


function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear

end
end
script.Parent.MouseButton1Down:connect(buy)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 11:58 AM
(Doesn't have to be a LocalScript)
Report Abuse
TheMcInc is online. TheMcInc
Joined: 30 Sep 2012
Total Posts: 227
30 Nov 2014 12:09 PM
Well, if you don't want it to be a local script:

local player = game.Players.LocalPlayer
local money = player.leaderstats.KOs
local price = 2
local tool = game.Lighting:findFirstChild("SeaSword")


function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear

end
end
script.Parent.MouseButton1Down:connect(buy)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2014 12:12 PM
"Well, if you don't want it to be a local script:

local player = game.Players.LocalPlayer"

What are you doing
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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