So basically, I am making a GUI that kills people when you put their name in a box and press the "Kill Player" Button. This is the script I came up with.
local Person = game.StarterGui.KillGUI.PlayerNameHere.Text
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Person:BreakJoints()
end)
So basically, I put a ScreenGUI and named it KillGUI. I then put a text box in there and named it "PlayerNameHere." The game is also FilteringEnabled, just in case that helps you out. Thanks!
