Try to make telekinesis power

Hi, how would I be able to lift other players in the air?
I already have a script but it only works for the parts

BodyPosition    = Instance.new("BodyPosition")
			BodyPosition.MaxForce = Vector3.new(12000, 12000, 12000)
			BodyPosition.P        = BodyPosition.P
			BodyPosition.D        = 550

			local mouse = game.Players.LocalPlayer:GetMouse()

			local SetNetworkOwner = game.ReplicatedStorage.SetNetworkOwner

			local Character = game.Players.LocalPlayer.Character

			local RunService = game:GetService("RunService")
			
			InTelekinesis = true

			
			if mouse.Target ~= nil and mouse.Target.Locked == false then	
					if mouse.Target:FindFirstChild("CanBeDragged") then
						target = mouse.Target
						mouse.TargetFilter = target
						SetNetworkOwner:FireServer(target)
						down = true 
					end
			end


			mouse.Move:Connect(function()
				if down == true and target ~= nil then 
					BodyPosition.Parent = target
					stepped = RunService.Heartbeat:Connect(function()
						BodyPosition.Position = Character.Head.Position + (mouse.Hit.Position - Character.Head.Position).Unit * 20
					end)
				end
			end)
local SetNetworkOwner = game.ReplicatedStorage.SetNetworkOwner

SetNetworkOwner.OnServerEvent:Connect(function(client, part)
	part:SetNetworkOwner(client)
end)

Try to move the humanoid root part of the character instead of just 1 part

Sorry but i don’t understand what do u want mean

Each character has a Primary part called the humanoid root part. This part will move the whole model of the character.

Put the body position in the humanoid root part and it should work.

1 Like

ok i gonna tests it now thx if it work

It Work!

1 Like