Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local Guard = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Frame.BackgroundTransparency = 0.20000000298023
- Frame.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Frame.Position = UDim2.new(0.0218270011, 0, 0.793103456, 0)
- Frame.Size = UDim2.new(0, 184, 0, 76)
- Frame.Draggable = true
- Name.Name = "Name"
- Name.Parent = Frame
- Name.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Name.BackgroundTransparency = 1
- Name.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Name.Position = UDim2.new(0.125, 0, 0, 0)
- Name.Size = UDim2.new(0, 137, 0, 24)
- Name.Font = Enum.Font.SourceSans
- Name.Text = "BodyGuard Gui"
- Name.TextColor3 = Color3.new(0, 0, 0)
- Name.TextSize = 25
- Guard.Name = "Guard"
- Guard.Parent = Frame
- Guard.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Guard.BorderColor3 = Color3.new(0.254902, 0.254902, 0.254902)
- Guard.Position = UDim2.new(0.0815217346, 0, 0.303246439, 0)
- Guard.Size = UDim2.new(0, 152, 0, 40)
- Guard.Font = Enum.Font.SourceSans
- Guard.Text = "Guard(OFF)"
- Guard.TextColor3 = Color3.new(0, 0, 0)
- Guard.TextSize = 14
- Guard.MouseButton1Click:Connect(function()
- if game.Players.LocalPlayer.Character.Torso.Anchored == true then
- Guard.Text = "Guard(OFF)"
- end
- if game.Players.LocalPlayer.Character.Torso.Anchored == false then
- Guard.Text = "Guard(ON)"
- end
- if Guard.Text == "Guard(ON)" then
- game.Players.LocalPlayer.Character.Torso.Anchored = true
- end
- if Guard.Text == "Guard(OFF)" then
- game.Players.LocalPlayer.Character.Torso.Anchored = false
- end
- end)
- Close.Name = "Close"
- Close.Parent = Frame
- Close.BackgroundColor3 = Color3.new(1, 1, 1)
- Close.BackgroundTransparency = 1
- Close.Position = UDim2.new(0.907608688, 0, 0, 0)
- Close.Size = UDim2.new(0, 23, 0, 24)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextColor3 = Color3.new(1, 0, 0)
- Close.TextSize = 20
- Close.MouseButton1Click:Connect(function()
- Frame:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement