Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Script not repeating when player respawns?

So when a play joins a team, I want them to respawns at their spawn, that's working fine, and when they join the team the morph does weld to the player, but when the player dies, the morph doesn't clone again afterwards so that they are still wearing the morph. That may have made no sense but I hope you understand what I mean. Here is my script. If you need more I'll post some.

game.Teams.Playing.PlayerAdded:Connect(function(Plr)
	Plr.CharacterAdded:Connect(function()
			local Clone = game.Workspace:WaitForChild("ADChest")
	for i, v in pairs(Clone:GetChildren()) do
		if v:IsA("MeshPart") or v:IsA("Part") then
			v.Anchored = false
			else
				
		end
	end
Clone.Parent = game.Workspace.ArnorClones
Clone.MainContraint.Part0 = Plr.Character:WaitForChild("UpperTorso")
Clone.Middle.CFrame = Plr.Character.UpperTorso.CFrame
end)
end)

1 answer

✓ Accepted answer

You Probably Need To Place The Script In StarterGui or StarterPack Because Those services restart everytime the player resets/dies-- hope this helps!

4 comments

0

Do you think I'd be able to just set a remote function from a local script to that script? I'm only asking because that is a server script.

0

Yeah You Could

0

Alr, thank you!

0

np :D

This discussion is preserved as it was. New answers, comments, and votes are closed.