Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- HOW TO MAKE a CHATMESSAGE by TOUCHING PART!!! TextChatService BY BLOXIANCODE youtube.com/c/BloxianCode
- -- Tutorial: https://youtu.be/GhlRcTCkbT8
- local name
- local cooldown = false
- game.Workspace.touchPart.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if cooldown == false then
- cooldown = true
- name = hit.Parent.Name
- game.ReplicatedStorage.chatEvent:FireAllClients(name)
- wait(1)
- cooldown = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment