Why does this do this?

So im trying to create a force field and every time i summon it it moves me to the location of the forcefield. I looked through my script and made sure everything was perfect, the shield model has no welds or anything so im confused on whats wrong.

Code
	if DBounce == false then
		DBounce = true
		print(plr.Name)
		local KShield2 = KShield:Clone()
		local motor6D = Instance.new("Motor6D")
		local char = plr.Character or plr.CharacterAdded:Wait()
		--------------------------------------
		--Tweening
		local goal = {}
		goal.Transparency = 0.5
		
		local goal2 = {}
		goal2.Transparency = 1
		
		local fadeinTween = TweenService:Create(KShield2, TweenInfo.new(3),goal)
		local fadeOutTween = TweenService:Create(KShield2, TweenInfo.new(3),goal2)

		--------------------------------------
		local torso = char.Torso
		
		KShield2.Parent = torso
		motor6D.Parent = torso
		motor6D.Part0 = torso
		motor6D.Part1 = KShield2
		
		fadeinTween:Play()
		
		wait(waitTime)
		fadeOutTween:Play()
		fadeOutTween.Completed:Wait()
		
		KShield2:Destroy()
		motor6D:Destroy()
		
		wait(waitTime)
		DBounce = false
	end

end)```

Help would be appreciated, thank you for your time :grinning:

2 Likes

First, I personally would use welds instead of motor6Ds, seeing that you’ll keep it on the player as the same position.

You’d have to position the forcefield to the player and also weld it.

2 Likes