|
| 15 Jun 2016 04:29 PM |
can i use "LocalPlayer" or other ...
game.Players.[I DONT KNOW HERE ].Backpack.Knife:Destroy() |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 15 Jun 2016 04:29 PM |
you can use LocalPlayer if it's a LocalScript
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:31 PM |
| It's not a Localscript how i can do ? |
|
|
| Report Abuse |
|
|
Casxul
|
  |
| Joined: 12 Mar 2012 |
| Total Posts: 28 |
|
|
| 15 Jun 2016 04:33 PM |
You want the sword to delete? Do you mean when it touches a block?
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 15 Jun 2016 04:33 PM |
post your code
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:34 PM |
No when we use a Gui soo if i use that work only in RobloxStudio :/
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 15 Jun 2016 04:35 PM |
that didn't make sense post your script if it's not local
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:35 PM |
price = 250
script.Parent.price.Text = price
cash = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Cash
function c() script.Parent.Parent.Buyed:Play() game.Players.LocalPlayer.Backpack.Knife:Destroy() wait(0.5) if cash.Value >= price then cash.Value = cash.Value -price local c = script.Parent.Knife:clone() c.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
end end
|
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:36 PM |
| Do you want to see that ERROR in my game ? |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 15 Jun 2016 04:37 PM |
you're using LocalPlayer in a normal script did you even write that?
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Jun 2016 04:40 PM |
If i use a Local script that should be working ?
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 15 Jun 2016 04:40 PM |
then... 1) why are you looking for LocalPlayer in a normal script? and 2) why are you once using a ton of .Parents to trace back to the Player, then using LocalPlayer another time
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:45 PM |
I just want when i click to Buy that remove the Knife just that
Im not a profesional Scripter but i dont know how i can do it ...
Can you just come see that Error in my game ? |
|
|
| Report Abuse |
|
|
|
| 15 Jun 2016 04:47 PM |
| https://www.roblox.com/games/195619813/Free-For-All-NEW-UPTADE#!/about |
|
|
| Report Abuse |
|
|