I've attempted to make a script that displays a gui when it hovers over an object with a Humanoid in it and the instance called Hover inside the object.
Nothing happens...please help.
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
while wait() do
if Mouse.Target then
print(1)
if Mouse.Target:FindFirstChild("Humanoid") and Mouse.Target ~= Player.Character then
print(2)
if Mouse.Target:FindFirstChild("Hover") then
HoverWords = Instance.new("TextLabel", Player.PlayerGui.ScreenGui)
HoverWords.BackgroundTransparency = 0.4
HoverWords.BackgroundColor3 = Color3.new(0, 0, 0)
HoverWords.BorderColor3 = Color3.new(255, 255, 255)
HoverWords.Size = UDim2.new(0.075, 0, 0.035, 0)
HoverWords.TextColor3 = Color3.new(255, 255, 255)
HoverWords.Text = Mouse.Target.Torso:FindFirstChild("Hover").Value
HoverWords.Position = UDim2.new(Mouse.X, 0, Mouse.Y, 0)
end
end
end
end

3 comments
Nah didn't change anything, it only gets as far as the first print.
I added more information which should help.
Thank you it works now!