|
| 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 |
|
|
|
| 30 Nov 2014 11:06 AM |
| BAMP I HAVE NO PATIENCE I AM DONE AHHHHHHHH |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Nov 2014 11:08 AM |
| AHHHH ELUNATE YOUR SO AWESOME :DDDDD |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Nov 2014 11:09 AM |
| kthx now can someone help me with my shop ;~; |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Nov 2014 11:13 AM |
Umm.. what?
And here, my friends is Mr. Serious, not like his cousin Mr. Derpy. |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2014 11:16 AM |
| MY FIST IS IN A BALL I SWEAR BY ME MUM ILL SUCKERPUNCH DISH MONITOR |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
|
| 30 Nov 2014 11:19 AM |
| Buh it cost 100 dollars... i... i dont wanna break it :c |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
|
| 30 Nov 2014 11:24 AM |
| O SWAEEYRTOIEAu%$riesujFJRWngeaoifrWAJeriohesarifesaujhflkdsfewf |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 30 Nov 2014 11:27 AM |
@Waffloid But the tool doesnt have a space .-. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Nov 2014 11:36 AM |
| Nothing happens in the output; that is why i wanna punch my monitor |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 30 Nov 2014 11:58 AM |
| (Doesn't have to be a LocalScript) |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|