#i was making a script where my character after 3 seconds after joining it would say something

9 messages · Page 1 of 1 (latest)

craggy fjord
#

help me fix this shi

local function sayPhrase(character, phrase)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:DisplayName = phrase
end
end

local function clearPhrase(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:DisplayName = character.Name
end
end

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)

    wait(3)
    
    sayPhrase(character, "Hello, world!")
    
    wait(3)
    clearPhrase(character)
end)

end)

tropic scroll
#

bruh

#

show me method display nam

#

I dont see it

#

maybe because this is property

strange robin
#

to make the character chat, you use the "chat" service and use :Chat()

craggy fjord
#

alr ty