Advertisement
Guest User

Untitled

a guest
Jul 11th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local item = game:GetService("ReplicatedStorage"):WaitForChild("Dual Darkhearts")
  2. local db = true
  3.  
  4. script.Parent.Touched:connect(function(part)
  5. if part.Parent:FindFirstChild("Humanoid") ~= nil then
  6. local player = game.Players:GetPlayerFromCharacter(part.Parent)
  7. if player ~= nil then
  8. if player.Backpack ~= nil then
  9. if db == true then
  10. db = false
  11. item:Clone().Parent = player.Backpack
  12. wait(1)
  13. db = true
  14. end
  15. end
  16. end
  17. end
  18. end)
  19.  
  20. Rotation Animation Script:
  21. while wait() do
  22. script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,0,0.05) -- Angle depends in the angle of the Item.
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement