RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write a script that lets the part send a chat message to the player after being touched"
-- server script local part = script.Parent local Players = game:GetService("Players") local function onTouched(hit) local player = Players:GetPlayerFromCharacter(hit.Parent) if player then local message = "You touched the part!" player:Kick(message) end end part.Touched:Connect(onTouched)