of     1   

Distortional
#140446911Tuesday, July 15, 2014 9:32 PM GMT

Basically, I want a tool to drop on death. Only ONE tool, and only one player will have it. The script will be in the tool. I tried this, but it does it any time ANYONE dies. function onPlayerDeath(player, character) local center = character.Head.Position local tools = script.Parent --print(player.Name .. "'s tools are dropped!") for i = 1, #tools do local v = tools[i] if v:IsA("Tool") then v.Parent = workspace local theta = i/#tools*math.pi*2 v.Handle.CFrame = CFrame.new(center + Vector3.new(math.sin(theta)*5, 0, math.cos(theta)*5), center) wait() end end for i = 1, #tools do if tools[i]:IsA("Tool") then tools[i].Parent = creator.Value:FindFirstChild("Backpack") end end end function onPlayerSpawned(player, character) character.Humanoid.Died:connect(function () onPlayerDeath(player, character) end) end function onPlayerChatted(player, message, recipient) end function onPlayerEntered(player) player.CharacterAdded:connect(function (char) onPlayerSpawned(player, char) end) player.Chatted:connect(function (msg, rec) onPlayerChatted(player, msg, rec) end) end game.Players.PlayerAdded:connect(onPlayerEntered) Caaaactus.
Distortional
#140447109Tuesday, July 15, 2014 9:34 PM GMT

k Caaaactus.
dragonkeeper467
#140447399Tuesday, July 15, 2014 9:36 PM GMT

print what player and character are returning, like what name is returning for player
Distortional
#140447449Tuesday, July 15, 2014 9:36 PM GMT

ummmmmm what? Caaaactus.
Distortional
#140447543Tuesday, July 15, 2014 9:37 PM GMT

the tool isn't in Backpack it's in the character, because it's enabled. Caaaactus.
Distortional
#140447632Tuesday, July 15, 2014 9:38 PM GMT

helpp meeeeeeee Caaaactus.
Distortional
#140449562Tuesday, July 15, 2014 9:56 PM GMT

fix it or perish Caaaactus.
Distortional
#140468952Wednesday, July 16, 2014 1:06 AM GMT

bump Caaaactus.
JarodOfOrbiter
#140469241Wednesday, July 16, 2014 1:09 AM GMT

Obvious problem. Get the local player instead of getting every single player every time any single player joins. Why would you want it like that?
BladeXE
#140469362Wednesday, July 16, 2014 1:10 AM GMT

lp = game.Players.LocalPlayer lp.Character.Humanoid.Died:connect(function(died) if lp.Backpack:GetChildren()[1] then items = lp.Backpack:GetChildren() item = items[math.random(1,#items)] item.Parent = Workspace item.Handle.Position = Vector3.new(lp.Character.Torso.Position.X,lp.Character.Torso.Position.Y+6,lp.Character.Torso.Position.Z
BladeXE
#140469531Wednesday, July 16, 2014 1:12 AM GMT

forgot ends and stuff lp = game.Players.LocalPlayer lp.Character.Humanoid.Died:connect(function(died) if lp.Backpack:GetChildren()[1] then items = lp.Backpack:GetChildren() item = items[math.random(1,#items)] item.Parent = Workspace item.Handle.Position = Vector3.new(lp.Character.Torso.Position.X,lp.Character.Torso.Position.Y+6,lp.Character.Torso.Position.Z) end end)

    of     1