Motor6d Code Problems

Hello, i’m 3bxw and i have a fantastic problem. I am currently got multiple motors on a jetway which works but the problem here is that i’ve gone right through my code and i’ve hit the ‘left’ button and it goes right. Although the code is produced to go to the left and not the right. This issue worked before i programmed all the problems, until i’ve reached this error.

I have looked through some videos and i have red my code over and over to confirm that it is the right one, which it is.

Here’s a few link to whats going on.

In run mode, i change the values and that is fine although the button does not? it’s all coded to run proper and the player parameter for each onServerEvent function was needed ‘to do so’.

Thanks.

Can’t you just try to change the - to a +

I’ve tried that still doesn’t work

You are using a Motor6D right? Could I see the properties of it

EDIT: I meant Motor6D

image Here is the settings to almost all of them (except for the Part0 and Part1)

Could you switch the - to + and show me a video of the result?

I hope this video explains it.

  • Run Mode works when i change the value
  • Play / Play here makes it only go to the right.

https://streamable.com/8zam92

You cannot edit the code during runtime, edit it before testing.

The code was editted after i hit stop on run mode then i hit play here

You edited the code then pressed stop then play again, try stopping then editing it then playing.

Also make sure you are editing the correct script

It still gives the same result nothing changes.

Because it gives the same result as this: image

as to:
image

You might be editing the wrong script, add print(Bridge.DesiredAngle) in the CabLeft event, and see what it prints, if it prints the correct number, then you might be rotating the wrong motor, if it doesn’t print anything then you are not even firing the event.

Alright heres the video.

https://streamable.com/37q783 right at the end top 5 is the left button and the bottom 5 is the right button.

do keep in mind it is almost the end of the video.

In the output, it seems to print the number from the same exact line, either the Right button fires both events for left and right, or the Left button fires the same event for left and right.

Check the client sided scripts in your GUI, the buttons fire wrong events.

Ah yes i have just noticed Lol. Thanks i need to re-read all my code lol. thanks for the help man. Appreciate that. i had it set to CabinRight on the left button.

1 Like