I was wondering if someone could help me script transformations into a game. I am trying to make a DBZ styled game but anytime I try to script it in to where you say "ssj" it turns on but it doesn't work however, so does anyone know if Lua changed its chat commands? heres the code example:
local p = game.Players.LocalPlayer p.Chatted:connect(function(msg) if msg == "ssj" then print ("message was ssj!") game:GetService("Chat"):Chat(char.Head, string.upper ("curse you..."), 2)
please not that this is just the part I use for trying to get it to work when I say ssj in game. Any ideas as what I am doing wrong?
local ChatService = game:GetService("Chat") local LocalPlayer = game.Players.LocalPlayer LocalPlayer.Chatted:Connect(function(Msg) if Msg == "ssj" then print("message was ssj!") ChatService:Chat(LocalPlayer.Character, "CURSE YOU...", 2) end end)