Below is a script I want to display the model name when it hovers over it. I'm not sure what to put. the local text is where I am trying to display the name.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local mouse = game.Players.LocalPlayer:GetMouse()
local text = script.Parent.Texty.Text
while true do
function showdata()
if mouse.Target ~= nil then
if mouse.Target.Parent.className == "Model" then
-- Don't know what to put here.
end
end
end
mouse.Move:connect(showdata)
wait(.05)
script.Parent.Position = UDim2.new(0, ((mouse.X)-90), 0, ((mouse.Y)-20))
end
