Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

How Do I Make A Script That Drop An Item when Kill A Player?

Asked by
ImfaoXD 158
8 years ago

function Drop() local drops = {"item"} local G = math.random(1, 1) local Obj = game.Lighting:findFirstChild(drops[G]):Clone() Obj.Parent = game.Workspace Obj.Handle.CFrame = script.Parent.Head.CFrame + Vector3.new(5,2,0)
script:remove() end

while true do wait(.1) if (script.Parent.Humanoid.Health <1) then Drop() end end

Answer this question