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

Changing a color of a part while hovering and pressing a key?

Asked by 9 years ago

Title explains all. I just need some clarifications... The key press would use ContextActionService right? While the hover would use MouseEnter and MouseLeave right?

So basically.. The part waits for a mouse to hover AND with a certain key pushed. But I also want it that if it's a different person/class, it's a different color/effect.

Is it much better to have a script concerning a certain class' functions(working on RPG atm, i.e the script will be if the USER of that CLASS presses a BUTTON and HOVERS on a part, that PART will change color) or have the script accommodated to the part itself?

Thanks!

PS: In order for the color change to occur, it's KEY PRESS first then hover then change color automatically begins.

Also how to make the color change only visible to you?(client-side)

0
This is not a request site. There is no effort shown in your question, therefore it is a request for us to make you the whole script. First of all, show your research. Show what you looked at and what you tried. Post your code. Make sure you post the code that is relevant and tell us what it's not doing that you want it to do. Post any errors if there were any. Then, you have a high chance of some LetThereBeCode 360 — 9y

Answer this question