Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Mouse1 = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Mouse2 = Instance.new("Frame")
- local TextLabel_2 = Instance.new("TextLabel")
- local S = Instance.new("Frame")
- local TextLabel_3 = Instance.new("TextLabel")
- local Space = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local W = Instance.new("Frame")
- local TextLabel_4 = Instance.new("TextLabel")
- local D = Instance.new("Frame")
- local TextLabel_5 = Instance.new("TextLabel")
- local A = Instance.new("Frame")
- local TextLabel_6 = Instance.new("TextLabel")
- local Resizer = Instance.new("Frame")
- local UISizeConstraint = Instance.new("UISizeConstraint")
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Position = UDim2.new(0.577625573, 0, 0.417690367, 0)
- Frame.Size = UDim2.new(0, 170, 0, 169)
- Mouse1.Name = "Mouse1"
- Mouse1.Parent = Frame
- Mouse1.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- Mouse1.BorderSizePixel = 0
- Mouse1.Position = UDim2.new(0.0399999991, 0, 0.779999971, 0)
- Mouse1.Size = UDim2.new(0, 76, 0, 32)
- TextLabel.Parent = Mouse1
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Size = UDim2.new(0, 76, 0, 32)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Mouse1"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 50.000
- TextLabel.TextWrapped = true
- Mouse2.Name = "Mouse2"
- Mouse2.Parent = Frame
- Mouse2.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- Mouse2.BorderSizePixel = 0
- Mouse2.Position = UDim2.new(0.515999973, 0, 0.779999971, 0)
- Mouse2.Size = UDim2.new(0, 76, 0, 32)
- TextLabel_2.Parent = Mouse2
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.Size = UDim2.new(0, 76, 0, 32)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "Mouse2"
- TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 50.000
- TextLabel_2.TextWrapped = true
- S.Name = "S"
- S.Parent = Frame
- S.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- S.BorderSizePixel = 0
- S.Position = UDim2.new(0.354669183, 0, 0.328729033, 0)
- S.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_3.Parent = S
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.BackgroundTransparency = 1.000
- TextLabel_3.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.Text = "S"
- TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 100.000
- TextLabel_3.TextWrapped = true
- Space.Name = "Space"
- Space.Parent = Frame
- Space.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- Space.BorderSizePixel = 0
- Space.Position = UDim2.new(0.0405463725, 0, 0.645760596, 0)
- Space.Size = UDim2.new(0, 157, 0, 20)
- Frame_2.Parent = Space
- Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0.292074978, 0, 0.349999994, 0)
- Frame_2.Size = UDim2.new(0, 63, 0, 6)
- W.Name = "W"
- W.Parent = Frame
- W.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- W.BorderSizePixel = 0
- W.Position = UDim2.new(0.354669183, 0, 0.0129329525, 0)
- W.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_4.Parent = W
- TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_4.BackgroundTransparency = 1.000
- TextLabel_4.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_4.Font = Enum.Font.SourceSans
- TextLabel_4.Text = "W"
- TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 100.000
- TextLabel_4.TextWrapped = true
- D.Name = "D"
- D.Parent = Frame
- D.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- D.BorderSizePixel = 0
- D.Position = UDim2.new(0.670824468, 0, 0.328729033, 0)
- D.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_5.Parent = D
- TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_5.BackgroundTransparency = 1.000
- TextLabel_5.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_5.Font = Enum.Font.SourceSans
- TextLabel_5.Text = "D"
- TextLabel_5.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 100.000
- TextLabel_5.TextWrapped = true
- A.Name = "A"
- A.Parent = Frame
- A.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- A.BorderSizePixel = 0
- A.Position = UDim2.new(0.0391325094, 0, 0.328729033, 0)
- A.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_6.Parent = A
- TextLabel_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_6.BackgroundTransparency = 1.000
- TextLabel_6.Size = UDim2.new(0, 50, 0, 50)
- TextLabel_6.Font = Enum.Font.SourceSans
- TextLabel_6.Text = "A"
- TextLabel_6.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_6.TextScaled = true
- TextLabel_6.TextSize = 100.000
- TextLabel_6.TextWrapped = true
- Resizer.Name = "Resizer "
- Resizer.Parent = Frame
- Resizer.BackgroundColor3 = Color3.fromRGB(97, 97, 97)
- Resizer.BorderSizePixel = 0
- Resizer.Position = UDim2.new(1.00572908, 0, 1.00571144, 0)
- Resizer.Size = UDim2.new(0, 4, 0, 4)
- local UserInputService = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local w
- local a
- local s
- local d
- local Space2
- local Button1
- local Button2
- spawn(function()
- while wait() do
- if w then
- TextLabel_4.TextColor3 = Color3.fromRGB(97,97,97)
- W.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel_4.TextColor3 = Color3.fromRGB(255,255,255)
- W.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if a then
- TextLabel_6.TextColor3 = Color3.fromRGB(97,97,97)
- A.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel_6.TextColor3 = Color3.fromRGB(255,255,255)
- A.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if s then
- TextLabel_3.TextColor3 = Color3.fromRGB(97,97,97)
- S.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel_3.TextColor3 = Color3.fromRGB(255,255,255)
- S.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if d then
- TextLabel_5.TextColor3 = Color3.fromRGB(97,97,97)
- D.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel_5.TextColor3 = Color3.fromRGB(255,255,255)
- D.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if Space2 then
- Frame.BackgroundColor3 = Color3.fromRGB(97,97,97)
- Space.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- Frame.BackgroundColor3 = Color3.fromRGB(255,255,255)
- Space.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if Button1 then
- TextLabel.TextColor3 = Color3.fromRGB(97,97,97)
- Mouse1.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
- Mouse1.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- if Button2 then
- TextLabel_2.TextColor3 = Color3.fromRGB(97,97,97)
- Mouse2.BackgroundColor3 = Color3.fromRGB(255,255,255)
- else
- TextLabel_2.TextColor3 = Color3.fromRGB(255,255,255)
- Mouse2.BackgroundColor3 = Color3.fromRGB(97,97,97)
- end
- end
- end)
- UserInputService.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.W then
- w = true
- elseif input.KeyCode == Enum.KeyCode.A then
- a = true
- elseif input.KeyCode == Enum.KeyCode.S then
- s = true
- elseif input.KeyCode == Enum.KeyCode.D then
- d = true
- elseif input.KeyCode == Enum.KeyCode.Space then
- Space2 = true
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.W then
- w = false
- elseif input.KeyCode == Enum.KeyCode.A then
- a = false
- elseif input.KeyCode == Enum.KeyCode.S then
- s = false
- elseif input.KeyCode == Enum.KeyCode.D then
- d = false
- elseif input.KeyCode == Enum.KeyCode.Space then
- Space2 = false
- end
- end)
- Mouse.Button1Down:connect(function()
- Button1 = true
- end)
- Mouse.Button1Up:connect(function()
- Button1 = false
- end)
- Mouse.Button2Down:connect(function()
- Button2 = true
- end)
- Mouse.Button2Up:connect(function()
- Button2 = false
- end)
- for i,v in pairs(Frame:GetDescendants()) do
- if v:IsA("Frame") then
- v.BorderSizePixel = 0
- v.BackgroundTransparency = 0.6
- elseif v:IsA("TextLabel") then
- v.TextTransparency = 0.6
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement