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

Vector3 not moving a part?

Asked by 1 year ago

I was attempting to script a Vector3 thing, where it would move the part down and destroy another part to make it look like it fell down.

The idea is if you try to go outside, the IBeam will fall down and make it impossible to go outside.

My script right now is:

local IBeam = script.Parent

local Trigger = game.Workspace.TouchTrigger

local Sound = game.Workspace.CollapseSound

local Ibeamdestroy = game.Workspace.Invisible

local vector = Vector3.New(0, -20, 0)

Trigger.Touched:Connect(function(hit) local humanoid = hit.Parent.Humanoid if humanoid then Trigger:Destroy() Sound:Play() IBeam.Position = IBeam.Position + vector end end)

I haven't scripted anything for an invisible wall to be cancollided so that it cant be exited. I can do that myself, so you don't need to change anything in the script other than anything that I've done wrong. Thanks in advance!

Answer this question