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

how would i put this script into a model?

Asked by 9 years ago
local OnButton = script.Parent; --Wherever your actual button is
local partWithForce = game.Workspace.biglift.up;
OnButton.ClickDetector.MouseClick:connect(function()
    local force = Vector3.new(0,210000,0); --Replace with your force
    partWithForce.BodyForce.force = force--This will turn the force back on
end)

as soon as I model it with something else it doesn't work or if there is two of the scripts in one workspace it work work either I need multiple

1
You're referencing biglift.up through the workspace, when it should look like this: local partWithForce = game.workspace.Model.biglift.up, where Model is the desired model. aquathorn321 858 — 9y
0
still doesnt work ive already tried that ags5321 0 — 9y

Answer this question