3 years ago

here. a script for pushing others.


local player = game.Players.LocalPlayer

local character = player.Character

local humanoid = character:WaitForChild("Humanoid")

-- Create a "Touch" event for the character's HumanoidRootPart

humanoid.RootPart.Touched:Connect(function(hit)

-- Check if the character is colliding with another player

local targetPlayer = game.Players:GetPlayerFromCharacter(hit.Parent)

if targetPlayer then

-- Apply a force to the other player's character to push it

local force = (hit.Position - character.HumanoidRootPart.Position).unit * 50

hit.Parent:FindFirstChildOfClass("Humanoid"):AddForce(force)

end

end)



4 comments

Loading...

Next up

Look down.

Nothing in this line.

Swapped Just!404

THERES LORE BRO. LOREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.

I. WAS. SO. DAMN. CLOSE.

IF this gets featured i will attempt again (please dont)

Free Schlep!

100 y/o vampire laughs over a construction object

We will never forget. Until something is done.

i am atomic yes this post does not make sense at all for the last one im making in a while

it's been a while, hasn't it?

#IPlayedRuin i can multi-task using a snipping tool