Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How could I use the "VectorForce"?

I was trying push the player when he touched one Part

I tried with Velocity and BodyForce but nothing is working 100%

1 answer

Place attachment into a part, Then make the VectorForce attachment0 into your attachment. And adjust everything you want.

Example:

local Part = game.Workspace:WaitForChild("Part")
local Attachment = Instance.new("Attachment", Part)
local Force = Instance.new("VectorForce", game.Workspace)
Force.Attachment0 = Attachment
Force.Force = Vector3.new(1100, 0, 0)

1 comment

0

one example of scripting of the VectorForce pls

This discussion is preserved as it was. New answers, comments, and votes are closed.