1 | while true do |
2 | wait() |
3 | if script.Parent.Parent.TextBox.Text = = "..." then |
4 | if game.Workspace [ "script.Parent.Parent.TextBox.Text" ] :FindFirstChild( "Humanoid" ) ~ = nil then |
5 | game.Workspace [ "script.Parent.Parent.TextBox.Text" ] .Head:Destroy() |
6 | end |
7 | end |
8 | end |
01 | screenGui = game.Players.PLAYERNAME.PlayerGui.ScreenGui |
02 | textBox = screenGui.TextBox |
03 | textButton = screenGui.FF |
04 | currentSelectedPlayer = nil |
05 | textBox.FocusLost:connect( function () |
06 | for i,v in pairs (game.Players:GetChildren()) do |
07 | if v.Name = = textBox.Text then |
08 | currentSelectedPlayer = v |
09 | end |
10 | end |
11 | end ) |
12 | textButton.InputBegan:connect( function (key) |
13 | if currentSelectedPlayer and key.UserInputType = = Enum.UserInputType.MouseButton 1 then |
14 | Instance.new( "ForceField" , currentSelectedPlayer.Character) |
15 | end |
16 | end ) |