I need a event happen when a person dies, and it teleports objects from a inventory gui to workspace, does anyone know how? If you need the script sample here it is :D :
`game.Players.LocalPlayer.Character.Humanoid.Died:connect(function(ondeathy)
if game.ReplicatedStorage:FindFirstChild(stuff[x].Value) then
local xxx = game.ReplicatedStorage:FindFirstChild(stuff[x].Value)
for i, v in ipairs(game.ReplicatedStorage:GetChildren()) do
if v.Name == stuff[x].Value then
v.Parent = Workspace
v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(math.random(1,3),0,math.random(1,3)))
end
end end end)`
the value x is 1, 16 and stuff is all of the slot values :D

2 comments
It doesn't say anything
Please do not dedicate entire answers to this. Earn the ability to comment and reserve those to do these sorts of replies instead.