Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How could I use the "VectorForce"?

Asked by 4 years ago

I was trying push the player when he touched one Part

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

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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)
0
one example of scripting of the VectorForce pls Xaron84 0 — 4y
Ad

Answer this question