part = script.Parent
function Elevator()
for i = 0, 100, 1 do
game.Workspace.ElevatorPart.Position = Vector3.new(0, i, 0)
wait(.1)
end
part.ClickDetector.MouseClick:Connect(Elevator())
I wanna make the "ElevatorPart" to move up as soon as i click on the click detector but it isnt working. why?

1 comment
Exact same problem someone else was dealing with xD. I answered their question maybe it could help you https://scriptinghelpers.org/questions/76145/remote-event-one-of-2-args-become-nil-and-one-not