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

Help with Chatted Script?

Asked by
iSvenDerp 233 Moderation Voter
9 years ago

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

Log in to vote
2
Answered by 9 years ago

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)


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. iSvenDerp 233 — 9y
0
kk ;) XToonLinkX123 580 — 9y
0
Thanks so much it worked! iSvenDerp 233 — 9y
0
You're welcome ! XToonLinkX123 580 — 9y
Ad

Answer this question