How Do Make The Script That Give An Item When The Player Kill Another Player?
I want to make this script work when a player kill a player and then they receive an item such as coins and others from the dead person and if the killer do not pick up the item, then it will disappear. How am I going to do that?
03 | local G = math.random( 1 , 1 ) |
04 | local Obj = game.Lighting:findFirstChild(drops [ G ] ):Clone() |
05 | Obj.Parent = game.Workspace |
06 | Obj.Handle.CFrame = script.Parent.Head.CFrame + Vector 3. new( 5 , 2 , 0 ) |
13 | if (script.Parent.Humanoid.Player.Health < 1 ) then |