-
What do you want to achieve?
I want to make a mouse hover that show enemy’s tag using tween service transparency -
What is the issue?
Idk how to locate my textlabel billboard gui in startercharacter -
What solutions have you tried so far?
game.Players.LocalPlayer.Character:Waitforchild (“Billboard”).transparency
local label = game.Players.LocalPlayer.Character:Waitforchild (“Billboard”)
local player = game.players.localplayer
local mouse = player:GetMouse()
local tweenService = game:GetService("TweenService")
Function updatepos()
local target = mouse.target
if target and target:findfirstchild(“mouseovertext ”) then
local tweenInfo = TweenInfo.new(
1, --Time
Enum.EasingStyle.Linear, --EasingStyle
Enum.EasingDirection.Out, —EasingDirection
0, --Repeat count
false, --Reverses if true
0 --Delay time
)
local tween = tweenService:Create(label, tweenInfo, {Transparency = 0})
tween:Play()
else
local tweenInfo = TweenInfo.new(
1, --Time
Enum.EasingStyle.Linear, --EasingStyle
Enum.EasingDirection.Out, —EasingDirection
0, --Repeat count
false, --Reverses if true
0 --Delay time
)
local tween = tweenService:Create(label, tweenInfo, {Transparency = 1})
tween:Play()
end
end
mouse.move:Connect(updatePos)
updatePos()
—I know there is a lot of error,spelling,etc and this script is crooked bc I’m “planning ”to make it and I’m in mobile phone typing all of the script.the tween line I took from dev forum bc it’s easier
I use this for my template How To Make MOUSEOVER TEXT! Roblox - YouTube