Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local np = Instance.new("Part")
- local plr = game.Players.LocalPlayer
- local GetTorsoGUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local GetTorsButton = Instance.new("TextButton")
- local Userbox = Instance.new("TextBox")
- -- Properties
- GetTorsoGUI.Name = "GetTorsoGUI"
- GetTorsoGUI.Parent = plr.PlayerGui
- Frame.Parent = GetTorsoGUI
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.254452914, 0, 0.333333343, 0)
- Frame.Size = UDim2.new(0, 387, 0, 168)
- Frame.Draggable = true
- GetTorsButton.Name = "GetTorsButton"
- GetTorsButton.Parent = Frame
- GetTorsButton.BackgroundColor3 = Color3.new(0, 0, 0)
- GetTorsButton.BorderSizePixel = 0
- GetTorsButton.Position = UDim2.new(0.0490956083, 0, 0.583061397, 0)
- GetTorsButton.Size = UDim2.new(0, 348, 0, 50)
- GetTorsButton.Font = Enum.Font.SourceSans
- GetTorsButton.Text = "Get Torso"
- GetTorsButton.TextColor3 = Color3.new(1, 1, 1)
- GetTorsButton.TextScaled = true
- GetTorsButton.TextSize = 14
- GetTorsButton.TextWrapped = true
- Userbox.Name = "Userbox"
- Userbox.Parent = Frame
- Userbox.BackgroundColor3 = Color3.new(0, 0, 0)
- Userbox.BorderSizePixel = 0
- Userbox.Position = UDim2.new(0.0490956046, 0, 0.101522848, 0)
- Userbox.Size = UDim2.new(0, 348, 0, 50)
- Userbox.Font = Enum.Font.SourceSans
- Userbox.Text = "Username"
- Userbox.TextColor3 = Color3.new(1, 1, 1)
- Userbox.TextScaled = true
- Userbox.TextSize = 14
- Userbox.TextWrapped = true
- Part0 = Instance.new("Part")
- GetTorsButton.MouseButton1Down:connect(function()
- Part0.Name = "UpperTorso"
- Part0.Anchored = false
- Part0.Parent = game.Workspace[Userbox]
- Part0.Size = Vector3.new(6.9800005, 7.50999928, 8.42999649)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- end)
- GetTorsButton.MouseButton1Down:connect(function()
- if game.Workspace[Userbox.Text]:FindFirstChildOfClass("Humanoid").RigType ==
- Enum.HumanoidRigType.R15 then
- Part0.Name = "Torso"
- Part0.Anchored = false
- Part0.Parent = game.Workspace[Userbox]
- Part0.Size = Vector3.new(6.9800005, 7.50999928, 8.42999649)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- else
- Part0.Name = "UpperTorso"
- Part0.Anchored = false
- Part0.Parent = game.Workspace[Userbox]
- Part0.Size = Vector3.new(6.9800005, 7.50999928, 8.42999649)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement