Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Enabled = false
- Mouse.KeyDown:connect(function(key)
- key = key:upper()
- if key == "X" then
- if Enabled then
- Enabled = false
- print("Disabled")
- else
- Enabled = true
- print("Enabled")
- end
- end
- end)
- --// Created by EncryptedRBX/Floof //--
- local Hitbox = Instance.new("Part")
- Hitbox.Transparency = 0.6
- Hitbox.Color = Color3.new(1, 1, 1)
- Hitbox.Size = Vector3.new(3, 3, 3)
- Hitbox.Material = "SmoothPlastic"
- Hitbox.CanCollide = false
- Hitbox.Anchored = true
- local S = Instance.new("SelectionBox", Hitbox)
- S.Adornee = Hitbox
- S.Transparency = 0.3
- S.SurfaceTransparency = 1
- S.Color3 = Color3.new(0, 0, 0)
- S.LineThickness = 0.05
- game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
- if Player and Player.Character then
- if Player.Character:findFirstChild("HumanoidRootPart") then
- local HRP = Player.Character:findFirstChild("HumanoidRootPart")
- Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
- end
- if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
- Hitbox.Transparency = 1
- else
- Hitbox.Transparency = 0.6
- end
- end
- end)
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Enabled = false
- Mouse.KeyDown:connect(function(key)
- key = key:upper()
- if key == "X" then
- if Enabled then
- Enabled = false
- print("Disabled")
- else
- Enabled = true
- print("Enabled")
- end
- end
- end)
- --// Created by EncryptedRBX/Floof //--
- local Hitbox = Instance.new("Part")
- Hitbox.Transparency = 0.6
- Hitbox.Color = Color3.new(1, 1, 1)
- Hitbox.Size = Vector3.new(3, 3, 3)
- Hitbox.Material = "SmoothPlastic"
- Hitbox.CanCollide = false
- Hitbox.Anchored = true
- local S = Instance.new("SelectionBox", Hitbox)
- S.Adornee = Hitbox
- S.Transparency = 0.3
- S.SurfaceTransparency = 1
- S.Color3 = Color3.new(0, 0, 0)
- S.LineThickness = 0.05
- game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
- if Player and Player.Character then
- if Player.Character:findFirstChild("HumanoidRootPart") then
- local HRP = Player.Character:findFirstChild("HumanoidRootPart")
- Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
- end
- if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
- Hitbox.Transparency = 1
- else
- Hitbox.Transparency = 0.6
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement