· 6 years ago · Mar 26, 2020, 09:36 AM
1PASTEBIN
2GO API TOOLS FAQ DEALS
3
4paste
5SIGN IN SIGN UP
6Public Pastes
7Miglena
82 sec ago
9Untitled
1013 sec ago
11fraisetex
12Latex | 17 sec ago
13Untitled
1420 sec ago
15Untitled
16C | 21 sec ago
17Untitled
18Java | 23 sec ago
19Untitled
2026 sec ago
21Untitled
2237 sec ago
23
24
25
26SHARE
27TWEET
28
29Untitled
30 a guest Jan 30th, 2019 21,197 Never
31
32Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
33rawdownloadcloneembedreportprint
34text 2.53 KB
35-- Press 'x' to enable and a box will show up.
36-- Throw your knife at the box until it is no longer colourful.
37-- This will only work if you have a target (not free for all/infected)
38
39local Players = game:GetService("Players")
40local Player = Players.LocalPlayer
41local Mouse = Player:GetMouse()
42
43local Enabled = false
44Mouse.KeyDown:connect(function(key)
45 key = key:upper()
46 if key == "X" then
47 if Enabled then
48 Enabled = false
49 print("Disabled")
50 else
51 Enabled = true
52 print("Enabled")
53 end
54 end
55end)
56
57--// Created by EncryptedRBX/Floof //--
58
59local Hitbox = Instance.new("Part")
60Hitbox.Transparency = 0.6
61Hitbox.Color = Color3.new(1, 1, 1)
62Hitbox.Size = Vector3.new(3, 3, 3)
63Hitbox.Material = "SmoothPlastic"
64Hitbox.CanCollide = false
65Hitbox.Anchored = true
66
67local S = Instance.new("SelectionBox", Hitbox)
68S.Adornee = Hitbox
69S.Transparency = 0.3
70S.SurfaceTransparency = 1
71S.Color3 = Color3.new(0, 0, 0)
72S.LineThickness = 0.05
73
74game:GetService("RunService"):BindToRenderStep(tostring(math.random(1, 10000)), 1, function()
75 if Player and Player.Character then
76 if Player.Character:findFirstChild("HumanoidRootPart") then
77 local HRP = Player.Character:findFirstChild("HumanoidRootPart")
78 Hitbox.CFrame = HRP.CFrame * CFrame.new(10, 0, 0)
79 end
80 if Player.PlayerGui.ScreenGui.UI.Target.Visible == false then
81 Hitbox.Transparency = 1
82 else
83 Hitbox.Transparency = 0.6
84 end
85 end
86end)
87
88--// Created by EncryptedRBX/Floof //--
89
90function c3lerp(a,b,t)
91 return Color3.new(a.r * (1-t) + (b.r*t),a.g * (1-t) + (b.g*t),a.b * (1-t) + (b.b*t))
92end
93
94local Rainbow = {
95 Color3.new(1,0,0);
96 Color3.new(0,1,0);
97 Color3.new(0,0,1);
98 Color3.new(0,1,1);
99 Color3.new(1,0,1);
100 Color3.new(1,1,0);
101}
102
103spawn(function()
104 while true do
105 local k=Hitbox.Color
106 local b=Rainbow[math.random(1,#Rainbow)]
107 local slow=100
108 for i=1, slow do
109 Hitbox.Color=c3lerp(k,b,i/slow)
110 wait()
111 end
112 end
113end)
114
115--// Created by EncryptedRBX/Floof //--
116
117GetTarget = function()
118 local Target = nil
119 local TargetName = nil
120 pcall(function()
121 TargetName = Player.PlayerGui.ScreenGui.UI.Target.TargetText.Text
122 end)
123 if TargetName then
124 if Players:findFirstChild(TargetName) then
125 Target = Players:findFirstChild(TargetName)
126 end
127 end
128 return Target
129end
130
131while wait() do
132 if Enabled then
133 local Target = GetTarget()
134 if Target and Target.Character then
135 Hitbox.Parent = Target.Character
136 else
137 Hitbox.Parent = workspace
138 end
139 else
140 Hitbox.Parent = nil
141 end
142end
143--// Created by Spho3nex //--
144
145RAW Paste Data
146
147
148
149
150
151
152create new paste / dealsnew! / syntax languages / archive / faq / tools / night mode / api / scraping api
153privacy statement / cookies policy / terms of service / security disclosure / dmca / contact
154
155By using Pastebin.com you agree to our cookies policy to enhance your experience.
156Site design & logo © 2020 Pastebin; user contributions (pastes) licensed under cc by-sa 3.0 -- FavPNG -- Dedicated Server Hosting by Steadfast