Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with Chatted Script?

Hi, I appreciate everyone who helps me and my question. I have this chatted script that is fairly simple. It Gives a player a bigger head when said. Ik how to make a certain player say it and it will be done but I need this part fixed first. I do know how to do this but the output is showing no errors and idk whats wrong with it.

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        if msg == "bighead" then
            player.Character.Head = Vector3.new(1,50,1)
        end
    end)
end)

Thanks in advance ~ iSvenDerp (P.S) It doesnt have to be a Bigger head script I just used that to help simple it out:3.

1 answer

✓ Accepted answer

You need to set the Size of the head because the compilator don't know what you want when you only put "player.Character.Head"

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg)
        if msg == "bighead" then
            player.Character.Head.Size= Vector3.new(1,50,1)
        end
    end)
end)


4 comments

0

Thanks so much. I'm on mobile so I will not be able to check to see if it worked until a couple of hours from now. I'm pretty sure t will work cause I've done it before and I do think i left it out.

0

kk ;)

0

Thanks so much it worked!

0

You're welcome !

This discussion is preserved as it was. New answers, comments, and votes are closed.