Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --References
- local PartToDisplay = script.Parent
- local ProximityPrompt = script.Parent.ProximityPrompt--Find ProximityPrompt
- --Services
- local ChatService = game:GetService("Chat")
- --Variables
- local Debouce = false
- --Settings
- local Settings = {
- DebouceTime = 1,
- Message = "Hello and goodbye",
- ColorOfText = Enum.ChatColor.White
- }
- --Script
- ProximityPrompt.Triggered:Connect(function()
- if Debouce == false then
- Debouce = true
- ChatService:Chat(PartToDisplay,Settings.Message, Settings.ColorOfText)
- wait(Settings.DebouceTime)
- Debouce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment