But I am unsure how… I already have a serverscript which just makes the player go one direction
local Players = game.Players:GetPlayers()
for _, Player in pairs(Players) do
local Character = Player.Character
if not Character then
continue
end
local Root = Character:FindFirstChild("HumanoidRootPart")
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
if not Root or not Humanoid then
continue
end
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Velocity = Vector3.new(1500, 1000, 0)
BodyVelocity.MaxForce = Vector3.new(7500,7500,7500)
BodyVelocity.Parent = Root
Humanoid.PlatformStand = true
end
And it would be nice if it was based on the distance of the player from the part.
Use Root:ApplyImpulse(fling_direction) for a momentary movement (akin to a shove), or use the BodyVelocity in your original script: BodyVelocity.Velocity = fling_direction
Uhm so it’s supposed to fling the player like across the entire room, but it is only slowly sliding him on the floor. Would you know how to fix that please?