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

I don't know how to specify all players in workspace. Help?

Asked by
Txnes 0
5 years ago
Edited 5 years ago

local Died = script.Died game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function() p.Character.Head.Died:Destroy() local Clone = Died:Clone() Clone.Parent = p.Character.Head end) end)

0
Do you want this sound to occur anytime a player dies? waifuSZN 123 — 5y
0
yes Txnes 0 — 5y

1 answer

Log in to vote
0
Answered by
yellp1 193
5 years ago
Edited 5 years ago
local Flange = script.Flange

game.Players.PlayerAdded:Connect(function(p)
    p.CharacterAdded:Connect(function()
        local Clone = Flange:Clone()
        Clone.Parent = p.Character.Head:FindFirstChild("Died")
    end)
end)
Ad

Answer this question