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
 

Re: How do I make this script giving me a linked sword?

Previous Thread :: Next Thread 
ExpertxPro is not online. ExpertxPro
Joined: 26 Aug 2012
Total Posts: 1059
30 Jul 2013 07:23 PM
function buy()
if script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack["Darkheart"] == nil then
game.Lighting:findFirstChild("Darkheart"):Clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Parent.Backpack
end
end

I found this in a old post.
Report Abuse
ExpertxPro is not online. ExpertxPro
Joined: 26 Aug 2012
Total Posts: 1059
30 Jul 2013 07:25 PM
No?
Report Abuse
Saviorofdragons is not online. Saviorofdragons
Joined: 10 Jan 2013
Total Posts: 489
30 Jul 2013 07:27 PM
Where is the script placed at? Is it in workspace or player or what?
Report Abuse
ExpertxPro is not online. ExpertxPro
Joined: 26 Aug 2012
Total Posts: 1059
30 Jul 2013 07:28 PM
Never mind locking this post.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
30 Jul 2013 07:28 PM
Im guessing it's a touched script?

script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
Character = hit.Parent
Player = game.Players:GetPlayerFromCharacter(Character)
if not Player.Backpack:FindFirstChild("Darkheart") then
game.Lighting.Darkheart:Clone().Parent = Player.Backpack
end
end
end)
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