· 6 years ago · Nov 13, 2019, 09:20 PM
1ASTEBINnew pastePRO API tools faq deals
2search...
3
4
5Guest User
6-
7
8Public Pastes
9Untitled
106 sec ago
11Steam - Prime NVid...
126 sec ago
13CactusEditor
14Java | 14 sec ago
15Untitled
1615 sec ago
17lab_19
1818 sec ago
19Untitled
20C# | 20 sec ago
21form by @brightjeon
2221 sec ago
23Untitled
2422 sec ago
25
26SHARE
27TWEET
28
29Untitled
30 A GUEST AUG 10TH, 2018 6,017 NEVER
31
32Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
33rawdownloadcloneembedreportprinttext 2.54 KB
34-- Press 'x' to enable and a box will show up.
35-- Throw your knife at the box until it is no longer colourful.
36-- This will only work if you have a target (not free for all/infected)
37
38local Players = game:GetService("Players")
39local Player = Players.LocalPlayer
40local Mouse = Player:GetMouse()
41
42local Enabled = false
43Mouse.KeyDown:connect(function(key)
44 key = key:upper()
45 if key == "X" then
46 if Enabled then
47 Enabled = false
48 print("Disabled")
49 else
50 Enabled = true
51 print("Enabled")
52 end
53 end
54end)
55
56--// Created by EncryptedRBX/Floof //--
57
58local Hitbox = Instance.new("Part")
59Hitbox.Transparency = 0.6
60Hitbox.Color = Color3.new(1, 1, 1)
61Hitbox.Size = Vector3.new(3, 3, 3)
62Hitbox.Material = "SmoothPlastic"
63Hitbox.CanCollide = false
64Hitbox.Anchored = true
65
66local S = Instance.new("SelectionBox", Hitbox)
67S.Adornee = Hitbox
68S.Transparency = 0.3
69S.SurfaceTransparency = 1
70S.Color3 = Color3.new(0, 0, 0)
71S.LineThickness = 0.05
72
73game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
74 if Player and Player.Character then
75 if Player.Character:findFirstChild("HumanoidRootPart") then
76 local HRP = Player.Character:findFirstChild("HumanoidRootPart")
77 Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
78 end
79 if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
80 Hitbox.Transparency = 1
81 else
82 Hitbox.Transparency = 0.6
83 end
84 end
85
86end)