SHOW:
|
|
- or go back to the newest paste.
1 | --// Shortcut Variables \\-- | |
2 | wait(1) | |
3 | can = true | |
4 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
5 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
6 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
7 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
8 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
9 | local R3 = {N=Region3.new} | |
10 | local De = S.Debris | |
11 | local WS = workspace | |
12 | local Lght = S.Lighting | |
13 | local RepS = S.ReplicatedStorage | |
14 | local IN = Instance.new | |
15 | local Plrs = S.Players | |
16 | ||
17 | local Emit = IN("ParticleEmitter").Emit; | |
18 | ||
19 | --// Initializing \\-- | |
20 | local Plr = game.Players.silver22352 | |
21 | - | local Plr = game.Players.DarkSideYT123 |
21 | + | |
22 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
23 | local RArm = Char["Right Arm"] | |
24 | local LArm = Char["Left Arm"] | |
25 | local RLeg = Char["Right Leg"] | |
26 | local LLeg = Char["Left Leg"] | |
27 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
28 | local Torso = Char.Torso | |
29 | local Head = Char:WaitForChild("Head") | |
30 | local NeutralAnims = true | |
31 | local Attack = false | |
32 | local Debounces = {Debounces={}} | |
33 | local Hit = {} | |
34 | local Sine = 0 | |
35 | local Change = 1 | |
36 | ||
37 | Cooldown = false | |
38 | ||
39 | local Effects = IN("Folder",Char) | |
40 | Effects.Name = "Effects" | |
41 | Times = 0 | |
42 | repeat | |
43 | wait(0.1) | |
44 | Times = Times + 1 | |
45 | if Char:FindFirstChildOfClass("Accessory") then | |
46 | Char:FindFirstChildOfClass("Accessory"):Destroy() | |
47 | end | |
48 | until Times == 5 | |
49 | ||
50 | Char.Head.Transparency = 1 | |
51 | Char.Head.face.Transparency = 1 | |
52 | Char["Left Leg"].BrickColor = BrickColor.new("Really black") | |
53 | Char["Right Arm"].Material = "Neon" | |
54 | Char["Left Arm"].Material = "Neon" | |
55 | Char["Right Leg"].Material = "Neon" | |
56 | Char["Left Leg"].Material = "Neon" | |
57 | Char["Torso"].Material = "Neon" | |
58 | ||
59 | Char.HumanoidRootPart.Anchored = true | |
60 | Char.HumanoidRootPart.Orientation = Vector3.new(0,0,0) | |
61 | wait(1) | |
62 | Char.HumanoidRootPart.Anchored = false | |
63 | local FakeHead = Instance.new("Part", Char) | |
64 | FakeHead.Name = "FakeHead" | |
65 | FakeHead.Material = "Neon" | |
66 | FakeHead.BrickColor = BrickColor.new("Institutional white") | |
67 | FakeHead.Size = Vector3.new(1.104, 1, 1) | |
68 | FakeHead.Position = Char.Head.Position | |
69 | local FakeHeadWeld = Instance.new("Weld", Char) | |
70 | FakeHeadWeld.Name = "FakeHeadWeld" | |
71 | FakeHeadWeld.Part0 = Char.Head | |
72 | FakeHeadWeld.Part1 = FakeHead | |
73 | local TopHat1 = Instance.new("Part", Char) | |
74 | TopHat1.Name = "TopHead1" | |
75 | TopHat1.Size = Vector3.new(1.812, 0.232, 1.878) | |
76 | TopHat1.Anchored = true | |
77 | TopHat1.Position = FakeHead.Position + Vector3.new(0, 0.5, 0) | |
78 | TopHat1.BrickColor = BrickColor.new("Really black") | |
79 | TopHat1.Material = "Neon" | |
80 | local TopHat1Weld = Instance.new("WeldConstraint", Char) | |
81 | TopHat1Weld.Name = "TopHat1Weld" | |
82 | TopHat1Weld.Part0 = FakeHead | |
83 | TopHat1Weld.Part1 = TopHat1 | |
84 | TopHat1.Anchored = false | |
85 | local TopHat2 = Instance.new("Part", Char) | |
86 | TopHat2.Name = "TopHead2" | |
87 | TopHat2.Size = Vector3.new(1.123, 0.296, 1.164) | |
88 | TopHat2.Anchored = true | |
89 | TopHat2.Position = FakeHead.Position + Vector3.new(0, 0.7, 0) | |
90 | TopHat2.BrickColor = BrickColor.new("Institutional white") | |
91 | TopHat2.Material = "Neon" | |
92 | local TopHat2Weld = Instance.new("WeldConstraint", Char) | |
93 | TopHat2Weld.Name = "TopHat2Weld" | |
94 | TopHat2Weld.Part0 = FakeHead | |
95 | TopHat2Weld.Part1 = TopHat2 | |
96 | TopHat2.Anchored = false | |
97 | local TopHat3 = Instance.new("Part", Char) | |
98 | TopHat3.Name = "TopHead3" | |
99 | TopHat3.Size = Vector3.new(1.09, 2.344, 1.13) | |
100 | TopHat3.Anchored = true | |
101 | TopHat3.Position = FakeHead.Position + Vector3.new(0, 1.7, 0) | |
102 | TopHat3.BrickColor = BrickColor.new("Really black") | |
103 | TopHat3.Material = "Neon" | |
104 | local TopHat3Weld = Instance.new("WeldConstraint", Char) | |
105 | TopHat3Weld.Name = "TopHat3Weld" | |
106 | TopHat3Weld.Part0 = FakeHead | |
107 | TopHat3Weld.Part1 = TopHat3 | |
108 | TopHat3.Anchored = false | |
109 | local PortalPart = Instance.new("Part", Char) | |
110 | PortalPart.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3) | |
111 | PortalPart.Orientation = Vector3.new(60, 0, 0) | |
112 | PortalPart.Anchored = true | |
113 | PortalPart.Transparency = 1 | |
114 | PortalPart.CanCollide = false | |
115 | PortalPart.Massless = true | |
116 | local PortalPartWeld = Instance.new("WeldConstraint", Char) | |
117 | PortalPartWeld.Name = "PortalPartWeld" | |
118 | PortalPartWeld.Part0 = Char.HumanoidRootPart | |
119 | PortalPartWeld.Part1 = PortalPart | |
120 | PortalPart.Anchored = false | |
121 | local PortalPart2 = Instance.new("Part", Char) | |
122 | PortalPart2.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3) | |
123 | PortalPart2.Orientation = Vector3.new(-37.76, 116.57, 50.77) | |
124 | PortalPart2.Anchored = true | |
125 | PortalPart2.Transparency = 1 | |
126 | PortalPart2.CanCollide = false | |
127 | PortalPart2.Massless = true | |
128 | local PortalPartWeld2 = Instance.new("WeldConstraint", Char) | |
129 | PortalPartWeld2.Name = "PortalPartWeld2" | |
130 | PortalPartWeld2.Part0 = Char.HumanoidRootPart | |
131 | PortalPartWeld2.Part1 = PortalPart2 | |
132 | PortalPart2.Anchored = false | |
133 | local Name = Instance.new("BillboardGui", TopHat3) | |
134 | Name.ExtentsOffset = Vector3.new(0, 2, 0) | |
135 | Name.Size = UDim2.new(0,200,0,100) | |
136 | local NameText = Instance.new("TextLabel", Name) | |
137 | NameText.Text = "Mr Void" | |
138 | NameText.BackgroundTransparency = 1 | |
139 | NameText.Font = Enum.Font.Cartoon | |
140 | NameText.TextSize = 50 | |
141 | NameText.TextColor3 = Color3.new(500, 500, 500) | |
142 | NameText.Size = UDim2.new(0,200,0,100) | |
143 | ||
144 | ||
145 | ||
146 | local Present = Instance.new("Tool", Plr.Backpack) | |
147 | Present.Name = "Present" | |
148 | Present.RequiresHandle = false | |
149 | Present.Activated:Connect(function() | |
150 | local Portal = Instance.new("Part", workspace) | |
151 | Portal.BrickColor = BrickColor.new("Really black") | |
152 | Portal.Material = "SmoothPlastic" | |
153 | Portal.Anchored = true | |
154 | Portal.CanCollide = false | |
155 | Portal.CFrame = PortalPart.CFrame | |
156 | Portal.Size = Vector3.new(0.1, 0.05, 0.1) | |
157 | wait(0.05) | |
158 | Portal.Orientation = PortalPart.Orientation | |
159 | Portal.Size = Vector3.new(0.3, 0.05, 0.3) | |
160 | wait(0.05) | |
161 | Portal.Orientation = PortalPart2.Orientation | |
162 | Portal.Size = Vector3.new(0.5, 0.05, 0.5) | |
163 | wait(0.05) | |
164 | Portal.Orientation = PortalPart.Orientation | |
165 | Portal.Size = Vector3.new(0.7, 0.05, 0.7) | |
166 | wait(0.05) | |
167 | Portal.Orientation = PortalPart2.Orientation | |
168 | Portal.Size = Vector3.new(0.9, 0.05, 0.9) | |
169 | wait(0.05) | |
170 | Portal.Orientation = PortalPart.Orientation | |
171 | Portal.Size = Vector3.new(1.4, 0.05, 1.4) | |
172 | wait(0.05) | |
173 | Portal.Orientation = PortalPart2.Orientation | |
174 | Portal.Size = Vector3.new(2, 0.05, 2) | |
175 | wait(0.05) | |
176 | Portal.Orientation = PortalPart.Orientation | |
177 | Portal.Size = Vector3.new(2.5, 0.05, 2.5) | |
178 | wait(0.05) | |
179 | Portal.Orientation = PortalPart2.Orientation | |
180 | Portal.Size = Vector3.new(3.4, 0.05, 3.4) | |
181 | wait(0.05) | |
182 | Portal.Orientation = PortalPart.Orientation | |
183 | Portal.Size = Vector3.new(4.3, 0.05, 4.3) | |
184 | local Present = Instance.new("Part", workspace) | |
185 | local Present2 = Instance.new("Part", workspace) | |
186 | Present2.Anchored = true | |
187 | Present2.CanCollide = false | |
188 | Present2.BrickColor = BrickColor.new("Institutional white") | |
189 | Present2.Material = "Neon" | |
190 | Present2.Size = Vector3.new(0.5, 2.1, 2.1) | |
191 | Present2.CFrame = Present.CFrame | |
192 | local Present2Weld = Instance.new("WeldConstraint", Present2) | |
193 | Present2Weld.Part0 = Present | |
194 | Present2Weld.Part1 = Present2 | |
195 | Present2.Anchored = false | |
196 | local Present3 = Instance.new("Part", workspace) | |
197 | Present3.Anchored = true | |
198 | Present3.CanCollide = false | |
199 | Present3.BrickColor = BrickColor.new("Institutional white") | |
200 | Present3.Material = "Neon" | |
201 | Present3.Size = Vector3.new(2.1, 2.1, 0.5) | |
202 | Present3.CFrame = Present.CFrame | |
203 | local Present3Weld = Instance.new("WeldConstraint", Present3) | |
204 | Present3Weld.Part0 = Present | |
205 | Present3Weld.Part1 = Present3 | |
206 | Present3.Anchored = false | |
207 | Present.Transparency = 0 | |
208 | Present.CanCollide = true | |
209 | Present.BrickColor = BrickColor.new("Really black") | |
210 | Present.Material = "Neon" | |
211 | Present.Size = Vector3.new(2, 2, 2) | |
212 | ||
213 | local Duh1 = Instance.new("Part", workspace) | |
214 | Duh1.Anchored = true | |
215 | Duh1.CanCollide = false | |
216 | Duh1.Orientation = Vector3.new(0, 0, -40) | |
217 | Duh1.BrickColor = BrickColor.new("Institutional white") | |
218 | Duh1.Material = "Neon" | |
219 | Duh1.Size = Vector3.new(0.336, 2.05, 0.386) | |
220 | Duh1.Position = Present.Position + Vector3.new(0, 1, 0) | |
221 | local Duh1Weld = Instance.new("WeldConstraint", Duh1) | |
222 | Duh1Weld.Part0 = Present | |
223 | Duh1Weld.Part1 = Duh1 | |
224 | Duh1.Anchored = false | |
225 | local Duh2 = Instance.new("Part", workspace) | |
226 | Duh2.Anchored = true | |
227 | Duh2.CanCollide = false | |
228 | Duh2.Orientation = Vector3.new(0, 0, 40) | |
229 | Duh2.BrickColor = BrickColor.new("Institutional white") | |
230 | Duh2.Material = "Neon" | |
231 | Duh2.Size = Vector3.new(0.336, 2.05, 0.386) | |
232 | Duh2.Position = Present.Position + Vector3.new(0, 1, 0) | |
233 | local Duh2Weld = Instance.new("WeldConstraint", Duh2) | |
234 | Duh2Weld.Part0 = Present | |
235 | Duh2Weld.Part1 = Duh2 | |
236 | Duh2.Anchored = false | |
237 | Present.CFrame = PortalPart.CFrame | |
238 | Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40 | |
239 | wait(1) | |
240 | Portal.Orientation = PortalPart2.Orientation | |
241 | Portal.Size = Vector3.new(5, 0.05, 5) | |
242 | wait(0.05) | |
243 | Portal.Orientation = PortalPart.Orientation | |
244 | Portal.Size = Vector3.new(4.5, 0.05, 4.5) | |
245 | wait(0.05) | |
246 | Portal.Orientation = PortalPart.Orientation | |
247 | Portal.Size = Vector3.new(4, 0.05, 4) | |
248 | wait(0.05) | |
249 | Portal.Size = Vector3.new(3, 0.05, 3) | |
250 | wait(0.05) | |
251 | Portal.Size = Vector3.new(2, 0.05, 2) | |
252 | wait(0.05) | |
253 | Portal:Destroy() | |
254 | Present.Touched:Connect(function(Something) | |
255 | if Something.Parent:FindFirstChild("Humanoid") then | |
256 | if can == true then | |
257 | Present:Destroy() | |
258 | Present2:Destroy() | |
259 | Present3:Destroy() | |
260 | Duh1:Destroy() | |
261 | Duh2:Destroy() | |
262 | ||
263 | local Character = Something.parent | |
264 | local Buff = math.random(1, 2) | |
265 | if Buff == 1 then | |
266 | local Aura = Instance.new("Part", workspace) | |
267 | Aura.BrickColor = BrickColor.new("Institutional white") | |
268 | Aura.Shape = "Ball" | |
269 | Aura.Material = Enum.Material.ForceField | |
270 | Aura.Size = Vector3.new(10, 10, 10) | |
271 | Aura.CanCollide = true | |
272 | Aura.Massless = true | |
273 | Aura.CFrame = Character.HumanoidRootPart.CFrame | |
274 | local AuraWeld = Instance.new("Weld", Aura) | |
275 | AuraWeld.Part0 = Character.Head | |
276 | AuraWeld.Part1 = Aura | |
277 | Character.Humanoid.Health = Character.Humanoid.MaxHealth | |
278 | can = false | |
279 | wait(0.2) | |
280 | can = true | |
281 | wait(29.8) | |
282 | Aura:Destroy() | |
283 | else | |
284 | if Buff == 2 then | |
285 | can = false | |
286 | Character.Humanoid.WalkSpeed = 42 | |
287 | Character.Humanoid.JumpPower = 75 | |
288 | local Aura2 = Instance.new("Part", workspace) | |
289 | Aura2.BrickColor = BrickColor.new("Institutional white") | |
290 | Aura2.Shape = "Ball" | |
291 | Aura2.Material = Enum.Material.ForceField | |
292 | Aura2.Size = Vector3.new(2, 2, 2) | |
293 | Aura2.CanCollide = true | |
294 | Aura2.CFrame = Character.HumanoidRootPart.CFrame | |
295 | local Aura2Weld = Instance.new("Weld", Aura2) | |
296 | Aura2Weld.Part0 = Character.Head | |
297 | Aura2Weld.Part1 = Aura2 | |
298 | Character.Humanoid.Health = Character.Humanoid.MaxHealth | |
299 | wait(0.2) | |
300 | can = true | |
301 | wait(14.8) | |
302 | Character.Humanoid.WalkSpeed = 16 | |
303 | Character.Humanoid.JumpPower = 50 | |
304 | end | |
305 | end | |
306 | end | |
307 | end | |
308 | end) | |
309 | end) | |
310 | ||
311 | local BadPresent = Instance.new("Tool", Plr.Backpack) | |
312 | BadPresent.Name = "BadPresent" | |
313 | BadPresent.RequiresHandle = false | |
314 | BadPresent.Activated:Connect(function() | |
315 | local Portal = Instance.new("Part", workspace) | |
316 | Portal.BrickColor = BrickColor.new("Really black") | |
317 | Portal.Material = "SmoothPlastic" | |
318 | Portal.Anchored = true | |
319 | Portal.CanCollide = false | |
320 | Portal.CFrame = PortalPart.CFrame | |
321 | Portal.Size = Vector3.new(0.1, 0.05, 0.1) * 2 | |
322 | wait(0.05) | |
323 | Portal.Orientation = PortalPart.Orientation | |
324 | Portal.Size = Vector3.new(0.3, 0.05, 0.3) * 2 | |
325 | wait(0.05) | |
326 | Portal.Orientation = PortalPart2.Orientation | |
327 | Portal.Size = Vector3.new(0.5, 0.05, 0.5) * 2 | |
328 | wait(0.05) | |
329 | Portal.Orientation = PortalPart.Orientation | |
330 | Portal.Size = Vector3.new(0.7, 0.05, 0.7) * 2 | |
331 | wait(0.05) | |
332 | Portal.Orientation = PortalPart2.Orientation | |
333 | Portal.Size = Vector3.new(0.9, 0.05, 0.9) * 2 | |
334 | wait(0.05) | |
335 | Portal.Orientation = PortalPart.Orientation | |
336 | Portal.Size = Vector3.new(1.4, 0.05, 1.4) * 2 | |
337 | wait(0.05) | |
338 | Portal.Orientation = PortalPart2.Orientation | |
339 | Portal.Size = Vector3.new(2, 0.05, 2) * 2 | |
340 | wait(0.05) | |
341 | Portal.Orientation = PortalPart.Orientation | |
342 | Portal.Size = Vector3.new(2.5, 0.05, 2.5) * 2 | |
343 | wait(0.05) | |
344 | Portal.Orientation = PortalPart2.Orientation | |
345 | Portal.Size = Vector3.new(3.4, 0.05, 3.4) * 2 | |
346 | wait(0.05) | |
347 | Portal.Orientation = PortalPart.Orientation | |
348 | Portal.Size = Vector3.new(4.3, 0.05, 4.3) * 2 | |
349 | local Present = Instance.new("Part", workspace) | |
350 | local Present2 = Instance.new("Part", workspace) | |
351 | Present2.Anchored = true | |
352 | Present2.CanCollide = false | |
353 | Present2.BrickColor = BrickColor.new("Institutional white") | |
354 | Present2.Material = "Neon" | |
355 | Present2.Size = Vector3.new(0.5, 2.1, 2.1) * 2 | |
356 | Present2.CFrame = Present.CFrame | |
357 | local Present2Weld = Instance.new("WeldConstraint", Present2) | |
358 | Present2Weld.Part0 = Present | |
359 | Present2Weld.Part1 = Present2 | |
360 | Present2.Anchored = false | |
361 | local Present3 = Instance.new("Part", workspace) | |
362 | Present3.Anchored = true | |
363 | Present3.CanCollide = false | |
364 | Present3.BrickColor = BrickColor.new("Institutional white") | |
365 | Present3.Material = "Neon" | |
366 | Present3.Size = Vector3.new(2.1, 2.1, 0.5) * 2 | |
367 | Present3.CFrame = Present.CFrame | |
368 | local Present3Weld = Instance.new("WeldConstraint", Present3) | |
369 | Present3Weld.Part0 = Present | |
370 | Present3Weld.Part1 = Present3 | |
371 | Present3.Anchored = false | |
372 | Present.Transparency = 0 | |
373 | Present.CanCollide = true | |
374 | Present.BrickColor = BrickColor.new("Really black") | |
375 | Present.Material = "Neon" | |
376 | Present.Size = Vector3.new(2, 2, 2) * 2 | |
377 | ||
378 | local Duh1 = Instance.new("Part", workspace) | |
379 | Duh1.Anchored = true | |
380 | Duh1.CanCollide = false | |
381 | Duh1.Orientation = Vector3.new(0, 0, -40) | |
382 | Duh1.BrickColor = BrickColor.new("Institutional white") | |
383 | Duh1.Material = "Neon" | |
384 | Duh1.Size = Vector3.new(0.336, 2.05, 0.386) * 2 | |
385 | Duh1.Position = Present.Position + Vector3.new(0, 1, 0) | |
386 | local Duh1Weld = Instance.new("WeldConstraint", Duh1) | |
387 | Duh1Weld.Part0 = Present | |
388 | Duh1Weld.Part1 = Duh1 | |
389 | Duh1.Anchored = false | |
390 | local Duh2 = Instance.new("Part", workspace) | |
391 | Duh2.Anchored = true | |
392 | Duh2.CanCollide = false | |
393 | Duh2.Orientation = Vector3.new(0, 0, 40) | |
394 | Duh2.BrickColor = BrickColor.new("Institutional white") | |
395 | Duh2.Material = "Neon" | |
396 | Duh2.Size = Vector3.new(0.336, 2.05, 0.386) * 2 | |
397 | Duh2.Position = Present.Position + Vector3.new(0, 1, 0) | |
398 | local Duh2Weld = Instance.new("WeldConstraint", Duh2) | |
399 | Duh2Weld.Part0 = Present | |
400 | Duh2Weld.Part1 = Duh2 | |
401 | Duh2.Anchored = false | |
402 | Present.CFrame = PortalPart.CFrame | |
403 | Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40 | |
404 | wait(1) | |
405 | Portal.Orientation = PortalPart2.Orientation | |
406 | Portal.Size = Vector3.new(5, 0.05, 5) * 2 | |
407 | wait(0.05) | |
408 | Portal.Orientation = PortalPart.Orientation | |
409 | Portal.Size = Vector3.new(4.5, 0.05, 4.5) * 2 | |
410 | wait(0.05) | |
411 | Portal.Orientation = PortalPart.Orientation | |
412 | Portal.Size = Vector3.new(4, 0.05, 4) * 2 | |
413 | wait(0.05) | |
414 | Portal.Size = Vector3.new(3, 0.05, 3) * 2 | |
415 | wait(0.05) | |
416 | Portal.Size = Vector3.new(2, 0.05, 2) * 2 | |
417 | wait(0.05) | |
418 | Portal:Destroy() | |
419 | Present.Touched:Connect(function(Something) | |
420 | if Something.Parent:FindFirstChild("Humanoid") then | |
421 | if can == true then | |
422 | Present:Destroy() | |
423 | Present2:Destroy() | |
424 | Present3:Destroy() | |
425 | Duh1:Destroy() | |
426 | Duh2:Destroy() | |
427 | local Character = Something.parent | |
428 | local Buff = math.random(1, 2) | |
429 | if Buff == 1 then | |
430 | can = false | |
431 | wait(0.2) | |
432 | can = true | |
433 | Character.Humanoid.PlatformStand = false | |
434 | Character["Right Arm"].BrickColor = BrickColor.new("Institutional white") | |
435 | wait(2) | |
436 | Character["Right Arm"]:Destroy() | |
437 | Character["Right Leg"].BrickColor = BrickColor.new("Institutional white") | |
438 | wait(2) | |
439 | Character["Right Leg"]:Destroy() | |
440 | Character["Left Arm"].BrickColor = BrickColor.new("Institutional white") | |
441 | wait(2) | |
442 | Character["Left Arm"]:Destroy() | |
443 | Character["Left Leg"].BrickColor = BrickColor.new("Institutional white") | |
444 | wait(2) | |
445 | Character["Left Leg"]:Destroy() | |
446 | Character["Torso"].BrickColor = BrickColor.new("Institutional white") | |
447 | wait(6) | |
448 | Character["Torso"]:Destroy() | |
449 | else | |
450 | if Buff == 2 then | |
451 | can = false | |
452 | wait(0.2) | |
453 | can = true | |
454 | Character.Humanoid.MaxHealth = 100 | |
455 | Character.Humanoid.Health = 99 | |
456 | wait(0.5) | |
457 | Character.Humanoid.Health = 98 | |
458 | wait(0.5) | |
459 | Character.Humanoid.Health = 97 | |
460 | wait(0.5) | |
461 | Character.Humanoid.Health = 96 | |
462 | wait(0.5) | |
463 | Character.Humanoid.Health = 95 | |
464 | wait(0.5) | |
465 | Character.Humanoid.Health = 94 | |
466 | wait(0.5) | |
467 | Character.Humanoid.Health = 93 | |
468 | wait(0.5) | |
469 | Character.Humanoid.Health = 92 | |
470 | wait(0.5) | |
471 | Character.Humanoid.Health = 91 | |
472 | wait(0.5) | |
473 | Character.Humanoid.Health = 90 | |
474 | wait(0.5) | |
475 | Character.Humanoid.Health = 89 | |
476 | wait(0.5) | |
477 | Character.Humanoid.Health = 88 | |
478 | wait(0.5) | |
479 | Character.Humanoid.Health = 87 | |
480 | wait(0.5) | |
481 | Character.Humanoid.Health = 86 | |
482 | wait(0.5) | |
483 | Character.Humanoid.Health = 85 | |
484 | wait(0.5) | |
485 | Character.Humanoid.Health = 84 | |
486 | wait(0.5) | |
487 | Character.Humanoid.Health = 83 | |
488 | wait(0.5) | |
489 | Character.Humanoid.Health = 82 | |
490 | wait(0.5) | |
491 | Character.Humanoid.Health = 81 | |
492 | wait(0.5) | |
493 | Character.Humanoid.Health = 80 | |
494 | wait(0.5) | |
495 | Character.Humanoid.Health = 79 | |
496 | wait(0.5) | |
497 | Character.Humanoid.Health = 78 | |
498 | wait(0.5) | |
499 | Character.Humanoid.Health = 77 | |
500 | wait(0.5) | |
501 | Character.Humanoid.Health = 76 | |
502 | wait(0.5) | |
503 | Character.Humanoid.Health = 75 | |
504 | wait(0.5) | |
505 | Character.Humanoid.Health = 60 | |
506 | wait(0.5) | |
507 | Character.Humanoid.Health = 50 | |
508 | wait(0.5) | |
509 | Character.Humanoid.Health = 40 | |
510 | wait(0.5) | |
511 | Character.Humanoid.Health = 30 | |
512 | wait(0.5) | |
513 | Character.Humanoid.Health = 20 | |
514 | wait(0.5) | |
515 | Character.Humanoid.Health = 10 | |
516 | wait(0.5) | |
517 | Character.Humanoid.Health = 9 | |
518 | wait(0.5) | |
519 | Character.Humanoid.Health = 8 | |
520 | wait(0.5) | |
521 | Character.Humanoid.Health = 7 | |
522 | wait(0.5) | |
523 | Character.Humanoid.Health = 6 | |
524 | wait(0.5) | |
525 | Character.Humanoid.Health = 5 | |
526 | wait(0.5) | |
527 | Character.Humanoid.Health = 4 | |
528 | wait(0.5) | |
529 | Character.Humanoid.Health = 3 | |
530 | wait(0.5) | |
531 | Character.Humanoid.Health = 2 | |
532 | wait(0.5) | |
533 | Character.Humanoid.Health = 1 | |
534 | wait(0.5) | |
535 | Character.Humanoid.Health = 0 | |
536 | wait(0.1) | |
537 | Character.Humanoid.WalkSpeed = 1 | |
538 | Character.Humanoid.JumpPower = 1 | |
539 | local Aura2 = Instance.new("Part", Character) | |
540 | Aura2.BrickColor = BrickColor.new("Institutional white") | |
541 | Aura2.Shape = "Ball" | |
542 | Character.Head.BrickColor = BrickColor.new("Institutional white") | |
543 | Aura2.Material = Enum.Material.ForceField | |
544 | Aura2.Size = Vector3.new(2, 2, 2) | |
545 | Aura2.CanCollide = true | |
546 | Aura2.Velocity = Vector3.new(0, 1000000, 0) | |
547 | Aura2.CFrame = Character.HumanoidRootPart.CFrame | |
548 | local Aura2Weld = Instance.new("Weld", Aura2) | |
549 | Aura2Weld.Part0 = Character.Head | |
550 | Aura2Weld.Part1 = Aura2 | |
551 | wait(14.8) | |
552 | Character.Humanoid.WalkSpeed = 16 | |
553 | Character.Humanoid.JumpPower = 50 | |
554 | end | |
555 | end | |
556 | end | |
557 | end | |
558 | end) | |
559 | end) | |
560 | ||
561 | ||
562 | ||
563 | ||
564 | ||
565 | ||
566 | ||
567 | ||
568 | ||
569 | ||
570 | ||
571 | ||
572 | ||
573 | ||
574 | ||
575 | ||
576 | ||
577 | ||
578 | ||
579 | ||
580 | ||
581 | ||
582 | ||
583 | ||
584 | ||
585 | ||
586 | ||
587 | ||
588 | ||
589 | ||
590 | ||
591 | ||
592 | ||
593 | ||
594 | ||
595 | ||
596 | ||
597 | ||
598 | ||
599 | ||
600 | ||
601 | ||
602 | ||
603 | ||
604 | ||
605 | ||
606 | ||
607 | ||
608 | ||
609 | ||
610 | ||
611 | ||
612 | ||
613 | ||
614 | ||
615 | ||
616 | ||
617 | ||
618 | ||
619 | ||
620 | ||
621 | ||
622 | local ScriptPresent = Instance.new("Tool", Plr.Backpack) | |
623 | ScriptPresent.Name = "ScriptPresent" | |
624 | ScriptPresent.RequiresHandle = false | |
625 | ScriptPresent.Activated:Connect(function() | |
626 | local Portal = Instance.new("Part", workspace) | |
627 | Portal.BrickColor = BrickColor.new("Really black") | |
628 | Portal.Material = "SmoothPlastic" | |
629 | Portal.Anchored = true | |
630 | Portal.CanCollide = false | |
631 | Portal.CFrame = PortalPart.CFrame | |
632 | Portal.Size = Vector3.new(0.1, 0.05, 0.1) * 5 | |
633 | wait(0.05) | |
634 | Portal.Orientation = PortalPart.Orientation | |
635 | Portal.Size = Vector3.new(0.3, 0.05, 0.3) * 5 | |
636 | wait(0.05) | |
637 | Portal.Orientation = PortalPart2.Orientation | |
638 | Portal.Size = Vector3.new(0.5, 0.05, 0.5) * 5 | |
639 | wait(0.05) | |
640 | Portal.Orientation = PortalPart.Orientation | |
641 | Portal.Size = Vector3.new(0.7, 0.05, 0.7) * 5 | |
642 | wait(0.05) | |
643 | Portal.Orientation = PortalPart2.Orientation | |
644 | Portal.Size = Vector3.new(0.9, 0.05, 0.9) * 5 | |
645 | wait(0.05) | |
646 | Portal.Orientation = PortalPart.Orientation | |
647 | Portal.Size = Vector3.new(1.4, 0.05, 1.4) * 5 | |
648 | wait(0.05) | |
649 | Portal.Orientation = PortalPart2.Orientation | |
650 | Portal.Size = Vector3.new(2, 0.05, 2) * 2 | |
651 | wait(0.05) | |
652 | Portal.Orientation = PortalPart.Orientation | |
653 | Portal.Size = Vector3.new(2.5, 0.05, 2.5) * 5 | |
654 | wait(0.05) | |
655 | Portal.Orientation = PortalPart2.Orientation | |
656 | Portal.Size = Vector3.new(3.4, 0.05, 3.4) * 5 | |
657 | wait(0.05) | |
658 | Portal.Orientation = PortalPart.Orientation | |
659 | Portal.Size = Vector3.new(4.3, 0.05, 4.3) * 5 | |
660 | local Present = Instance.new("Part", workspace) | |
661 | local Present2 = Instance.new("Part", workspace) | |
662 | Present2.Anchored = true | |
663 | Present2.CanCollide = false | |
664 | Present2.BrickColor = BrickColor.new("Really black") | |
665 | Present2.Material = "Neon" | |
666 | Present2.Size = Vector3.new(0.5, 2.1, 2.1) * 5 | |
667 | Present2.CFrame = Present.CFrame | |
668 | local Present2Weld = Instance.new("WeldConstraint", Present2) | |
669 | Present2Weld.Part0 = Present | |
670 | Present2Weld.Part1 = Present2 | |
671 | Present2.Anchored = false | |
672 | local Present3 = Instance.new("Part", workspace) | |
673 | Present3.Anchored = true | |
674 | Present3.CanCollide = false | |
675 | Present3.BrickColor = BrickColor.new("Really black") | |
676 | Present3.Material = "Neon" | |
677 | Present3.Size = Vector3.new(2.1, 2.1, 0.5) * 5 | |
678 | Present3.CFrame = Present.CFrame | |
679 | local Present3Weld = Instance.new("WeldConstraint", Present3) | |
680 | Present3Weld.Part0 = Present | |
681 | Present3Weld.Part1 = Present3 | |
682 | Present3.Anchored = false | |
683 | Present.Transparency = 0 | |
684 | Present.CanCollide = true | |
685 | Present.BrickColor = BrickColor.new("Institutional white") | |
686 | Present.Material = "Neon" | |
687 | Present.Size = Vector3.new(2, 2, 2) * 5 | |
688 | ||
689 | local Duh1 = Instance.new("Part", workspace) | |
690 | Duh1.Anchored = true | |
691 | Duh1.CanCollide = false | |
692 | Duh1.Orientation = Vector3.new(0, 0, -40) | |
693 | Duh1.BrickColor = BrickColor.new("Really black") | |
694 | Duh1.Material = "Neon" | |
695 | Duh1.Size = Vector3.new(0.336, 2.05, 0.386) * 5 | |
696 | Duh1.Position = Present.Position + Vector3.new(0, 1, 0) | |
697 | local Duh1Weld = Instance.new("WeldConstraint", Duh1) | |
698 | Duh1Weld.Part0 = Present | |
699 | Duh1Weld.Part1 = Duh1 | |
700 | Duh1.Anchored = false | |
701 | local Duh2 = Instance.new("Part", workspace) | |
702 | Duh2.Anchored = true | |
703 | Duh2.CanCollide = false | |
704 | Duh2.Orientation = Vector3.new(0, 0, 40) | |
705 | Duh2.BrickColor = BrickColor.new("Really black") | |
706 | Duh2.Material = "Neon" | |
707 | Duh2.Size = Vector3.new(0.336, 2.05, 0.386) * 2 | |
708 | Duh2.Position = Present.Position + Vector3.new(0, 1, 0) | |
709 | local Duh2Weld = Instance.new("WeldConstraint", Duh2) | |
710 | Duh2Weld.Part0 = Present | |
711 | Duh2Weld.Part1 = Duh2 | |
712 | Duh2.Anchored = false | |
713 | Present.CFrame = PortalPart.CFrame | |
714 | Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40 | |
715 | wait(1) | |
716 | Portal.Orientation = PortalPart2.Orientation | |
717 | Portal.Size = Vector3.new(5, 0.05, 5) * 5 | |
718 | wait(0.05) | |
719 | Portal.Orientation = PortalPart.Orientation | |
720 | Portal.Size = Vector3.new(4.5, 0.05, 4.5) * 5 | |
721 | wait(0.05) | |
722 | Portal.Orientation = PortalPart.Orientation | |
723 | Portal.Size = Vector3.new(4, 0.05, 4) * 5 | |
724 | wait(0.05) | |
725 | Portal.Size = Vector3.new(3, 0.05, 3) * 5 | |
726 | wait(0.05) | |
727 | Portal.Size = Vector3.new(2, 0.05, 2) * 5 | |
728 | wait(0.05) | |
729 | Portal:Destroy() | |
730 | Present.Touched:Connect(function(Something) | |
731 | if Something.Parent:FindFirstChild("Humanoid") then | |
732 | if can == true then | |
733 | Present:Destroy() | |
734 | Present2:Destroy() | |
735 | Present3:Destroy() | |
736 | Duh1:Destroy() | |
737 | Duh2:Destroy() | |
738 | local Character = Something.Parent | |
739 | can = false | |
740 | wait(5) | |
741 | can = true | |
742 | --// Initializing \\-- | |
743 | local Plr = game.Players:FindFirstChild(Character.Name) | |
744 | local Char = Character | |
745 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
746 | local RArm = Char["Right Arm"] | |
747 | local LArm = Char["Left Arm"] | |
748 | local RLeg = Char["Right Leg"] | |
749 | local LLeg = Char["Left Leg"] | |
750 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
751 | local Torso = Char.Torso | |
752 | local Head = Char:WaitForChild("Head") | |
753 | local NeutralAnims = true | |
754 | local Attack = false | |
755 | local Debounces = {Debounces={}} | |
756 | local Hit = {} | |
757 | local Sine = 0 | |
758 | local Change = 1 | |
759 | ||
760 | Cooldown = false | |
761 | ||
762 | local Effects = IN("Folder",Char) | |
763 | Effects.Name = "Effects" | |
764 | ||
765 | Times = 0 | |
766 | repeat | |
767 | wait(0.1) | |
768 | Times = Times + 1 | |
769 | if Char:FindFirstChildOfClass("Accessory") then | |
770 | Char:FindFirstChildOfClass("Accessory"):Destroy() | |
771 | end | |
772 | until Times == 8 | |
773 | ||
774 | Times = 0 | |
775 | repeat | |
776 | wait(0.1) | |
777 | Times = Times + 1 | |
778 | if Char:FindFirstChildOfClass("Pants") then | |
779 | Char:FindFirstChildOfClass("Pants"):Destroy() | |
780 | end | |
781 | until Times == 3 | |
782 | ||
783 | Times = 0 | |
784 | repeat | |
785 | wait(0.1) | |
786 | Times = Times + 1 | |
787 | if Char:FindFirstChildOfClass("Shirt") then | |
788 | Char:FindFirstChildOfClass("Shirt"):Destroy() | |
789 | end | |
790 | until Times == 3 | |
791 | ||
792 | Char.Head.Transparency = 1 | |
793 | Char.Head.face.Transparency = 1 | |
794 | Char["Left Leg"].BrickColor = BrickColor.new("Really black") | |
795 | Char["Right Arm"].Material = "Neon" | |
796 | Char["Left Arm"].Material = "Neon" | |
797 | Char["Right Leg"].Material = "Neon" | |
798 | Char["Left Leg"].Material = "Neon" | |
799 | Char["Torso"].Material = "Neon" | |
800 | ||
801 | Char["Right Arm"].BrickColor = BrickColor.new("Institutional white") | |
802 | Char["Left Arm"].BrickColor = BrickColor.new("Institutional white") | |
803 | Char["Right Leg"].BrickColor = BrickColor.new("Really black") | |
804 | Char["Left Leg"].BrickColor = BrickColor.new("Really black") | |
805 | Char["Torso"].BrickColor = BrickColor.new("Really black") | |
806 | ||
807 | Character.HumanoidRootPart.Anchored = true | |
808 | Character.HumanoidRootPart.Orientation = Vector3.new(0,0,0) | |
809 | wait(1) | |
810 | Character.HumanoidRootPart.Anchored = false | |
811 | Char.HumanoidRootPart.Anchored = true | |
812 | Char.HumanoidRootPart.Orientation = Vector3.new(0,0,0) | |
813 | wait(0.1) | |
814 | Char.HumanoidRootPart.Anchored = false | |
815 | local FakeHead = Instance.new("Part", Char) | |
816 | FakeHead.Name = "FakeHead" | |
817 | FakeHead.Material = "Neon" | |
818 | FakeHead.BrickColor = BrickColor.new("Institutional white") | |
819 | FakeHead.Size = Vector3.new(1.104, 1, 1) | |
820 | FakeHead.Position = Char.Head.Position | |
821 | local FakeHeadWeld = Instance.new("Weld", Char) | |
822 | FakeHeadWeld.Name = "FakeHeadWeld" | |
823 | FakeHeadWeld.Part0 = Char.Head | |
824 | FakeHeadWeld.Part1 = FakeHead | |
825 | local TopHat1 = Instance.new("Part", Char) | |
826 | TopHat1.Name = "TopHead1" | |
827 | TopHat1.Size = Vector3.new(1.812, 0.232, 1.878) | |
828 | TopHat1.Anchored = true | |
829 | TopHat1.Position = FakeHead.Position + Vector3.new(0, 0.5, 0) | |
830 | TopHat1.BrickColor = BrickColor.new("Really black") | |
831 | TopHat1.Material = "Neon" | |
832 | local TopHat1Weld = Instance.new("WeldConstraint", Char) | |
833 | TopHat1Weld.Name = "TopHat1Weld" | |
834 | TopHat1Weld.Part0 = FakeHead | |
835 | TopHat1Weld.Part1 = TopHat1 | |
836 | TopHat1.Anchored = false | |
837 | local TopHat2 = Instance.new("Part", Char) | |
838 | TopHat2.Name = "TopHead2" | |
839 | TopHat2.Size = Vector3.new(1.123, 0.296, 1.164) | |
840 | TopHat2.Anchored = true | |
841 | TopHat2.Position = FakeHead.Position + Vector3.new(0, 0.7, 0) | |
842 | TopHat2.BrickColor = BrickColor.new("Bright yellow") | |
843 | TopHat2.Material = "Neon" | |
844 | local TopHat2Weld = Instance.new("WeldConstraint", Char) | |
845 | TopHat2Weld.Name = "TopHat2Weld" | |
846 | TopHat2Weld.Part0 = FakeHead | |
847 | TopHat2Weld.Part1 = TopHat2 | |
848 | TopHat2.Anchored = false | |
849 | local TopHat3 = Instance.new("Part", Char) | |
850 | TopHat3.Name = "TopHead3" | |
851 | TopHat3.Size = Vector3.new(1.09, 2.344, 1.13) | |
852 | TopHat3.Anchored = true | |
853 | TopHat3.Position = FakeHead.Position + Vector3.new(0, 1.7, 0) | |
854 | TopHat3.BrickColor = BrickColor.new("Really black") | |
855 | TopHat3.Material = "Neon" | |
856 | local TopHat3Weld = Instance.new("WeldConstraint", Char) | |
857 | TopHat3Weld.Name = "TopHat3Weld" | |
858 | TopHat3Weld.Part0 = FakeHead | |
859 | TopHat3Weld.Part1 = TopHat3 | |
860 | TopHat3.Anchored = false | |
861 | local PortalPart = Instance.new("Part", Char) | |
862 | PortalPart.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3) | |
863 | PortalPart.Orientation = Vector3.new(60, 0, 0) | |
864 | PortalPart.Anchored = true | |
865 | PortalPart.Transparency = 1 | |
866 | PortalPart.CanCollide = false | |
867 | PortalPart.Massless = true | |
868 | local PortalPartWeld = Instance.new("WeldConstraint", Char) | |
869 | PortalPartWeld.Name = "PortalPartWeld" | |
870 | PortalPartWeld.Part0 = Char.HumanoidRootPart | |
871 | PortalPartWeld.Part1 = PortalPart | |
872 | PortalPart.Anchored = false | |
873 | local PortalPart2 = Instance.new("Part", Char) | |
874 | PortalPart2.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, 15, 3) | |
875 | PortalPart2.Orientation = Vector3.new(-37.76, 116.57, 50.77) | |
876 | PortalPart2.Anchored = true | |
877 | PortalPart2.Transparency = 1 | |
878 | PortalPart2.CanCollide = false | |
879 | PortalPart2.Massless = true | |
880 | local PortalPartWeld2 = Instance.new("WeldConstraint", Char) | |
881 | PortalPartWeld2.Name = "PortalPartWeld2" | |
882 | PortalPartWeld2.Part0 = Char.HumanoidRootPart | |
883 | PortalPartWeld2.Part1 = PortalPart2 | |
884 | PortalPart2.Anchored = false | |
885 | local Name = Instance.new("BillboardGui", TopHat3) | |
886 | Name.ExtentsOffset = Vector3.new(0, 2, 0) | |
887 | Name.Size = UDim2.new(0,200,0,100) | |
888 | local NameText = Instance.new("TextLabel", Name) | |
889 | NameText.Text = "Mr Void" | |
890 | NameText.BackgroundTransparency = 1 | |
891 | NameText.Font = Enum.Font.Cartoon | |
892 | NameText.TextSize = 50 | |
893 | NameText.TextColor3 = Color3.new(500, 500, 500) | |
894 | NameText.Size = UDim2.new(0,200,0,100) | |
895 | ||
896 | ||
897 | ||
898 | local Present = Instance.new("Tool", Character) | |
899 | Present.Name = "Present" | |
900 | Present.RequiresHandle = false | |
901 | Present.Activated:Connect(function() | |
902 | local Portal = Instance.new("Part", workspace) | |
903 | Portal.BrickColor = BrickColor.new("Really black") | |
904 | Portal.Material = "SmoothPlastic" | |
905 | Portal.Anchored = true | |
906 | Portal.CanCollide = false | |
907 | Portal.CFrame = PortalPart.CFrame | |
908 | Portal.Size = Vector3.new(0.1, 0.05, 0.1) | |
909 | wait(0.05) | |
910 | Portal.Orientation = PortalPart.Orientation | |
911 | Portal.Size = Vector3.new(0.3, 0.05, 0.3) | |
912 | wait(0.05) | |
913 | Portal.Orientation = PortalPart2.Orientation | |
914 | Portal.Size = Vector3.new(0.5, 0.05, 0.5) | |
915 | wait(0.05) | |
916 | Portal.Orientation = PortalPart.Orientation | |
917 | Portal.Size = Vector3.new(0.7, 0.05, 0.7) | |
918 | wait(0.05) | |
919 | Portal.Orientation = PortalPart2.Orientation | |
920 | Portal.Size = Vector3.new(0.9, 0.05, 0.9) | |
921 | wait(0.05) | |
922 | Portal.Orientation = PortalPart.Orientation | |
923 | Portal.Size = Vector3.new(1.4, 0.05, 1.4) | |
924 | wait(0.05) | |
925 | Portal.Orientation = PortalPart2.Orientation | |
926 | Portal.Size = Vector3.new(2, 0.05, 2) | |
927 | wait(0.05) | |
928 | Portal.Orientation = PortalPart.Orientation | |
929 | Portal.Size = Vector3.new(2.5, 0.05, 2.5) | |
930 | wait(0.05) | |
931 | Portal.Orientation = PortalPart2.Orientation | |
932 | Portal.Size = Vector3.new(3.4, 0.05, 3.4) | |
933 | wait(0.05) | |
934 | Portal.Orientation = PortalPart.Orientation | |
935 | Portal.Size = Vector3.new(4.3, 0.05, 4.3) | |
936 | local Present = Instance.new("Part", workspace) | |
937 | local Present2 = Instance.new("Part", workspace) | |
938 | Present2.Anchored = true | |
939 | Present2.CanCollide = false | |
940 | Present2.BrickColor = BrickColor.new("Bright yellow") | |
941 | Present2.Material = "Neon" | |
942 | Present2.Size = Vector3.new(0.5, 2.1, 2.1) | |
943 | Present2.CFrame = Present.CFrame | |
944 | local Present2Weld = Instance.new("WeldConstraint", Present2) | |
945 | Present2Weld.Part0 = Present | |
946 | Present2Weld.Part1 = Present2 | |
947 | Present2.Anchored = false | |
948 | local Present3 = Instance.new("Part", workspace) | |
949 | Present3.Anchored = true | |
950 | Present3.CanCollide = false | |
951 | Present3.BrickColor = BrickColor.new("Bright yellow") | |
952 | Present3.Material = "Neon" | |
953 | Present3.Size = Vector3.new(2.1, 2.1, 0.5) | |
954 | Present3.CFrame = Present.CFrame | |
955 | local Present3Weld = Instance.new("WeldConstraint", Present3) | |
956 | Present3Weld.Part0 = Present | |
957 | Present3Weld.Part1 = Present3 | |
958 | Present3.Anchored = false | |
959 | Present.Transparency = 0 | |
960 | Present.CanCollide = true | |
961 | Present.BrickColor = BrickColor.new("Really black") | |
962 | Present.Material = "Neon" | |
963 | Present.Size = Vector3.new(2, 2, 2) | |
964 | ||
965 | local Duh1 = Instance.new("Part", workspace) | |
966 | Duh1.Anchored = true | |
967 | Duh1.CanCollide = false | |
968 | Duh1.Orientation = Vector3.new(0, 0, -40) | |
969 | Duh1.BrickColor = BrickColor.new("Bright yellow") | |
970 | Duh1.Material = "Neon" | |
971 | Duh1.Size = Vector3.new(0.336, 2.05, 0.386) | |
972 | Duh1.Position = Present.Position + Vector3.new(0, 1, 0) | |
973 | local Duh1Weld = Instance.new("WeldConstraint", Duh1) | |
974 | Duh1Weld.Part0 = Present | |
975 | Duh1Weld.Part1 = Duh1 | |
976 | Duh1.Anchored = false | |
977 | local Duh2 = Instance.new("Part", workspace) | |
978 | Duh2.Anchored = true | |
979 | Duh2.CanCollide = false | |
980 | Duh2.Orientation = Vector3.new(0, 0, 40) | |
981 | Duh2.BrickColor = BrickColor.new("Bright yellow") | |
982 | Duh2.Material = "Neon" | |
983 | Duh2.Size = Vector3.new(0.336, 2.05, 0.386) | |
984 | Duh2.Position = Present.Position + Vector3.new(0, 1, 0) | |
985 | local Duh2Weld = Instance.new("WeldConstraint", Duh2) | |
986 | Duh2Weld.Part0 = Present | |
987 | Duh2Weld.Part1 = Duh2 | |
988 | Duh2.Anchored = false | |
989 | Present.CFrame = PortalPart.CFrame | |
990 | Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40 | |
991 | wait(1) | |
992 | Portal.Orientation = PortalPart2.Orientation | |
993 | Portal.Size = Vector3.new(5, 0.05, 5) | |
994 | wait(0.05) | |
995 | Portal.Orientation = PortalPart.Orientation | |
996 | Portal.Size = Vector3.new(4.5, 0.05, 4.5) | |
997 | wait(0.05) | |
998 | Portal.Orientation = PortalPart.Orientation | |
999 | Portal.Size = Vector3.new(4, 0.05, 4) | |
1000 | wait(0.05) | |
1001 | Portal.Size = Vector3.new(3, 0.05, 3) | |
1002 | wait(0.05) | |
1003 | Portal.Size = Vector3.new(2, 0.05, 2) | |
1004 | wait(0.05) | |
1005 | Portal:Destroy() | |
1006 | Present.Touched:Connect(function(Something) | |
1007 | if Something.Parent:FindFirstChild("Humanoid") then | |
1008 | if can == true then | |
1009 | Present:Destroy() | |
1010 | Present2:Destroy() | |
1011 | Present3:Destroy() | |
1012 | Duh1:Destroy() | |
1013 | Duh2:Destroy() | |
1014 | ||
1015 | local Character = Something.parent | |
1016 | local Buff = math.random(1, 2) | |
1017 | if Buff == 1 then | |
1018 | local Aura = Instance.new("Part", workspace) | |
1019 | Aura.BrickColor = BrickColor.new("Bright yellow") | |
1020 | Aura.Shape = "Ball" | |
1021 | Aura.Material = Enum.Material.ForceField | |
1022 | Aura.Size = Vector3.new(10, 10, 10) | |
1023 | Aura.CanCollide = true | |
1024 | Aura.Massless = true | |
1025 | Aura.CFrame = Character.HumanoidRootPart.CFrame | |
1026 | local AuraWeld = Instance.new("Weld", Aura) | |
1027 | AuraWeld.Part0 = Character.Head | |
1028 | AuraWeld.Part1 = Aura | |
1029 | Character.Humanoid.Health = Character.Humanoid.MaxHealth | |
1030 | can = false | |
1031 | wait(0.2) | |
1032 | can = true | |
1033 | wait(29.8) | |
1034 | Aura:Destroy() | |
1035 | else | |
1036 | if Buff == 2 then | |
1037 | can = false | |
1038 | Character.Humanoid.WalkSpeed = 42 | |
1039 | Character.Humanoid.JumpPower = 75 | |
1040 | local Aura2 = Instance.new("Part", workspace) | |
1041 | Aura2.BrickColor = BrickColor.new("Bright yellow") | |
1042 | Aura2.Shape = "Ball" | |
1043 | Aura2.Material = Enum.Material.ForceField | |
1044 | Aura2.Size = Vector3.new(2, 2, 2) | |
1045 | Aura2.CanCollide = true | |
1046 | Aura2.CFrame = Character.HumanoidRootPart.CFrame | |
1047 | local Aura2Weld = Instance.new("Weld", Aura2) | |
1048 | Aura2Weld.Part0 = Character.Head | |
1049 | Aura2Weld.Part1 = Aura2 | |
1050 | Character.Humanoid.Health = Character.Humanoid.MaxHealth | |
1051 | wait(0.2) | |
1052 | can = true | |
1053 | wait(14.8) | |
1054 | Character.Humanoid.WalkSpeed = 16 | |
1055 | Character.Humanoid.JumpPower = 50 | |
1056 | end | |
1057 | end | |
1058 | end | |
1059 | end | |
1060 | end) | |
1061 | end) | |
1062 | ||
1063 | local BadPresent = Instance.new("Tool", Character) | |
1064 | BadPresent.Name = "BadPresent" | |
1065 | BadPresent.RequiresHandle = false | |
1066 | BadPresent.Activated:Connect(function() | |
1067 | local Portal = Instance.new("Part", workspace) | |
1068 | Portal.BrickColor = BrickColor.new("Really black") | |
1069 | Portal.Material = "SmoothPlastic" | |
1070 | Portal.Anchored = true | |
1071 | Portal.CanCollide = false | |
1072 | Portal.CFrame = PortalPart.CFrame | |
1073 | Portal.Size = Vector3.new(0.1, 0.05, 0.1) * 2 | |
1074 | wait(0.05) | |
1075 | Portal.Orientation = PortalPart.Orientation | |
1076 | Portal.Size = Vector3.new(0.3, 0.05, 0.3) * 2 | |
1077 | wait(0.05) | |
1078 | Portal.Orientation = PortalPart2.Orientation | |
1079 | Portal.Size = Vector3.new(0.5, 0.05, 0.5) * 2 | |
1080 | wait(0.05) | |
1081 | Portal.Orientation = PortalPart.Orientation | |
1082 | Portal.Size = Vector3.new(0.7, 0.05, 0.7) * 2 | |
1083 | wait(0.05) | |
1084 | Portal.Orientation = PortalPart2.Orientation | |
1085 | Portal.Size = Vector3.new(0.9, 0.05, 0.9) * 2 | |
1086 | wait(0.05) | |
1087 | Portal.Orientation = PortalPart.Orientation | |
1088 | Portal.Size = Vector3.new(1.4, 0.05, 1.4) * 2 | |
1089 | wait(0.05) | |
1090 | Portal.Orientation = PortalPart2.Orientation | |
1091 | Portal.Size = Vector3.new(2, 0.05, 2) * 2 | |
1092 | wait(0.05) | |
1093 | Portal.Orientation = PortalPart.Orientation | |
1094 | Portal.Size = Vector3.new(2.5, 0.05, 2.5) * 2 | |
1095 | wait(0.05) | |
1096 | Portal.Orientation = PortalPart2.Orientation | |
1097 | Portal.Size = Vector3.new(3.4, 0.05, 3.4) * 2 | |
1098 | wait(0.05) | |
1099 | Portal.Orientation = PortalPart.Orientation | |
1100 | Portal.Size = Vector3.new(4.3, 0.05, 4.3) * 2 | |
1101 | local Present = Instance.new("Part", workspace) | |
1102 | local Present2 = Instance.new("Part", workspace) | |
1103 | Present2.Anchored = true | |
1104 | Present2.CanCollide = false | |
1105 | Present2.BrickColor = BrickColor.new("Bright yellow") | |
1106 | Present2.Material = "Neon" | |
1107 | Present2.Size = Vector3.new(0.5, 2.1, 2.1) * 2 | |
1108 | Present2.CFrame = Present.CFrame | |
1109 | local Present2Weld = Instance.new("WeldConstraint", Present2) | |
1110 | Present2Weld.Part0 = Present | |
1111 | Present2Weld.Part1 = Present2 | |
1112 | Present2.Anchored = false | |
1113 | local Present3 = Instance.new("Part", workspace) | |
1114 | Present3.Anchored = true | |
1115 | Present3.CanCollide = false | |
1116 | Present3.BrickColor = BrickColor.new("Bright yellow") | |
1117 | Present3.Material = "Neon" | |
1118 | Present3.Size = Vector3.new(2.1, 2.1, 0.5) * 2 | |
1119 | Present3.CFrame = Present.CFrame | |
1120 | local Present3Weld = Instance.new("WeldConstraint", Present3) | |
1121 | Present3Weld.Part0 = Present | |
1122 | Present3Weld.Part1 = Present3 | |
1123 | Present3.Anchored = false | |
1124 | Present.Transparency = 0 | |
1125 | Present.CanCollide = true | |
1126 | Present.BrickColor = BrickColor.new("Really black") | |
1127 | Present.Material = "Neon" | |
1128 | Present.Size = Vector3.new(2, 2, 2) * 2 | |
1129 | ||
1130 | local Duh1 = Instance.new("Part", workspace) | |
1131 | Duh1.Anchored = true | |
1132 | Duh1.CanCollide = false | |
1133 | Duh1.Orientation = Vector3.new(0, 0, -40) | |
1134 | Duh1.BrickColor = BrickColor.new("Bright yellow") | |
1135 | Duh1.Material = "Neon" | |
1136 | Duh1.Size = Vector3.new(0.336, 2.05, 0.386) * 2 | |
1137 | Duh1.Position = Present.Position + Vector3.new(0, 1, 0) | |
1138 | local Duh1Weld = Instance.new("WeldConstraint", Duh1) | |
1139 | Duh1Weld.Part0 = Present | |
1140 | Duh1Weld.Part1 = Duh1 | |
1141 | Duh1.Anchored = false | |
1142 | local Duh2 = Instance.new("Part", workspace) | |
1143 | Duh2.Anchored = true | |
1144 | Duh2.CanCollide = false | |
1145 | Duh2.Orientation = Vector3.new(0, 0, 40) | |
1146 | Duh2.BrickColor = BrickColor.new("Bright yellow") | |
1147 | Duh2.Material = "Neon" | |
1148 | Duh2.Size = Vector3.new(0.336, 2.05, 0.386) * 2 | |
1149 | Duh2.Position = Present.Position + Vector3.new(0, 1, 0) | |
1150 | local Duh2Weld = Instance.new("WeldConstraint", Duh2) | |
1151 | Duh2Weld.Part0 = Present | |
1152 | Duh2Weld.Part1 = Duh2 | |
1153 | Duh2.Anchored = false | |
1154 | Present.CFrame = PortalPart.CFrame | |
1155 | Present.Velocity = Char.HumanoidRootPart.CFrame.lookVector * 40 | |
1156 | wait(1) | |
1157 | Portal.Orientation = PortalPart2.Orientation | |
1158 | Portal.Size = Vector3.new(5, 0.05, 5) * 2 | |
1159 | wait(0.05) | |
1160 | Portal.Orientation = PortalPart.Orientation | |
1161 | Portal.Size = Vector3.new(4.5, 0.05, 4.5) * 2 | |
1162 | wait(0.05) | |
1163 | Portal.Orientation = PortalPart.Orientation | |
1164 | Portal.Size = Vector3.new(4, 0.05, 4) * 2 | |
1165 | wait(0.05) | |
1166 | Portal.Size = Vector3.new(3, 0.05, 3) * 2 | |
1167 | wait(0.05) | |
1168 | Portal.Size = Vector3.new(2, 0.05, 2) * 2 | |
1169 | wait(0.05) | |
1170 | Portal:Destroy() | |
1171 | Present.Touched:Connect(function(Something) | |
1172 | if Something.Parent:FindFirstChild("Humanoid") then | |
1173 | if can == true then | |
1174 | Present:Destroy() | |
1175 | Present2:Destroy() | |
1176 | Present3:Destroy() | |
1177 | Duh1:Destroy() | |
1178 | Duh2:Destroy() | |
1179 | local Character = Something.parent | |
1180 | local Buff = math.random(1, 2) | |
1181 | if Buff == 1 then | |
1182 | can = false | |
1183 | wait(0.2) | |
1184 | can = true | |
1185 | Character.Humanoid.PlatformStand = false | |
1186 | Character["Right Arm"].BrickColor = BrickColor.new("Bright yellow") | |
1187 | wait(2) | |
1188 | Character["Right Arm"]:Destroy() | |
1189 | Character["Right Leg"].BrickColor = BrickColor.new("Bright yellow") | |
1190 | wait(2) | |
1191 | Character["Right Leg"]:Destroy() | |
1192 | Character["Left Arm"].BrickColor = BrickColor.new("Bright yellow") | |
1193 | wait(2) | |
1194 | Character["Left Arm"]:Destroy() | |
1195 | Character["Left Leg"].BrickColor = BrickColor.new("Bright yellow") | |
1196 | wait(2) | |
1197 | Character["Left Leg"]:Destroy() | |
1198 | Character["Torso"].BrickColor = BrickColor.new("Bright yellow") | |
1199 | wait(6) | |
1200 | Character["Torso"]:Destroy() | |
1201 | else | |
1202 | if Buff == 2 then | |
1203 | can = false | |
1204 | wait(0.2) | |
1205 | can = true | |
1206 | Character.Humanoid.MaxHealth = 100 | |
1207 | Character.Humanoid.Health = 99 | |
1208 | wait(0.5) | |
1209 | Character.Humanoid.Health = 98 | |
1210 | wait(0.5) | |
1211 | Character.Humanoid.Health = 97 | |
1212 | wait(0.5) | |
1213 | Character.Humanoid.Health = 96 | |
1214 | wait(0.5) | |
1215 | Character.Humanoid.Health = 95 | |
1216 | wait(0.5) | |
1217 | Character.Humanoid.Health = 94 | |
1218 | wait(0.5) | |
1219 | Character.Humanoid.Health = 93 | |
1220 | wait(0.5) | |
1221 | Character.Humanoid.Health = 92 | |
1222 | wait(0.5) | |
1223 | Character.Humanoid.Health = 91 | |
1224 | wait(0.5) | |
1225 | Character.Humanoid.Health = 90 | |
1226 | wait(0.5) | |
1227 | Character.Humanoid.Health = 89 | |
1228 | wait(0.5) | |
1229 | Character.Humanoid.Health = 88 | |
1230 | wait(0.5) | |
1231 | Character.Humanoid.Health = 87 | |
1232 | wait(0.5) | |
1233 | Character.Humanoid.Health = 86 | |
1234 | wait(0.5) | |
1235 | Character.Humanoid.Health = 85 | |
1236 | wait(0.5) | |
1237 | Character.Humanoid.Health = 84 | |
1238 | wait(0.5) | |
1239 | Character.Humanoid.Health = 83 | |
1240 | wait(0.5) | |
1241 | Character.Humanoid.Health = 82 | |
1242 | wait(0.5) | |
1243 | Character.Humanoid.Health = 81 | |
1244 | wait(0.5) | |
1245 | Character.Humanoid.Health = 80 | |
1246 | wait(0.5) | |
1247 | Character.Humanoid.Health = 79 | |
1248 | wait(0.5) | |
1249 | Character.Humanoid.Health = 78 | |
1250 | wait(0.5) | |
1251 | Character.Humanoid.Health = 77 | |
1252 | wait(0.5) | |
1253 | Character.Humanoid.Health = 76 | |
1254 | wait(0.5) | |
1255 | Character.Humanoid.Health = 75 | |
1256 | wait(0.5) | |
1257 | Character.Humanoid.Health = 60 | |
1258 | wait(0.5) | |
1259 | Character.Humanoid.Health = 50 | |
1260 | wait(0.5) | |
1261 | Character.Humanoid.Health = 40 | |
1262 | wait(0.5) | |
1263 | Character.Humanoid.Health = 30 | |
1264 | wait(0.5) | |
1265 | Character.Humanoid.Health = 20 | |
1266 | wait(0.5) | |
1267 | Character.Humanoid.Health = 10 | |
1268 | wait(0.5) | |
1269 | Character.Humanoid.Health = 9 | |
1270 | wait(0.5) | |
1271 | Character.Humanoid.Health = 8 | |
1272 | wait(0.5) | |
1273 | Character.Humanoid.Health = 7 | |
1274 | wait(0.5) | |
1275 | Character.Humanoid.Health = 6 | |
1276 | wait(0.5) | |
1277 | Character.Humanoid.Health = 5 | |
1278 | wait(0.5) | |
1279 | Character.Humanoid.Health = 4 | |
1280 | wait(0.5) | |
1281 | Character.Humanoid.Health = 3 | |
1282 | wait(0.5) | |
1283 | Character.Humanoid.Health = 2 | |
1284 | wait(0.5) | |
1285 | Character.Humanoid.Health = 1 | |
1286 | wait(0.5) | |
1287 | Character.Humanoid.Health = 0 | |
1288 | wait(0.1) | |
1289 | Character.Humanoid.WalkSpeed = 1 | |
1290 | Character.Humanoid.JumpPower = 1 | |
1291 | local Aura2 = Instance.new("Part", Character) | |
1292 | Aura2.BrickColor = BrickColor.new("Bright yellow") | |
1293 | Aura2.Shape = "Ball" | |
1294 | Character.Head.BrickColor = BrickColor.new("Bright yellow") | |
1295 | Aura2.Material = Enum.Material.ForceField | |
1296 | Aura2.Size = Vector3.new(2, 2, 2) | |
1297 | Aura2.CanCollide = true | |
1298 | Aura2.Velocity = Vector3.new(0, 1000000, 0) | |
1299 | Aura2.CFrame = Character.HumanoidRootPart.CFrame | |
1300 | local Aura2Weld = Instance.new("Weld", Aura2) | |
1301 | Aura2Weld.Part0 = Character.Head | |
1302 | Aura2Weld.Part1 = Aura2 | |
1303 | wait(14.8) | |
1304 | Character.Humanoid.WalkSpeed = 16 | |
1305 | Character.Humanoid.JumpPower = 50 | |
1306 | end | |
1307 | end | |
1308 | end | |
1309 | end | |
1310 | end) | |
1311 | end) | |
1312 | end | |
1313 | end | |
1314 | end) | |
1315 | end) | |
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | ||
1344 | ||
1345 | ||
1346 | ||
1347 | ||
1348 | ||
1349 | ||
1350 | ||
1351 | --// Instance Creation Functions \\-- | |
1352 | ||
1353 | ||
1354 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
1355 | local part = IN("Part") | |
1356 | part.Parent = parent or Char | |
1357 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
1358 | part.Material = material or Enum.Material.SmoothPlastic | |
1359 | part.TopSurface,part.BottomSurface=10,10 | |
1360 | part.Size = size or V3.N(1,1,1) | |
1361 | part.CFrame = cframe or CF.N(0,0,0) | |
1362 | part.CanCollide = cancollide or false | |
1363 | part.Anchored = anchored or false | |
1364 | return part | |
1365 | end | |
1366 | ||
1367 | function Weld(part0,part1,c0,c1) | |
1368 | local weld = IN("Weld") | |
1369 | weld.Parent = part0 | |
1370 | weld.Part0 = part0 | |
1371 | weld.Part1 = part1 | |
1372 | weld.C0 = c0 or CF.N() | |
1373 | weld.C1 = c1 or CF.N() | |
1374 | return weld | |
1375 | end | |
1376 | ||
1377 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
1378 | local part = IN("SpecialMesh") | |
1379 | part.MeshId = meshid or "" | |
1380 | part.TextureId = textid or "" | |
1381 | part.Scale = scale or V3.N(1,1,1) | |
1382 | part.Offset = offset or V3.N(0,0,0) | |
1383 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
1384 | part.Parent = parent | |
1385 | return part | |
1386 | end | |
1387 | ||
1388 | NewInstance = function(instance,parent,properties) | |
1389 | local inst = Instance.new(instance) | |
1390 | inst.Parent = parent | |
1391 | if(properties)then | |
1392 | for i,v in next, properties do | |
1393 | pcall(function() inst[i] = v end) | |
1394 | end | |
1395 | end | |
1396 | return inst; | |
1397 | end | |
1398 | ||
1399 | function Clone(instance,parent,properties) | |
1400 | local inst = instance:Clone() | |
1401 | inst.Parent = parent | |
1402 | if(properties)then | |
1403 | for i,v in next, properties do | |
1404 | pcall(function() inst[i] = v end) | |
1405 | end | |
1406 | end | |
1407 | return inst; | |
1408 | end | |
1409 | ||
1410 | ||
1411 | ||
1412 | ||
1413 | --// Customization \\-- | |
1414 | ||
1415 | local Frame_Speed = 60; | |
1416 | local WalkSpeed = 16 | |
1417 | local DamageColor = BrickColor.new'White' | |
1418 | ||
1419 | --// Stop animations \\-- | |
1420 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
1421 | v:Stop(); | |
1422 | end | |
1423 | ||
1424 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
1425 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
1426 | ||
1427 | --// Joints \\-- | |
1428 | ||
1429 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5,0.5,0),C1 = CF.N(0,.5,0)}) | |
1430 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5,0.5,0),C1 = CF.N(0,.5,0)}) | |
1431 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5,0)}) | |
1432 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5,-1,0),C1 = CF.N(0,1,0)}) | |
1433 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5,-1,0),C1 = CF.N(0,1,0)}) | |
1434 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
1435 | ||
1436 | local LSC0 = LS.C0 | |
1437 | local RSC0 = RS.C0 | |
1438 | local NKC0 = NK.C0 | |
1439 | local LHC0 = LH.C0 | |
1440 | local RHC0 = RH.C0 | |
1441 | local RJC0 = RJ.C0 | |
1442 | ||
1443 | --// Artificial HB \\-- | |
1444 | ||
1445 | local ArtificialHB = IN("BindableEvent", script) | |
1446 | ArtificialHB.Name = "Heartbeat" | |
1447 | ||
1448 | script:WaitForChild("Heartbeat") | |
1449 | ||
1450 | local tf = 0 | |
1451 | local allowframeloss = false | |
1452 | local tossremainder = false | |
1453 | local lastframe = tick() | |
1454 | local frame = 1/Frame_Speed | |
1455 | ArtificialHB:Fire() | |
1456 | ||
1457 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1458 | tf = tf + s | |
1459 | if tf >= frame then | |
1460 | if allowframeloss then | |
1461 | script.Heartbeat:Fire() | |
1462 | lastframe = tick() | |
1463 | else | |
1464 | for i = 1, math.floor(tf / frame) do | |
1465 | ArtificialHB:Fire() | |
1466 | end | |
1467 | lastframe = tick() | |
1468 | end | |
1469 | if tossremainder then | |
1470 | tf = 0 | |
1471 | else | |
1472 | tf = tf - frame * math.floor(tf / frame) | |
1473 | end | |
1474 | end | |
1475 | end) | |
1476 | ||
1477 | function swait(num) | |
1478 | if num == 0 or num == nil then | |
1479 | ArtificialHB.Event:wait() | |
1480 | else | |
1481 | for i = 0, num do | |
1482 | ArtificialHB.Event:wait() | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | while true do | |
1493 | swait() | |
1494 | Sine = Sine + Change | |
1495 | ||
1496 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4)), Char) | |
1497 | ||
1498 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
1499 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed > 24 and "Run" or "Walk") or hitfloor and "Idle") | |
1500 | if(not Effects or not Effects.Parent)then | |
1501 | Effects = IN("Model",Char) | |
1502 | Effects.Name = "Effects" | |
1503 | end | |
1504 | if(State == 'Run')then | |
1505 | local wsVal = 20 / (Hum.WalkSpeed/16) | |
1506 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
1507 | Change = 3 | |
1508 | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha) | |
1509 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha) | |
1510 | elseif(State == 'Walk')then | |
1511 | local wsVal = 20 / (Hum.WalkSpeed/16) | |
1512 | local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1) | |
1513 | Change = 3 | |
1514 | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha) | |
1515 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha) | |
1516 | else | |
1517 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2) | |
1518 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2) | |
1519 | end | |
1520 | ||
1521 | Hum.WalkSpeed = WalkSpeed | |
1522 | ||
1523 | if(NeutralAnims)then | |
1524 | if(State == 'Idle')then | |
1525 | local Alpha = .1 | |
1526 | Change = .75 | |
1527 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0+.2*M.C(Sine/12),.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha) | |
1528 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha) | |
1529 | LS.C0 = LS.C0:lerp(LSC0*CF.N(.25,0,0)*CF.A(M.R(-45),0,M.R(45+5*M.C(Sine/12))),Alpha) | |
1530 | RS.C0 = RS.C0:lerp(RSC0*CF.N(-.25,0,0)*CF.A(M.R(-45),0,M.R(-45-5*M.C(Sine/12))),Alpha) | |
1531 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha) | |
1532 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0-.2*M.C(Sine/12),-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha) | |
1533 | -- idle | |
1534 | elseif(State == 'Run')then | |
1535 | local wsVal = 20 / (Hum.WalkSpeed/16) | |
1536 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
1537 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
1538 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
1539 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha) | |
1540 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha) | |
1541 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
1542 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
1543 | elseif(State == 'Walk')then | |
1544 | local wsVal = 20 / (Hum.WalkSpeed/16) | |
1545 | local Alpha = math.min(.3 * (Hum.WalkSpeed/16),1) | |
1546 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
1547 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
1548 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha) | |
1549 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha) | |
1550 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
1551 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
1552 | elseif(State == 'Jump')then | |
1553 | local Alpha = .1 | |
1554 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
1555 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha) | |
1556 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha) | |
1557 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
1558 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
1559 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
1560 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
1561 | elseif(State == 'Fall')then | |
1562 | local Alpha = .1 | |
1563 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
1564 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha) | |
1565 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha) | |
1566 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
1567 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
1568 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
1569 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
1570 | elseif(State == 'Paralyzed')then | |
1571 | -- paralyzed | |
1572 | elseif(State == 'Sit')then | |
1573 | -- sit | |
1574 | end | |
1575 | end | |
1576 | ||
1577 | end |