#How is this script not working??

1 messages · Page 1 of 1 (latest)

latent elm
#

It was literally working fine a couple minutes ago.

`local button = game.StarterGui.ScreenGui.TextButton
local button2 = game.StarterGui.ScreenGui.stop
local vel = Instance.new("LinearVelocity")
local e = game.Workspace.Elevator.Union
vel.Parent = e
vel.Attachment0 = e.Attachment
vel.ForceLimitsEnabled = false

local function buttonPressed()

vel.Enabled = true
print("go")
vel.VectorVelocity = Vector3.new(0,10,0)
e.Anchored = false

end

local function button2Pressed()
vel.Enabled = false
print("stop")
vel.VectorVelocity = Vector3.new(0,0,0)
e.Anchored = true
end

button.Activated:Connect(buttonPressed)`

#

I know I didn't activate button2 but I am focusing on button 1.

polar elk
#

wdym its not working

#

how isnt it working

stable tusk
#

what is the error

#

??

#

or describe the issue