#Tower win message in the chat.

1 messages · Page 1 of 1 (latest)

jagged pebble
#

I want to make a Tower type game, but i want it to have a function, so when a player touches the winpad, a message apears in the chat with the players username and with the tower name that he completed. PLEASE HELP ME 🙏

nova dove
#

Uhh what problem are you having

jagged pebble
#

so i want to make a script for the winpad that when a player touches it a message in the chat shows up that the player has completed the tower. And also everyone in the server can see that message.

#

i just dont know how to make it.

nova dove
#
local chatservice = game:GetService("ChatService")
local winpad = workspace.winpad

winpad.touched:Connect(function(hit)
  local hum = hit.Parent:WaitForChild("Humanoid"

if hum then
   local plrname = hum.Parent.Name

local towername = ...
chatservice:sendmessage(plrname, towername)
end
end)```
#

idk abt chatservice

jagged pebble
#

so i put this script into the winpad?

nova dove
#

or workspace aswell but u can put it there

jagged pebble
#

i have put it into the winpad but it does nothing

#

wait

#

i might have fixed it

#

noep

#

nope

#

what i mean by a message in the chat

#

but it doesnt need the [GLOBAL}

#

just the message

nova dove
jagged pebble
#

this isnt what im looking for

pliant rivetBOT
#

studio** You are now Level 3! **studio

nova dove
#

so did u figure it out

#

i dont think u can do it in the chat

#

@jagged pebble

jagged pebble
#

no

nova dove
#

Why not