Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local item = game:GetService("ReplicatedStorage"):WaitForChild("Dual Darkhearts")
- local db = true
- script.Parent.Touched:connect(function(part)
- if part.Parent:FindFirstChild("Humanoid") ~= nil then
- local player = game.Players:GetPlayerFromCharacter(part.Parent)
- if player ~= nil then
- if player.Backpack ~= nil then
- if db == true then
- db = false
- item:Clone().Parent = player.Backpack
- wait(1)
- db = true
- end
- end
- end
- end
- end)
- Rotation Animation Script:
- while wait() do
- script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,0,0.05) -- Angle depends in the angle of the Item.
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement