I have a Hopperbin based tool and it summons a certain model for a short amount of time and I want to put ChatService somewhere so it summons the model with ChatService. Heres the script: bin = script.Parent
function onButton1Down(mouse)
local model = bin.Monster:clone() model.Parent = game.Workspace model:MakeJoints() model:MoveTo(mouse.hit.p) wait(5) game.workspace.Monster:Remove()
end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected)
Heres the ChatService: game:GetService("Chat"):Chat(me.Character.Head, "Cross-Fire!", "Green")
Did you specify "me"
This script makes a chat each time you press the left button of your mouse, By the way I'm not sure if saying "Green" will make it green. look at this ChatColor It explains the color well
Player = Game.Players.LocalPlayer mouse = Player:GetMouse() mouse.Button1Down:connect(function() game:GetService("Chat"):Chat(Player.Character.Head,"Cross Fire!","Green") -- That will make the user who uses that script get a chat but you need to do a function and connect it end)