Hello, so I'm trying to make a scary atmosphere (based on seildirectory) where when someone touches a hidden part, they teleport to this black box and get kicked and a message popups up which is a caesar cipher but it's as a ServerScript and I need help for to make it that the person who touched it only hears and gets kicked.
Code:
local sound = SoundService:WaitForChild("Relaxed Scene")
local deathofears = SoundService:WaitForChild("Creepy Night")
sound:Play()
local Players = game:GetService("Players")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
local player = Players:GetPlayerFromCharacter(character)
if player then
sound:Stop()
deathofears:Play()
character:MoveTo(workspace.sean.sean:WaitForChild("deatharrivestoeveryone").Position)
task.wait(3)
player:Kick("pa jvtlz vba vm wshpu zpnoa")
deathofears:Stop()
end
end
end)```
** You are now Level 4! **