How to make player teleport where cursor is [ignore]

i want when the player hits q he will teleport to the curser. can someone just make a example game?

1 Like

mousemove → position

4 Likes

*mouseclick → position

3 Likes

mouseclick doesn’t get the position

4 Likes

oooohhhhh

2 Likes

true dat true dat

2 Likes

image

2 Likes

guys pls give me a answer @Galactian @John_Shrekinson

1 Like

i just did, mousemove → position

3 Likes

put i want it only to enable when the player presses q

1 Like

you shou;d practice flowlab more
this is extremely simple too
you’re lucky i’m not just asking you to do it yourself
mousemove (x) → number (set) → position (x)
mousemove (y) → number (set) → position (y)
get the numbers on keyboard ‘q’

3 Likes

but i want it only to enable when the player PRESSES Q!

1 Like

How about when the player pushes :parking:

2 Likes

that’s exactly what my code does, stop complaining please

2 Likes

it doesnt have a keybind set to q in that coding that you just replyed

plus just give me a game example dude if its so simple why dont you just make a example for me

It’s probably because it’s easy, that it should be simple to figure out.

You could have switches that block both X and Y outputs of the mouse mouse and it switches on when Q is pressed and then turns off when Q is pressed up. Then take the X and Y outputs and link that to the X and Y inputs of the position behavior.

2 Likes

may you please just give me a example game plsssss

I’ll send a screenshot.

2 Likes

thx @CodeAlpaca and @ManiacPumpkin :slight_smile: