Jump to content

Brick shows text on mouse-hover


Recommended Posts

basically you put a clickdetector in the brick and use the ClickDetector.MouseHoverEnter to detect a mouse entering.
And for the opposite use ClickDetector.MouseHoverLeave

(must be able to script)

Hope this helped!

Edited by Firopense

Share this post


Link to post
Share on other sites
  • 3 weeks later...

Pretty easy, have a local script inside starterplayerscripts and do this:

      local player = game.Players.LocalPlayer

      local mouse = player:GetMouse()

      local textpart = workspace.TextPart -- define ur textpart here

      while true do

      wait()

     if mouse.Target == textpart then

       -- put here the code that makes text visible

     end

     end  

 

hope this helped

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.