Help make a shield system

Hello there!
I have a model of a shield and would like to position it on the player.
The shield doesnt go in front of the player its like a forcefield.
I need to clone the part(model)
then position it on the player can anyone help me do that

There’s quite a lot of ways to do this, but a weldconstraint is the easiest.

Here’s a basic script to get you started, but since i don’t know your exact application, i can’t do much more then this.
Create a script with this code, copy the shield into it, then put the script into ServerScriptService and it should work provided your shield is a basepart.

Shield = script.Shield
game:GetService("Players").PlayerAdded:Connect(function(Player)
	print("Player Detected")
	Player.CharacterAdded:Connect(function(Character)
		print("Character Detected")
		local NewShield = Shield:Clone()
		NewShield.Position = Character:WaitForChild("HumanoidRootPart").Position
		local WeldConstraint = Instance.new("WeldConstraint")
		WeldConstraint.Part0 = NewShield
		WeldConstraint.Part1 = Character:WaitForChild("HumanoidRootPart")
		WeldConstraint.Parent = NewShield
		NewShield.Parent = Character
	end)
end)
1 Like

it works, Thanks!
Thank you for the help, I couldnt make it without u

No problem, before i forget to mention, you should set the .Massless property of the shield to true, as otherwise, issues can occur with using shiftlock and some other weird physics behaviour can occur.
image

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.