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
 

Help please...

Previous Thread :: Next Thread 
ArenaMaker is not online. ArenaMaker
Joined: 03 Nov 2006
Total Posts: 2702
07 Jun 2012 10:11 PM
I am working on a game, and I need a brick that when you touch it, it gives you a sword. I have tried a couple scripts, bot nothing! Please help.
Report Abuse
awesomoshane is not online. awesomoshane
Joined: 01 Nov 2009
Total Posts: 21681
07 Jun 2012 10:13 PM
FREE MODEL

>#god - mode abs
Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
07 Jun 2012 10:13 PM
local debounce = false

function onTouch(part)

local human = part.Parent:findFirstChild("Humanoid")
if (human ~= nil) and debounce == false then

debounce = true

local player = getPlayer(human)

if (player == nil) then return end

script.Parent:clone().Parent = player.Backpack

wait(2)
debounce = false
end
end


script.Parent.Parent.Touched:connect(onTouch)
Report Abuse
ArenaMaker is not online. ArenaMaker
Joined: 03 Nov 2006
Total Posts: 2702
07 Jun 2012 10:15 PM
thx
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