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
 

How i can delete backpack.weapon

Previous Thread :: Next Thread 
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:29 PM
can i use "LocalPlayer" or other ...

game.Players.[I DONT KNOW HERE ].Backpack.Knife:Destroy()
Report Abuse
Skellobit is not online. 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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:31 PM
It's not a Localscript how i can do ?
Report Abuse
Casxul is not online. 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 is not online. 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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:34 PM
No when we use a Gui soo if i use that work only in RobloxStudio :/
Report Abuse
Skellobit is not online. 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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:36 PM
Do you want to see that ERROR in my game ?
Report Abuse
Skellobit is not online. 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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:39 PM
Yes ...
Report Abuse
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:40 PM
If i use a Local script that should be working ?
Report Abuse
Skellobit is not online. 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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
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
dadibox12342 is not online. dadibox12342
Joined: 13 Dec 2014
Total Posts: 54
15 Jun 2016 04:47 PM
https://www.roblox.com/games/195619813/Free-For-All-NEW-UPTADE#!/about
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