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)