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

Chat Bubble overlap parts?

Asked by 8 years ago

I have a script were it makes a NPC chat. But the chat bubble gets overlapped by a wall. Is it possible to make a chat bubble overlap parts? Note: I'm using game:GetService("Chat"):Chat()

local z = script.Parent.Zombie
local c = game.ServerScriptService.ChatScript
local num = 0

function Chat(chat)
    c.Chat.Character.Value = script.Parent.Name
    c.Chat.Value = chat
    game:GetService("Chat"):Chat(script.Parent.Head, chat, Enum.ChatColor.Red)
    print("Chatted")
end

z.Changed:connect(function()
    if z.Health < z.MaxHealth and num == 0 then
        Chat("YOU SHALL NOT PASS")
        num = 1
    elseif z.Health <70000 and num == 1 then
        Chat("You fool, once you get in, you won't exist anymore!")
        num = 2
    elseif z.Health <30000 and num == 2 then
        Chat("The Overseer has already overseen your foolish presence! LEAVE NOW!")
        num = 3
    elseif z.Health <5000 and num == 3 then
        Chat("You will regret later...")
        num = 4
    end

end)
0
Could we see the script iSvenDerp 233 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago

Well if you mean the chat bubble when you type into the chat bar, or it might work for what you ment.

It might not work if the is a gui block then the text goes behind the block, if its the wall your text maybe to long and will go in the wall and you will have to angle your camera where you can see it, but I don't know about over lapping.

Hope you find out soon! :)

Ad

Answer this question