I want to make a plugin for an admin that "makes" the given player chat the given message. on the screen it would look like this: *chat randomperson blahblahblah
RandomPerson: blahblahblah
I'm stuck on making the part where it auto-detects the player(randomperson)'s chat color. I dug into other admin scripts, but they all had annoying remote functions that made no sense. Here is my script so far:
return function(set) --function that the main script will run
--Lets make an example command
set.MakeCommand('hypnotizes a player into chatting a message. (parents dont worry it lasts only 2 seconds)',4,set.Prefix,{'hypnochat','HypnoChat'},{'<player>','<message>'},function(plr,args)
wait() -- next line is the username
game.StarterGui:SetCore("ChatMakeSystemMessage",{
Text = args[1]
})
wait() -- next line is the text
game.StarterGui:SetCore("ChatMakeSystemMessage",{
Text = args[2]
Color = Color3.new(255,255,255)
FontSize = Enum.FontSize.Size18
})
end)
end -- end of t
and if you're wondering, the admin i'm using is Epix.
Thanks for reading! Troy
