|
| 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 |
|
|
| |
|
|
| 30 Jul 2013 07:27 PM |
| Where is the script placed at? Is it in workspace or player or what? |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2013 07:28 PM |
| Never mind locking this post. |
|
|
| Report Abuse |
|
|
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 |
|
|