NOTE: I AM VERY NEW TO SCRIPTING!
Hi! I would like to make something where you hover over someone and it would say Group(s) ranks, for example, I am in TestGroupMain, and TestGroup1, when someone would hover over me it’d say:
Okay, I’m going to be honest I don’t understand much of this(Maybe I understand like 30%)
Can you try writing me the script(s) and put “–” then explaining it. I prefer that way, as it helps better for me.(It let’s me learn it faster, easier, and better.)
As well as please say the location if you are going to do this.
I can give you a little bit of a starting point, I can’t give you whole scripts though. You’d have to check out #collaboration:recruitment for that.
This would be a local script:
local players = game:GetService('Players')
local localPlayer = players.LocalPlayer
local mouse = localPlayer:GetMouse
local groupID = 123456
mouse.Move:Connect(function() -- the mouse object's .Move event
local target = mouse.Target -- this is the part
if target then -- if there is a target then
local player = players:GetPlayerFromCharacter(target:FindFirstAncestorOfClass('Model')) -- this is the player that is at the mouse's target if there is one
if player then -- if there's a player then
print('My rank in the group is,'player:GetRankInGroup(groupID)) -- output the rank
print('My role in the group is',player:GetRoleInGroup(groupID)) -- output the role
end
end
end)
This doesn’t really help much… As this isn’t what I wanted, and I don’t really want to recruit somebody… Do you have and video tutorials, again as a example:
You hover over them and it says their groups ranks(Multi-group ranks) and their username on hover. It displays text, not that It displays it in Console.
print('My role in the group is',player:GetRoleInGroup(groupID)) -- output the role
Doesn’t seem like that is what I want,
This from my point of view it printing once hovered into the Dev. Console, which isn’t what I really want…
I’m looking for if you hover over, it will display a Billboard GUI with text, and when you stop hovering over it goes invisible.