ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
local active = true\r\nlocal trueActive = true\r\nlocal reachType = \"Sphere\"\r\nlocal dmgEnabled = true\r\nlocal visualizerEnabled = false\r\n\r\nlocal visualizer = Instance.new(\"Part\")\r\nvisualizer.BrickColor = BrickColor.Blue()\r\nvisualizer.Transparency = 0.6\r\nvisualizer.Anchored = true\r\nvisualizer.CanCollide = false\r\nvisualizer.Size = Vector3.new(0.5,0.5,0.5)\r\nvisualizer.BottomSurface = Enum.SurfaceType.Smooth\r\nvisualizer.TopSurface = Enum.SurfaceType.Smooth\r\n\r\nlocal ScreenGui = Instance.new(\"ScreenGui\")\r\nlocal Frame = Instance.new(\"Frame\")\r\nlocal TextLabel = Instance.new(\"TextLabel\")\r\nlocal TextBox = Instance.new(\"TextBox\")\r\nlocal TextLabel_2 = Instance.new(\"TextLabel\")\r\nlocal TextLabel_3 = Instance.new(\"TextLabel\")\r\nlocal TextLabel_4 = Instance.new(\"TextLabel\")\r\nlocal TextButton = Instance.new(\"TextButton\")\r\nlocal Frame_2 = Instance.new(\"Frame\")\r\nlocal Frame_3 = Instance.new(\"Frame\")\r\nlocal Frame_4 = Instance.new(\"Frame\")\r\nlocal Frame_5 = Instance.new(\"Frame\")\r\nlocal TextButton_2 = Instance.new(\"TextButton\")\r\n\r\n--Properties:\r\n\r\nScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling\r\nScreenGui.DisplayOrder = 999999999\r\nScreenGui.ResetOnSpawn = false\r\n\r\nFrame.Parent = ScreenGui\r\nFrame.AnchorPoint = Vector2.new(0, 0.5)\r\nFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)\r\nFrame.BackgroundTransparency = 0.300\r\nFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)\r\nFrame.BorderSizePixel = 4\r\nFrame.Position = UDim2.new(0, 0, 0.600000024, 0)\r\nFrame.Size = UDim2.new(0.150000006, 0, 0.300000012, 0)\r\n\r\nTextLabel.Parent = Frame\r\nTextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel.BackgroundTransparency = 1.000\r\nTextLabel.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)\r\nTextLabel.Font = Enum.Font.SourceSans\r\nTextLabel.Text = \"Reach:\"\r\nTextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel.TextScaled = true\r\nTextLabel.TextSize = 14.000\r\nTextLabel.TextWrapped = true\r\n\r\nTextBox.Parent = Frame\r\nTextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextBox.BackgroundTransparency = 1.000\r\nTextBox.Position = UDim2.new(0.600000024, 0, 0, 0)\r\nTextBox.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)\r\nTextBox.Font = Enum.Font.SourceSans\r\nTextBox.Text = \"3.5\"\r\nTextBox.TextColor3 = Color3.fromRGB(255, 76, 76)\r\nTextBox.TextScaled = true\r\nTextBox.TextSize = 14.000\r\nTextBox.TextWrapped = true\r\n\r\nTextLabel_2.Parent = Frame\r\nTextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_2.BackgroundTransparency = 1.000\r\nTextLabel_2.Position = UDim2.new(0, 0, 0.200000003, 0)\r\nTextLabel_2.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)\r\nTextLabel_2.Font = Enum.Font.SourceSans\r\nTextLabel_2.Text = \"Shape:\"\r\nTextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_2.TextScaled = true\r\nTextLabel_2.TextSize = 14.000\r\nTextLabel_2.TextWrapped = true\r\n\r\nTextLabel_3.Parent = Frame\r\nTextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_3.BackgroundTransparency = 1.000\r\nTextLabel_3.Position = UDim2.new(0, 0, 0.400000006, 0)\r\nTextLabel_3.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)\r\nTextLabel_3.Font = Enum.Font.SourceSans\r\nTextLabel_3.Text = \"Damage:\"\r\nTextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_3.TextScaled = true\r\nTextLabel_3.TextSize = 14.000\r\nTextLabel_3.TextWrapped = true\r\n\r\nTextLabel_4.Parent = Frame\r\nTextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_4.BackgroundTransparency = 1.000\r\nTextLabel_4.Position = UDim2.new(0, 0, 0.600000024, 0)\r\nTextLabel_4.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)\r\nTextLabel_4.Font = Enum.Font.SourceSans\r\nTextLabel_4.Text = \"Visualizer:\"\r\nTextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)\r\nTextLabel_4.TextScaled = true\r\nTextLabel_4.TextSize = 14.000\r\nTextLabel_4.TextWrapped = true\r\n\r\nTextButton.Parent = Frame\r\nTextButton.AnchorPoint = Vector2.new(0, 1)\r\nTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextButton.BackgroundTransparency = 1.000\r\nTextButton.Position = UDim2.new(0, 0, 1, 0)\r\nTextButton.Size = UDim2.new(1, 0, 0.150000006, 0)\r\nTextButton.Font = Enum.Font.SourceSansBold\r\nTextButton.Text = \"Kill Script\"\r\nTextButton.TextColor3 = Color3.fromRGB(222, 0, 0)\r\nTextButton.TextScaled = true\r\nTextButton.TextSize = 14.000\r\nTextButton.TextWrapped = true\r\n\r\nFrame_2.Parent = Frame\r\nFrame_2.Active = true\r\nFrame_2.AnchorPoint = Vector2.new(0, 0.5)\r\nFrame_2.BackgroundColor3 = Color3.fromRGB(31, 31, 31)\r\nFrame_2.BorderSizePixel = 0\r\nFrame_2.Position = UDim2.new(0.725000024, 0, 0.699999988, 0)\r\nFrame_2.Size = UDim2.new(0, 25, 0, 25)\r\nFrame_2.ZIndex = 5\r\n\r\nFrame_3.Parent = Frame_2\r\nFrame_3.AnchorPoint = Vector2.new(0.5, 0.5)\r\nFrame_3.BackgroundColor3 = Color3.fromRGB(255, 76, 76)\r\nFrame_3.BorderSizePixel = 0\r\nFrame_3.LayoutOrder = 1\r\nFrame_3.Position = UDim2.new(0.5, 0, 0.5, 0)\r\n\r\nFrame_4.Parent = Frame\r\nFrame_4.Active = true\r\nFrame_4.AnchorPoint = Vector2.new(0, 0.5)\r\nFrame_4.BackgroundColor3 = Color3.fromRGB(31, 31, 31)\r\nFrame_4.BorderSizePixel = 0\r\nFrame_4.Position = UDim2.new(0.725000024, 0, 0.5, 0)\r\nFrame_4.Size = UDim2.new(0, 25, 0, 25)\r\nFrame_4.ZIndex = 5\r\n\r\nFrame_5.Parent = Frame_4\r\nFrame_5.AnchorPoint = Vector2.new(0.5, 0.5)\r\nFrame_5.BackgroundColor3 = Color3.fromRGB(255, 76, 76)\r\nFrame_5.BorderSizePixel = 0\r\nFrame_5.LayoutOrder = 1\r\nFrame_5.Position = UDim2.new(0.5, 0, 0.5, 0)\r\nFrame_5.Size = UDim2.new(1, 0, 1, 0)\r\n\r\nTextButton_2.Parent = Frame\r\nTextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)\r\nTextButton_2.BackgroundTransparency = 1.000\r\nTextButton_2.Position = UDim2.new(0.600000024, 0, 0.200000003, 0)\r\nTextButton_2.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)\r\nTextButton_2.Font = Enum.Font.SourceSans\r\nTextButton_2.Text = \"Sphere\"\r\nTextButton_2.TextColor3 = Color3.fromRGB(255, 76, 76)\r\nTextButton_2.TextScaled = true\r\nTextButton_2.TextSize = 14.000\r\nTextButton_2.TextWrapped = true\r\n\r\nrepeat wait() until game.Players.LocalPlayer\r\nScreenGui.Parent = game:GetService(\"CoreGui\")\r\n\r\n\r\n\r\nFrame_4.InputBegan:connect(function(inp)\r\n if inp.UserInputType == Enum.UserInputType.MouseButton1 then\r\n dmgEnabled = not dmgEnabled\r\n local goal = {Size = UDim2.new(0,0,0,0)}\r\n if dmgEnabled then\r\n goal = {Size = UDim2.new(1,0,1,0)}\r\n end\r\n game:GetService(\"TweenService\"):Create(Frame_5,TweenInfo.new(0.12,Enum.EasingStyle.Quad),goal):Play()\r\n end\r\nend)\r\nFrame_2.InputBegan:connect(function(inp)\r\n if inp.UserInputType == Enum.UserInputType.MouseButton1 then\r\n visualizerEnabled = not visualizerEnabled\r\n local goal = {Size = UDim2.new(0,0,0,0)}\r\n if visualizerEnabled then\r\n goal = {Size = UDim2.new(1,0,1,0)}\r\n end\r\n game:GetService(\"TweenService\"):Create(Frame_3,TweenInfo.new(0.12,Enum.EasingStyle.Linear),goal):Play()\r\n end\r\nend)\r\nTextButton_2.MouseButton1Click:connect(function()\r\n if reachType == \"Sphere\" then\r\n reachType = \"Line\"\r\n else\r\n reachType = \"Sphere\"\r\n end\r\n TextButton_2.Text = reachType\r\nend)\r\nTextButton.MouseButton1Click:connect(function()\r\n trueActive = false\r\n ScreenGui:Destroy()\r\nend)\r\ngame:GetService(\"UserInputService\").InputBegan:connect(function(inp,gpe)\r\n if gpe then return end\r\n if inp.KeyCode == Enum.KeyCode.H then\r\n ScreenGui.Enabled = not ScreenGui.Enabled\r\n end\r\nend)\r\n\r\nlocal plr = game.Players.LocalPlayer\r\n\r\nlocal function onHit(hit,handle)\r\n local victim = hit.Parent:FindFirstChildOfClass(\"Humanoid\")\r\n if victim and victim.Parent.Name ~= game.Players.LocalPlayer.Name then\r\n if dmgEnabled then\r\n for _,v in pairs(hit.Parent:GetChildren()) do\r\n if v:IsA(\"Part\") then\r\n firetouchinterest(v,handle,0)\r\n firetouchinterest(v,handle,1)\r\n end\r\n end\r\n else\r\n firetouchinterest(hit,handle,0)\r\n firetouchinterest(hit,handle,1)\r\n end\r\n end\r\nend\r\n\r\nlocal function getWhiteList()\r\n local wl = {}\r\n for _,v in pairs(game.Players:GetPlayers()) do\r\n if v ~= plr then\r\n local char = v.Character\r\n if char then\r\n for _,q in pairs(char:GetChildren()) do\r\n if q:IsA(\"Part\") then\r\n table.insert(wl,q)\r\n end\r\n end\r\n end\r\n end\r\n end\r\n return wl\r\nend\r\n\r\ngame:GetService(\"RunService\").RenderStepped:connect(function()\r\n if not active or not trueActive then return end\r\n local s = plr.Character and plr.Character:FindFirstChildOfClass(\"Tool\")\r\n if not s then visualizer.Parent = nil end\r\n if s then\r\n local handle = s:FindFirstChild(\"Handle\") or s:FindFirstChildOfClass(\"Part\")\r\n if handle then\r\n if visualizerEnabled then\r\n visualizer.Parent = workspace\r\n else\r\n visualizer.Parent = nil\r\n end\r\n local reach = tonumber(TextBox.Text)\r\n if reach then\r\n if reachType == \"Sphere\" then\r\n visualizer.Shape = Enum.PartType.Ball\r\n visualizer.Size = Vector3.new(reach,reach,reach)\r\n visualizer.CFrame = handle.CFrame\r\n for _,v in pairs(game.Players:GetPlayers()) do\r\n local hrp = v.Character and v.Character:FindFirstChild(\"HumanoidRootPart\")\r\n if hrp and handle then\r\n local mag = (hrp.Position-handle.Position).magnitude\r\n if mag <= reach then\r\n onHit(hrp,handle)\r\n end\r\n end\r\n end\r\n elseif reachType == \"Line\" then\r\n local origin = (handle.CFrame*CFrame.new(0,0,-2)).p\r\n local ray = Ray.new(origin,handle.CFrame.lookVector*-reach)\r\n local p,pos = workspace:FindPartOnRayWithWhitelist(ray,getWhiteList())\r\n visualizer.Shape = Enum.PartType.Block\r\n visualizer.Size = Vector3.new(1,0.8,reach)\r\n visualizer.CFrame = handle.CFrame*CFrame.new(0,0,(reach/2)+2)\r\n if p then\r\n onHit(p,handle)\r\n else\r\n for _,v in pairs(handle:GetTouchingParts()) do\r\n onHit(v,handle)\r\n end\r\n end\r\n end\r\n end\r\n end\r\n end\r\nend)
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel