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

How to make a GUI Appear when mouse hovers over a Character? [closed]

Asked by 6 years ago

Hey, I'm Elijah and I need some help.

So there's a current BOOTCAMP In Roblox that I'm trying to recreate. It has a script in it that makes it so when you hover your mouse over a Character it shows a GUI That says their rank in groups. I want it to be able to show every group so example,

Let's say it was like this 1970's Navy - Cheif of Naval Operations 1970's Military - Joint Chief of Staff 1970's NETC Naval Education and Training Command - Naval Staff


Or like this, https://i.imgur.com/8atR93u.png

0
click detector in torso so you can detect hover TheGreatSailor 20 — 6y

Closed as Not Constructive by theCJarmy7, Programical, and Shawnyg

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 6 years ago

You should use make it so that when a player spawns in, it instances a ClickDetector in the torso. Then after that script, use functions.

Try doing the script first and then someone might actually help you for real.

Ad
Log in to vote
0
Answered by 6 years ago

Might be a bit late, but you can use this script to toggle a frame being visible when you're hovering over a character.

Put this script inside of a frame to have it toggle when hovering over a character. Please note this will also work if hovering over an npc, if you don't want that you can uncomment the comment on line 9

local rs = game:GetService("RunService")
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

local frame = script.Parent -- this is assuming the script is inside of the gui you want to toggle

rs.RenderStepped:connect(function()
    local t = mouse.Target
    frame.Visible = t and t.Parent:FindFirstChild("Humanoid") -- and game.Players:GetPlayerFromCharacter(t.Parent)
end