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

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

when the different emotions meet :

(this literally is my emotions)

I. WAS. SO. DAMN. CLOSE.

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

Got art block so I highkey drew Zguesto fish from OMN...

Look down.

Nothing in this line.

Swapped Just!404

I love french magicians, gotta be one of my favorite genders

--------------------------★

I was bored because I got home from school earlier since one of my teachers was sick

I, am also real sick rn-

first time making pixel art with paint.net

thanks dont forget files for the template

#IPlayedRuin i can multi-task using a snipping tool

[Insert awesome sauce title]

@MasaRioMikoCaburnay OC gift

i made expunged glitched a few months ago, decided to share it

the missing parts are corrupted not really corrupted i just didnt make them