I've tried everything and here is the script i made

local stan = game.Workspace.Stan

Debounce = false
function onTouched(Hit)
    local Player = Hit.Parent and Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent.Humanoid.Health > 0 and game.Players:GetPlayerFromCharacter(Hit.Parent)
    if Player then
	  local plr = game.Workspace:FindFirstChild(Player.Name)
   game:GetService("Chat"):Chat(script.Parent.Head, "Somethings Wrong. HMM", Enum.ChatColor.Blue)
wait(4)
   game:GetService("Chat"):Chat(script.Parent.Head, "OH I NOW KNOW, ITS THE PART UPDATE *i don wanna get banned* so ill make him look even better", Enum.ChatColor.Blue)
wait(5)
game:GetService("Chat"):Chat(script.Parent.Head, "You Are getting banned today", Enum.ChatColor.Blue)
game.StarterGui.ScreenGui.BAN.Frame.Visible = true

    end
end

script.Parent.Touched:connect(onTouched)

does anybody know how i can make it so it can freeze the player coz the issue is, the text gets spamed

2 comments

0

if you want to make the player frozen you can anchor all of his body parts. I've done this before.

0

how can i anchore a player?