SHOW:
|
|
- or go back to the newest paste.
1 | - | local p = game.Players.LocalPlayer--300899323 |
1 | + | local p = game.Players.LocalPlayer |
2 | local char = p.Character | |
3 | local mouse = p:GetMouse() | |
4 | local larm = char["Left Arm"] | |
5 | local rarm = char["Right Arm"] | |
6 | local lleg = char["Left Leg"] | |
7 | local rleg = char["Right Leg"] | |
8 | local hed = char.Head | |
9 | local torso = char.Torso | |
10 | local hum = char.Humanoid | |
11 | local cam = game.Workspace.CurrentCamera | |
12 | local root = char.HumanoidRootPart | |
13 | local rj = root.RootJoint | |
14 | local deb = false | |
15 | local shot = 0 | |
16 | local stanceToggle = "Idle1" | |
17 | local l = game:GetService("Lighting") | |
18 | local rs = game:GetService("RunService").RenderStepped | |
19 | local hb = game:GetService("RunService").Heartbeat | |
20 | local Stepped = game:GetService("RunService").Stepped | |
21 | math.randomseed(os.time()) | |
22 | local Transforming = true | |
23 | hum.WalkSpeed = 0 | |
24 | local fx = Instance.new("Part",torso) | |
25 | - | wit = Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 215, 0) |
25 | + | wit = Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 0, 255) |
26 | - | wit2 = Color3.fromRGB(255,215,0) |
26 | + | wit2 = Color3.fromRGB(139,0,139) |
27 | local glowz = Instance.new("ParticleEmitter",fx) | |
28 | glowz.LightEmission = 1 | |
29 | glowz.Texture = "rbxassetid://280516525" | |
30 | - | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255),Color3.fromRGB(255, 215, 0)) |
30 | + | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255),Color3.fromRGB(255, 0, 255)) |
31 | glowz.Size = NumberSequence.new(5) | |
32 | glowz.Speed = NumberRange.new(25,50) | |
33 | glowz.LockedToPart = false | |
34 | glowz.Transparency = NumberSequence.new(0.75) | |
35 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
36 | glowz.Lifetime = NumberRange.new(1) | |
37 | glowz.Rate = 5000 | |
38 | glowz.VelocitySpread = 9001 | |
39 | fx.Anchored = true | |
40 | fx.Material = "Glass" | |
41 | fx.CanCollide = false | |
42 | fx.Locked = true | |
43 | fx.Transparency = 1 | |
44 | fx.Material = "Glass" | |
45 | fx.Size = Vector3.new(1,1,1) | |
46 | fx.TopSurface = "SmoothNoOutlines" | |
47 | fx.BottomSurface = "SmoothNoOutlines" | |
48 | - | fx.BrickColor = BrickColor.new("Gold") |
48 | + | fx.BrickColor = BrickColor.new("Magenta") |
49 | fxm = Instance.new("SpecialMesh",fx) | |
50 | fxm.MeshType = "Sphere" | |
51 | local sa2 = Instance.new("Sound",torso) | |
52 | sa2.SoundId = "rbxassetid://1028743442" | |
53 | sa2.Pitch = 0.5 | |
54 | sa2.Volume = 5 | |
55 | sa2.Looped = false | |
56 | sa2:Play() | |
57 | local value = 1 | |
58 | fxm.Scale = Vector3.new(1,1,1) | |
59 | for i = 1, 20 do rs:wait() | |
60 | value = value - 0.05 | |
61 | fx.Transparency = fx.Transparency - (1/20) | |
62 | fx.CFrame = torso.CFrame | |
63 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
64 | rs:wait() | |
65 | end | |
66 | ---------------------------------------------------- | |
67 | GroundWave1 = function() | |
68 | local Transforming = true | |
69 | hum.WalkSpeed = 0 | |
70 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
71 | local Colors = {"White", "Gold"} | |
72 | local wave = Instance.new("Part", torso) | |
73 | - | wave.BrickColor = BrickColor.new(Gold) |
73 | + | wave.BrickColor = BrickColor.new(Magenta) |
74 | wave.Anchored = true | |
75 | wave.CanCollide = false | |
76 | wave.Locked = true | |
77 | wave.Size = Vector3.new(1, 1, 1) | |
78 | wave.TopSurface = "Smooth" | |
79 | wave.BottomSurface = "Smooth" | |
80 | wave.Transparency = 0.35 | |
81 | wave.CFrame = HandCF | |
82 | wm = Instance.new("SpecialMesh", wave) | |
83 | wm.MeshId = "rbxassetid://3270017" | |
84 | coroutine.wrap(function() | |
85 | for i = 1, 30, 1 do | |
86 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
87 | wave.Size = wm.Scale | |
88 | wave.CFrame = HandCF | |
89 | wave.Transparency = i/30 | |
90 | wait() | |
91 | end | |
92 | wait() | |
93 | wave:Destroy() | |
94 | end)() | |
95 | end | |
96 | ---------------------------------------------------- | |
97 | GroundWave = function() | |
98 | if Transforming == true then | |
99 | local value = 5 | |
100 | local value2 = 10 | |
101 | local value3 = 20 | |
102 | local sa2 = Instance.new("Sound",torso) | |
103 | sa2.SoundId = "rbxassetid://413682983" | |
104 | sa2.Pitch = 1 | |
105 | sa2.Volume = 10 | |
106 | sa2.Looped = false | |
107 | sa2:Play() | |
108 | local wave = Instance.new("Part", torso) | |
109 | local glowz = Instance.new("ParticleEmitter",wave) | |
110 | glowz.LightEmission = 1 | |
111 | glowz.Texture = "0" | |
112 | - | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 215, 0)) |
112 | + | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 0, 255)) |
113 | glowz.Size = NumberSequence.new(30) | |
114 | glowz.Speed = NumberRange.new(25,100) | |
115 | glowz.LockedToPart = false | |
116 | glowz.Transparency = NumberSequence.new(0.75) | |
117 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
118 | glowz.Lifetime = NumberRange.new(1) | |
119 | glowz.Rate = 5000 | |
120 | glowz.VelocitySpread = 9001 | |
121 | ||
122 | wave.BrickColor = BrickColor.new("White") | |
123 | wave.Anchored = true | |
124 | wave.CanCollide = false | |
125 | wave.Locked = true | |
126 | wave.Size = Vector3.new(1, 1, 1) | |
127 | wave.TopSurface = "Smooth" | |
128 | wave.BottomSurface = "Smooth" | |
129 | wave.Transparency = 0.35 | |
130 | wave.CFrame = fx.CFrame | |
131 | wave.Material = "Glass" | |
132 | wm = Instance.new("SpecialMesh", wave) | |
133 | wm.MeshType = "Sphere" | |
134 | wm.Scale = Vector3.new(1,1,1) | |
135 | local wave2 = Instance.new("Part", torso) | |
136 | - | wave2.BrickColor = BrickColor.new("Gold") |
136 | + | wave2.BrickColor = BrickColor.new("Magenta") |
137 | wave2.Anchored = true | |
138 | wave2.CanCollide = false | |
139 | wave2.Locked = true | |
140 | wave2.Size = Vector3.new(1, 1, 1) | |
141 | wave2.TopSurface = "Smooth" | |
142 | wave2.BottomSurface = "Smooth" | |
143 | wave2.Transparency = 0.35 | |
144 | wave2.CFrame = fx.CFrame | |
145 | wave2.Material = "Glass" | |
146 | wm2 = Instance.new("SpecialMesh", wave2) | |
147 | wm2.MeshType = "FileMesh" | |
148 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
149 | wm2.Scale = Vector3.new(1,1,1) | |
150 | local wave3 = Instance.new("Part", torso) | |
151 | - | wave3.BrickColor = BrickColor.new("Gold") |
151 | + | wave3.BrickColor = BrickColor.new("Magenta") |
152 | wave3.Anchored = true | |
153 | wave3.CanCollide = false | |
154 | wave3.Locked = true | |
155 | wave3.Size = Vector3.new(1, 1, 1) | |
156 | wave3.TopSurface = "Smooth" | |
157 | wave3.BottomSurface = "Smooth" | |
158 | wave3.Transparency = 0.35 | |
159 | wave3.CFrame = fx.CFrame | |
160 | wave3.Material = "Glass" | |
161 | wm3 = Instance.new("SpecialMesh", wave3) | |
162 | wm3.MeshType = "FileMesh" | |
163 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
164 | wm3.Scale = Vector3.new(1,1,1) | |
165 | coroutine.wrap(function() | |
166 | for i = 1, 18, 1 do | |
167 | value = value - 0.5 | |
168 | value2 = value2 - 0.75*1.5 | |
169 | value3 = value3 - 0.475*1.5 | |
170 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
171 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
172 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
173 | --wave.Size = wm.Scale | |
174 | wave.CFrame = fx.CFrame | |
175 | wave.Transparency = i/14 | |
176 | --wave2.Size = wm2.Scale | |
177 | wave2.CFrame = fx.CFrame | |
178 | wave2.Rotation = Vector3.new(90, 0, 0) | |
179 | wave2.Transparency = i/14 | |
180 | --wave3.Size = wm3.Scale | |
181 | wave3.CFrame = fx.CFrame | |
182 | wave3.Rotation = Vector3.new(90, 0, 0) | |
183 | wave3.Transparency = i/14 | |
184 | wait() | |
185 | glowz.Rate = 0 | |
186 | ||
187 | end | |
188 | wait() | |
189 | wave:Destroy() | |
190 | wave2:Destroy() | |
191 | wave3:Destroy() | |
192 | end)() | |
193 | elseif Transforming == false then | |
194 | wait() | |
195 | end | |
196 | end | |
197 | ||
198 | for i = 1, 100 do rs:wait() | |
199 | fx.CFrame = torso.CFrame | |
200 | end | |
201 | ||
202 | Spawn(function() | |
203 | while wait(1) do | |
204 | GroundWave() | |
205 | end | |
206 | end) | |
207 | ||
208 | wait(4) | |
209 | ||
210 | Transforming = false | |
211 | ||
212 | local value2 = 1 | |
213 | for i = 1, 20 do rs:wait() | |
214 | value2 = value2 - 0.05 | |
215 | glowz.Rate = 0 | |
216 | ||
217 | fx.Transparency = fx.Transparency + (1/20) | |
218 | fx.CFrame = torso.CFrame | |
219 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
220 | rs:wait() | |
221 | end | |
222 | glowz:Destroy() | |
223 | ||
224 | ||
225 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
226 | local valuer = 5 | |
227 | local valuer2 = 10 | |
228 | local valuer3 = 15 | |
229 | local sa2 = Instance.new("Sound",torso) | |
230 | sa2.SoundId = "rbxassetid://130972023" | |
231 | sa2.Pitch = 1 | |
232 | sa2.Volume = 5 | |
233 | sa2.Looped = false | |
234 | sa2:Play() | |
235 | local sar2 = Instance.new("Sound",torso) | |
236 | sar2.SoundId = "rbxassetid://153274423" | |
237 | sar2.Pitch = 1 | |
238 | sar2.Volume = 5 | |
239 | sar2.Looped = false | |
240 | sar2:Play() | |
241 | local wave = Instance.new("Part", torso) | |
242 | - | wave.BrickColor = BrickColor.new("Gold") |
242 | + | wave.BrickColor = BrickColor.new("Magenta") |
243 | wave.Anchored = true | |
244 | wave.CanCollide = false | |
245 | wave.Locked = true | |
246 | wave.Size = Vector3.new(1, 1, 1) | |
247 | wave.TopSurface = "Smooth" | |
248 | wave.BottomSurface = "Smooth" | |
249 | wave.Transparency = 0.35 | |
250 | wave.CFrame = HandCF | |
251 | wm = Instance.new("SpecialMesh", wave) | |
252 | wm.MeshId = "rbxassetid://3270017" | |
253 | local wave2 = Instance.new("Part", torso) | |
254 | wave2.BrickColor = BrickColor.new("White") | |
255 | wave2.Anchored = true | |
256 | wave2.CanCollide = false | |
257 | wave2.Locked = true | |
258 | wave2.Size = Vector3.new(1, 1, 1) | |
259 | wave2.TopSurface = "Smooth" | |
260 | wave2.BottomSurface = "Smooth" | |
261 | wave2.Transparency = 0.35 | |
262 | wave2.CFrame = HandCF | |
263 | wm2 = Instance.new("SpecialMesh", wave2) | |
264 | wm2.MeshId = "rbxassetid://3270017" | |
265 | local wave3 = Instance.new("Part", torso) | |
266 | - | wave3.BrickColor = BrickColor.new("Gold") |
266 | + | wave3.BrickColor = BrickColor.new("Magenta") |
267 | wave3.Anchored = true | |
268 | wave3.CanCollide = false | |
269 | wave3.Locked = true | |
270 | wave3.Size = Vector3.new(1, 1, 1) | |
271 | wave3.TopSurface = "Smooth" | |
272 | wave3.BottomSurface = "Smooth" | |
273 | wave3.Transparency = 0.35 | |
274 | wave3.CFrame = HandCF | |
275 | wm3 = Instance.new("SpecialMesh", wave3) | |
276 | wm3.MeshId = "rbxassetid://3270017" | |
277 | coroutine.wrap(function() | |
278 | for i = 1, 14, 1 do | |
279 | valuer = valuer - 0.35 | |
280 | valuer2 = valuer - 0.45 | |
281 | valuer3 = valuer3 - 0.475 | |
282 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
283 | wave.Size = wm.Scale | |
284 | wave.CFrame = HandCF | |
285 | wave.Transparency = i/14 | |
286 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
287 | wave2.Size = wm2.Scale | |
288 | wave2.CFrame = HandCF | |
289 | wave2.Transparency = i/14 | |
290 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
291 | wave3.Size = wm2.Scale | |
292 | wave3.CFrame = HandCF | |
293 | wave3.Transparency = i/14 | |
294 | wait() | |
295 | end | |
296 | wait() | |
297 | wave:Destroy() | |
298 | wave2:Destroy() | |
299 | end)() | |
300 | hum.WalkSpeed = 16 | |
301 | ||
302 | CV="White" | |
303 | ||
304 | p = game.Players.LocalPlayer | |
305 | char = p.Character | |
306 | local txt = Instance.new("BillboardGui", char) | |
307 | txt.Adornee = char .Head | |
308 | txt.Name = "_status" | |
309 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
310 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
311 | local text = Instance.new("TextLabel", txt) | |
312 | text.Size = UDim2.new(10, 0, 7, 0) | |
313 | text.FontSize = "Size24" | |
314 | text.TextScaled = true | |
315 | text.TextTransparency = 0 | |
316 | text.BackgroundTransparency = 1 | |
317 | text.TextTransparency = 0 | |
318 | text.TextStrokeTransparency = 1 | |
319 | text.Font = "Arcade" | |
320 | text.TextStrokeColor3 = Color3.fromRGB(255,0,255) | |
321 | ||
322 | v=Instance.new("Part") | |
323 | v.Name = "ColorBrick" | |
324 | v.Parent=p.Character | |
325 | v.FormFactor="Symmetric" | |
326 | v.Anchored=true | |
327 | v.CanCollide=false | |
328 | v.BottomSurface="Smooth" | |
329 | v.TopSurface="Smooth" | |
330 | v.Size=Vector3.new(10,5,3) | |
331 | v.Transparency=1 | |
332 | v.CFrame=char.Torso.CFrame | |
333 | v.BrickColor=BrickColor.new(CV) | |
334 | v.Transparency=1 | |
335 | - | text.TextColor3 = Color3.fromRGB(255, 215, 0) |
335 | + | text.TextColor3 = Color3.fromRGB(0, 0, 0) |
336 | v.Shape="Block" | |
337 | - | text.Text = "Prepare" |
337 | + | text.Text = "PREPEARE FOR THE PATCHOULI'S PERFECT BOOK" |
338 | coroutine.wrap(function() | |
339 | while wait() do | |
340 | wait(3) | |
341 | - | text.Text = "The Holy Vacuum" |
341 | + | text.Text = "The Holy Book" |
342 | end | |
343 | end)() | |
344 | ||
345 | --//====================================================\\-- | |
346 | --|| CREATED BY SHACKLUSTER | |
347 | --\\====================================================//-- | |
348 | ||
349 | ||
350 | ||
351 | wait(0.2) | |
352 | ||
353 | ||
354 | ||
355 | Player = game:GetService("Players").LocalPlayer | |
356 | PlayerGui = Player.PlayerGui | |
357 | Cam = workspace.CurrentCamera | |
358 | Backpack = Player.Backpack | |
359 | Character = Player.Character | |
360 | Humanoid = Character.Humanoid | |
361 | Mouse = Player:GetMouse() | |
362 | RootPart = Character["HumanoidRootPart"] | |
363 | Torso = Character["Torso"] | |
364 | Head = Character["Head"] | |
365 | RightArm = Character["Right Arm"] | |
366 | LeftArm = Character["Left Arm"] | |
367 | RightLeg = Character["Right Leg"] | |
368 | LeftLeg = Character["Left Leg"] | |
369 | RootJoint = RootPart["RootJoint"] | |
370 | Neck = Torso["Neck"] | |
371 | RightShoulder = Torso["Right Shoulder"] | |
372 | LeftShoulder = Torso["Left Shoulder"] | |
373 | RightHip = Torso["Right Hip"] | |
374 | LeftHip = Torso["Left Hip"] | |
375 | local sick = Instance.new("Sound",Torso) | |
376 | sick.SoundId = "rbxassetid://319444224" | |
377 | sick.Looped = true | |
378 | sick.Pitch = 1 | |
379 | sick.Volume = 1 | |
380 | local succing = {} | |
381 | ||
382 | IT = Instance.new | |
383 | CF = CFrame.new | |
384 | VT = Vector3.new | |
385 | RAD = math.rad | |
386 | C3 = Color3.new | |
387 | UD2 = UDim2.new | |
388 | BRICKC = BrickColor.new | |
389 | ANGLES = CFrame.Angles | |
390 | EULER = CFrame.fromEulerAnglesXYZ | |
391 | COS = math.cos | |
392 | ACOS = math.acos | |
393 | SIN = math.sin | |
394 | ASIN = math.asin | |
395 | ABS = math.abs | |
396 | MRANDOM = math.random | |
397 | FLOOR = math.floor | |
398 | ||
399 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
400 | local NEWMESH = IT(MESH) | |
401 | if MESH == "SpecialMesh" then | |
402 | NEWMESH.MeshType = MESHTYPE | |
403 | if MESHID ~= "nil" and MESHID ~= "" then | |
404 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
405 | end | |
406 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
407 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
408 | end | |
409 | end | |
410 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
411 | NEWMESH.Scale = SCALE | |
412 | NEWMESH.Parent = PARENT | |
413 | return NEWMESH | |
414 | end | |
415 | ||
416 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
417 | local NEWPART = IT("Part") | |
418 | NEWPART.formFactor = FORMFACTOR | |
419 | NEWPART.Reflectance = REFLECTANCE | |
420 | NEWPART.Transparency = TRANSPARENCY | |
421 | NEWPART.CanCollide = false | |
422 | NEWPART.Locked = true | |
423 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
424 | NEWPART.Name = NAME | |
425 | NEWPART.Size = SIZE | |
426 | NEWPART.Position = Torso.Position | |
427 | NEWPART.Material = MATERIAL | |
428 | NEWPART:BreakJoints() | |
429 | NEWPART.Parent = PARENT | |
430 | return NEWPART | |
431 | end | |
432 | ||
433 | ||
434 | --//=================================\\ | |
435 | --|| CUSTOMIZATION | |
436 | --\\=================================// | |
437 | ||
438 | Class_Name = "Template" | |
439 | Weapon_Name = "Add-ons" | |
440 | ||
441 | Custom_Colors = { | |
442 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
443 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
444 | ||
445 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
446 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
447 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
448 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
449 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
450 | ||
451 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
452 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
453 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
454 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
455 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
456 | } | |
457 | ||
458 | ||
459 | Player_Size = 1 --Size of the player. | |
460 | Animation_Speed = 3 | |
461 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
462 | ||
463 | local Speed = 16 | |
464 | local Effects2 = {} | |
465 | ||
466 | --//=================================\\ | |
467 | --|| END OF CUSTOMIZATION | |
468 | --\\=================================// | |
469 | ||
470 | local function weldBetween(a, b) | |
471 | local weldd = Instance.new("ManualWeld") | |
472 | weldd.Part0 = a | |
473 | weldd.Part1 = b | |
474 | weldd.C0 = CFrame.new() | |
475 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
476 | weldd.Parent = a | |
477 | return weldd | |
478 | end | |
479 | ||
480 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
481 | local acs = Instance.new("Part") | |
482 | acs.CanCollide = false | |
483 | acs.Anchored = false | |
484 | acs.Size = Vector3.new(0,0,0) | |
485 | acs.CFrame = attachmentpart.CFrame | |
486 | acs.Parent = Character | |
487 | acs.BrickColor = color | |
488 | local meshs = Instance.new("SpecialMesh") | |
489 | meshs.MeshId = mesh | |
490 | meshs.TextureId = texture | |
491 | meshs.Parent = acs | |
492 | meshs.Scale = scale | |
493 | meshs.Offset = offset | |
494 | weldBetween(attachmentpart,acs) | |
495 | end | |
496 | ||
497 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
498 | if TYPE == "Gem" then | |
499 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
500 | acs.Anchored = false | |
501 | acs.CanCollide = false | |
502 | acs.CFrame = PART.CFrame | |
503 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
504 | weldBetween(PART,acs) | |
505 | elseif TYPE == "Skull" then | |
506 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
507 | acs.Anchored = false | |
508 | acs.CanCollide = false | |
509 | acs.CFrame = PART.CFrame | |
510 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
511 | weldBetween(PART,acs) | |
512 | elseif TYPE == "Eye" then | |
513 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
514 | acs.Anchored = false | |
515 | acs.CanCollide = false | |
516 | acs.CFrame = PART.CFrame | |
517 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
518 | weldBetween(PART,acs) | |
519 | end | |
520 | end | |
521 | ||
522 | --//=================================\\ | |
523 | --|| USEFUL VALUES | |
524 | --\\=================================// | |
525 | ||
526 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
527 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
528 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
529 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
530 | local CO1 = 0 | |
531 | local CO2 = 0 | |
532 | local CO3 = 0 | |
533 | local CO4 = 0 | |
534 | local CHANGEDEFENSE = 0 | |
535 | local CHANGEDAMAGE = 0 | |
536 | local CHANGEMOVEMENT = 0 | |
537 | local ANIM = "Idle" | |
538 | local ATTACK = false | |
539 | local EQUIPPED = false | |
540 | local HOLD = false | |
541 | local COMBO = 1 | |
542 | local LASTPOINT = nil | |
543 | local BLCF = nil | |
544 | local SCFR = nil | |
545 | local STAGGERHITANIM = false | |
546 | local STAGGERANIM = false | |
547 | local STUNANIM = false | |
548 | local CRITCHANCENUMBER = 0 | |
549 | local IDLENUMBER = 0 | |
550 | local DONUMBER = 0 | |
551 | local HANDIDLE = false | |
552 | local SINE = 0 | |
553 | local CHANGE = 2 / Animation_Speed | |
554 | local WALKINGANIM = false | |
555 | local WALK = 0 | |
556 | local DISABLEJUMPING = false | |
557 | local HASBEENBLOCKED = false | |
558 | local STUNDELAYNUMBER = 0 | |
559 | local MANADELAYNUMBER = 0 | |
560 | local SECONDARYMANADELAYNUMBER = 0 | |
561 | local ROBLOXIDLEANIMATION = IT("Animation") | |
562 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
563 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
564 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
565 | local WEAPONGUI = IT("ScreenGui", nil) | |
566 | WEAPONGUI.Name = "Weapon GUI" | |
567 | local WEAPONTOOL = IT("HopperBin", nil) | |
568 | WEAPONTOOL.Name = Weapon_Name | |
569 | local Weapon = IT("Model") | |
570 | Weapon.Name = Weapon_Name | |
571 | local Effects = IT("Folder", Weapon) | |
572 | Effects.Name = "Effects" | |
573 | local ANIMATOR = Humanoid.Animator | |
574 | local ANIMATE = Character.Animate | |
575 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
576 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
577 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
578 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
579 | local UNANCHOR = true | |
580 | local MAGICPARTICLE = "655109389" | |
581 | ||
582 | --//=================================\\ | |
583 | --\\=================================// | |
584 | ||
585 | ||
586 | --//=================================\\ | |
587 | --|| DEBUFFS / BUFFS | |
588 | --\\=================================// | |
589 | ||
590 | local DEFENSECHANGE1 = IT("NumberValue", ChangeStat) | |
591 | DEFENSECHANGE1.Name = "ChangeDefense" | |
592 | DEFENSECHANGE1.Value = 0 | |
593 | ||
594 | local MOVEMENTCHANGE1 = IT("NumberValue", nil) | |
595 | MOVEMENTCHANGE1.Name = "ChangeMovement" | |
596 | MOVEMENTCHANGE1.Value = 0 | |
597 | ||
598 | --//=================================\\ | |
599 | --\\=================================// | |
600 | ||
601 | ||
602 | ||
603 | ||
604 | ||
605 | --//=================================\\ | |
606 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
607 | --\\=================================// | |
608 | ||
609 | ArtificialHB = Instance.new("BindableEvent", script) | |
610 | ArtificialHB.Name = "ArtificialHB" | |
611 | ||
612 | script:WaitForChild("ArtificialHB") | |
613 | ||
614 | frame = Frame_Speed | |
615 | tf = 0 | |
616 | allowframeloss = false | |
617 | tossremainder = false | |
618 | lastframe = tick() | |
619 | script.ArtificialHB:Fire() | |
620 | ||
621 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
622 | tf = tf + s | |
623 | if tf >= frame then | |
624 | if allowframeloss then | |
625 | script.ArtificialHB:Fire() | |
626 | lastframe = tick() | |
627 | else | |
628 | for i = 1, math.floor(tf / frame) do | |
629 | script.ArtificialHB:Fire() | |
630 | end | |
631 | lastframe = tick() | |
632 | end | |
633 | if tossremainder then | |
634 | tf = 0 | |
635 | else | |
636 | tf = tf - frame * math.floor(tf / frame) | |
637 | end | |
638 | end | |
639 | end) | |
640 | ||
641 | --//=================================\\ | |
642 | --\\=================================// | |
643 | ||
644 | ||
645 | ||
646 | ||
647 | ||
648 | --//=================================\\ | |
649 | --|| SOME FUNCTIONS | |
650 | --\\=================================// | |
651 | ||
652 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
653 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
654 | end | |
655 | ||
656 | function PositiveAngle(NUMBER) | |
657 | if NUMBER >= 0 then | |
658 | NUMBER = 0 | |
659 | end | |
660 | return NUMBER | |
661 | end | |
662 | ||
663 | function NegativeAngle(NUMBER) | |
664 | if NUMBER <= 0 then | |
665 | NUMBER = 0 | |
666 | end | |
667 | return NUMBER | |
668 | end | |
669 | ||
670 | function Swait(NUMBER) | |
671 | if NUMBER == 0 or NUMBER == nil then | |
672 | ArtificialHB.Event:wait() | |
673 | else | |
674 | for i = 1, NUMBER do | |
675 | ArtificialHB.Event:wait() | |
676 | end | |
677 | end | |
678 | end | |
679 | ||
680 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
681 | local label = IT("TextLabel") | |
682 | label.BackgroundTransparency = 1 | |
683 | label.Size = UD2(1, 0, 1, 0) | |
684 | label.Position = UD2(0, 0, 0, 0) | |
685 | label.TextColor3 = C3(255, 255, 255) | |
686 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
687 | label.TextTransparency = TRANSPARENCY | |
688 | label.FontSize = TEXTFONTSIZE | |
689 | label.Font = TEXTFONT | |
690 | label.BorderSizePixel = BORDERSIZEPIXEL | |
691 | label.TextScaled = true | |
692 | label.Text = TEXT | |
693 | label.Name = NAME | |
694 | label.Parent = PARENT | |
695 | return label | |
696 | end | |
697 | ||
698 | function NoOutlines(PART) | |
699 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
700 | end | |
701 | ||
702 | ||
703 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
704 | local NEWWELD = IT(TYPE) | |
705 | NEWWELD.Part0 = PART0 | |
706 | NEWWELD.Part1 = PART1 | |
707 | NEWWELD.C0 = C0 | |
708 | NEWWELD.C1 = C1 | |
709 | NEWWELD.Parent = PARENT | |
710 | return NEWWELD | |
711 | end | |
712 | ||
713 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
714 | local NEWSOUND = nil | |
715 | coroutine.resume(coroutine.create(function() | |
716 | NEWSOUND = IT("Sound", PARENT) | |
717 | NEWSOUND.Volume = VOLUME | |
718 | NEWSOUND.Pitch = PITCH | |
719 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
720 | Swait() | |
721 | NEWSOUND:play() | |
722 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
723 | end)) | |
724 | return NEWSOUND | |
725 | end | |
726 | ||
727 | --//=================================\\ | |
728 | --\\=================================// | |
729 | ||
730 | ||
731 | --//=================================\\ | |
732 | --|| WEAPON CREATION | |
733 | --\\=================================// | |
734 | ||
735 | if Player_Size ~= 1 then | |
736 | for _, v in pairs (Weapon:GetChildren()) do | |
737 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
738 | local p1 = v.Part1 | |
739 | v.Part1 = nil | |
740 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
741 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
742 | v.Part1 = p1 | |
743 | elseif v.ClassName == "Part" then | |
744 | for _, b in pairs (v:GetChildren()) do | |
745 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
746 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
747 | end | |
748 | end | |
749 | end | |
750 | end | |
751 | end | |
752 | ||
753 | for _, c in pairs(Weapon:GetChildren()) do | |
754 | if c.ClassName == "Part" then | |
755 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
756 | end | |
757 | end | |
758 | ||
759 | Weapon.Parent = Character | |
760 | ||
761 | Humanoid.Died:connect(function() | |
762 | ATTACK = true | |
763 | end) | |
764 | ||
765 | print(Class_Name.." loaded.") | |
766 | ||
767 | --//=================================\\ | |
768 | --\\=================================// | |
769 | ||
770 | local mesh = IT("SpecialMesh",backpack) | |
771 | - | local backpack = IT("Part",Weapon) |
771 | + | mesh.MeshId = "rbxassetid://1136139" |
772 | - | backpack.Size = VT(0.15,0.15,0.15) |
772 | + | mesh.TextureId = "http://www.roblox.com/asset/?id=1136139" |
773 | weldBetween(Torso,backpack) | |
774 | - | mesh.MeshId = "rbxassetid://84313478" |
774 | + | |
775 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=84313638" |
775 | + | |
776 | - | backpack.CFrame = Torso.CFrame * CF(0,0.2,1) |
776 | + | |
777 | - | backpack.BrickColor = BRICKC("Black") |
777 | + | |
778 | mesh.MeshId = "http://www.roblox.com/asset/?id=84313555" | |
779 | mesh.TextureId = "http://www.roblox.com/asset/?id=9644371" | |
780 | mesh.Scale = VT(2,2,2) | |
781 | mesh.Offset = VT(0, -0.4, -0.7) | |
782 | hose.CFrame = Torso.CFrame * CF(1.5,0.5,0.2) * ANGLES(RAD(90),RAD(35),RAD(180)) | |
783 | hose.BrickColor = BRICKC("Black") | |
784 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=84313638" |
784 | + | |
785 | ||
786 | local succ = IT("Part",Weapon) | |
787 | succ.Size = VT(2,2,2) | |
788 | succ.CanCollide = false | |
789 | succ.CFrame = Torso.CFrame * CF(1.5,1.3,-4) * ANGLES(RAD(90),RAD(0),RAD(180)) | |
790 | succ.Transparency = 1 | |
791 | succ.BrickColor = BRICKC("Gold") | |
792 | weldBetween(Torso,succ) | |
793 | ||
794 | for _, c in pairs(Weapon:GetChildren()) do | |
795 | if c.ClassName == "Part" then | |
796 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
797 | end | |
798 | end | |
799 | ||
800 | local EyeSizes={ | |
801 | NumberSequenceKeypoint.new(0,0.5,0), | |
802 | NumberSequenceKeypoint.new(1,0.2,0) | |
803 | } | |
804 | local EyeTrans={ | |
805 | NumberSequenceKeypoint.new(0,0,0), | |
806 | NumberSequenceKeypoint.new(1,1,0) | |
807 | } | |
808 | local PE=Instance.new("ParticleEmitter") | |
809 | PE.LightEmission=0.3 | |
810 | PE.Size=NumberSequence.new(EyeSizes) | |
811 | PE.Transparency=NumberSequence.new(EyeTrans) | |
812 | PE.Rotation=NumberRange.new(0,360) | |
813 | PE.LockedToPart = false | |
814 | PE.Speed = NumberRange.new(0,0,0) | |
815 | PE.ZOffset = 0.3 | |
816 | PE.Rate = 999 | |
817 | PE.VelocitySpread = 25 | |
818 | PE.Name = "Particles" | |
819 | ||
820 | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) | |
821 | local particle = nil | |
822 | coroutine.resume(coroutine.create(function(PART) | |
823 | particle = PE:Clone() | |
824 | Swait() | |
825 | particle.Rate = 999 | |
826 | particle.Parent = art | |
827 | particle.Acceleration = accel | |
828 | if type == "Fire" then | |
829 | local EyeSizes={ | |
830 | NumberSequenceKeypoint.new(0,size,size/2), | |
831 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
832 | } | |
833 | particle.Size = NumberSequence.new(EyeSizes) | |
834 | elseif type == "Smoke" then | |
835 | local EyeSizes={ | |
836 | NumberSequenceKeypoint.new(0,size/5,0), | |
837 | NumberSequenceKeypoint.new(1,size*2,0.5) | |
838 | } | |
839 | particle.Size = NumberSequence.new(EyeSizes) | |
840 | elseif type == "Solid" then | |
841 | local EyeSizes={ | |
842 | NumberSequenceKeypoint.new(0,size,0), | |
843 | NumberSequenceKeypoint.new(1,size,0) | |
844 | } | |
845 | particle.Size = NumberSequence.new(EyeSizes) | |
846 | end | |
847 | particle.Lifetime=NumberRange.new(lifetime) | |
848 | particle.Drag = drag | |
849 | if locked == true then | |
850 | particle.LockedToPart = true | |
851 | end | |
852 | particle.Speed = NumberRange.new(speed*0.8,speed) | |
853 | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" | |
854 | particle.Enabled = isenabledbydefault | |
855 | particle.Color = ColorSequence.new(Color3.fromRGB(255, 215, 0)) | |
856 | end)) | |
857 | return particle | |
858 | end | |
859 | ||
860 | local poop = CreateParticles(succ,VT(0,0,0),5,2,"Smoke",false,false,5,35) | |
861 | local poop2 = CreateParticles(succ,VT(0,0,0),5,1,"Smoke",false,false,2,15) | |
862 | ||
863 | --//=================================\\ | |
864 | --|| DAMAGING | |
865 | --\\=================================// | |
866 | ||
867 | function succnearest(position,range) | |
868 | for i,v in ipairs(workspace:GetChildren()) do | |
869 | local body = v:GetChildren() | |
870 | for part = 1, #body do | |
871 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
872 | if(body[part].Position - position).Magnitude < range then | |
873 | local bv = Instance.new("BodyVelocity") | |
874 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
875 | bv.velocity = CF(body[part].Position,succ.Position).lookVector*80 | |
876 | bv.Parent = body[part] | |
877 | bv.Name = "SUCC" | |
878 | game:GetService("Debris"):AddItem(bv, 0.1) | |
879 | end | |
880 | end | |
881 | end | |
882 | if v.ClassName == "Part" then | |
883 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
884 | local bv = Instance.new("BodyVelocity") | |
885 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
886 | bv.velocity = CF(v.Position,succ.Position).lookVector*80 | |
887 | bv.Parent = v | |
888 | bv.Name = "SUCC" | |
889 | game:GetService("Debris"):AddItem(bv, 0.1) | |
890 | end | |
891 | end | |
892 | end | |
893 | end | |
894 | ||
895 | function cover(position,range) | |
896 | for i,v in ipairs(workspace:GetChildren()) do | |
897 | local body = v:GetChildren() | |
898 | for part = 1, #body do | |
899 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
900 | if(body[part].Position - position).Magnitude < range then | |
901 | CreateParticles(body[part],VT(0,-2,0),5,1,"Smoke",true,false,0.3,0) | |
902 | if v:FindFirstChild("Humanoid") then | |
903 | v.Humanoid.PlatformStand = true | |
904 | end | |
905 | end | |
906 | end | |
907 | end | |
908 | if v.ClassName == "Part" then | |
909 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
910 | CreateParticles(v,VT(0,-2,0),5,1,"Smoke",true,false,0.3,0) | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | ||
916 | function cough() | |
917 | CreateSound("573314737", succ, 3, 1) | |
918 | poop.VelocitySpread = 25 | |
919 | poop:Emit(150) | |
920 | cover(CF(succ.Position)*CF(0,0,-1).p,15) | |
921 | end | |
922 | - | CreateSound("328460122", succ, 3, 1) |
922 | + | |
923 | --//=================================\\ | |
924 | --|| ATTACK FUNCTIONS AND STUFF | |
925 | --\\=================================// | |
926 | ||
927 | function CheckTableForString(Table, String) | |
928 | for i, v in pairs(Table) do | |
929 | if string.find(string.lower(String), string.lower(v)) then | |
930 | return true | |
931 | end | |
932 | end | |
933 | return false | |
934 | end | |
935 | ||
936 | function CheckIntangible(Hit) | |
937 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
938 | if Hit and Hit.Parent then | |
939 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
940 | return true | |
941 | end | |
942 | end | |
943 | return false | |
944 | end | |
945 | ||
946 | Debris = game:GetService("Debris") | |
947 | ||
948 | function CastRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
949 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
950 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
951 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
952 | if RayHit and CheckIntangible(RayHit) then | |
953 | if DelayIfHit then | |
954 | wait() | |
955 | end | |
956 | RayHit, RayPos, RayNormal = CastRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
957 | end | |
958 | return RayHit, RayPos, RayNormal | |
959 | end | |
960 | ||
961 | function turnto(pos,part) | |
962 | part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
963 | end | |
964 | ||
965 | function vacuum() | |
966 | sick:Play() | |
967 | local nado = IT("Part") | |
968 | local mesh = IT("SpecialMesh",nado) | |
969 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
970 | nado.Transparency = 0.5 | |
971 | nado.CanCollide = false | |
972 | nado.Anchored = true | |
973 | local loop = 0 | |
974 | succing = {} | |
975 | local harm = succ.Touched:Connect(function(hit) | |
976 | if hit.Anchored == false then | |
977 | hit:remove() | |
978 | CreateSound("261732529", succ, 3, 1) | |
979 | poop2:Emit(1) | |
980 | end | |
981 | end) | |
982 | repeat | |
983 | Swait() | |
984 | loop = loop + 75 | |
985 | nado.Parent = Effects | |
986 | local RayHit,RayPos = CastRay(succ.Position, Mouse.Hit.p, 1000, Character, false) | |
987 | local distance = (succ.Position - RayPos).magnitude | |
988 | mesh.Scale = VT(distance/12,distance/3.2,distance/12) | |
989 | nado.CFrame = CFrame.new(succ.Position, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(-90),RAD(loop),RAD(0)) | |
990 | turnto(Mouse.Hit.p,RootPart) | |
991 | succnearest(RayPos,distance/2.5) | |
992 | if RayHit ~= nil then | |
993 | if RayHit.Anchored == false then | |
994 | local bv = Instance.new("BodyVelocity") | |
995 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
996 | bv.velocity = CF(RayHit.Position,succ.Position).lookVector*80 | |
997 | bv.Parent = RayHit | |
998 | bv.Name = "SUCC" | |
999 | game:GetService("Debris"):AddItem(bv, 0.1) | |
1000 | end | |
1001 | end | |
1002 | local TotalSuccs = math.ceil(distance / 65) | |
1003 | local Direction = CFrame.new(RayPos, succ.Position).lookVector | |
1004 | for i = 1, TotalSuccs do | |
1005 | local NewPos = (RayPos + (Direction * (distance * (i / TotalSuccs)))) | |
1006 | succnearest(NewPos,distance/(i*2.5)) | |
1007 | end | |
1008 | until HOLD == false | |
1009 | if #succing>0 then | |
1010 | for e=1,#succing do | |
1011 | if succing[e]~=nil then | |
1012 | local Thing=succing[e] | |
1013 | Thing:remove() | |
1014 | table.remove(succing,e) | |
1015 | end | |
1016 | end | |
1017 | end | |
1018 | succing = {} | |
1019 | harm:disconnect() | |
1020 | nado:remove() | |
1021 | sick:Stop() | |
1022 | end | |
1023 | ||
1024 | --//=================================\\ | |
1025 | --|| ASSIGN THINGS TO KEYS | |
1026 | --\\=================================// | |
1027 | ||
1028 | Humanoid.Changed:connect(function(Jump) | |
1029 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
1030 | Humanoid.Jump = false | |
1031 | end | |
1032 | end) | |
1033 | ||
1034 | function MouseDown(Mouse) | |
1035 | HOLD = true | |
1036 | vacuum() | |
1037 | end | |
1038 | ||
1039 | function MouseUp(Mouse) | |
1040 | HOLD = false | |
1041 | end | |
1042 | ||
1043 | function KeyDown(Key) | |
1044 | if Key == "t" and ATTACK == false then | |
1045 | CreateSound("743953262", Head, 3, 1) | |
1046 | end | |
1047 | if Key == "e" and ATTACK == false then | |
1048 | cough() | |
1049 | end | |
1050 | end | |
1051 | ||
1052 | function KeyUp(Key) | |
1053 | end | |
1054 | ||
1055 | Mouse.Button1Down:connect(function(NEWKEY) | |
1056 | MouseDown(NEWKEY) | |
1057 | end) | |
1058 | Mouse.Button1Up:connect(function(NEWKEY) | |
1059 | MouseUp(NEWKEY) | |
1060 | end) | |
1061 | Mouse.KeyDown:connect(function(NEWKEY) | |
1062 | KeyDown(NEWKEY) | |
1063 | end) | |
1064 | Mouse.KeyUp:connect(function(NEWKEY) | |
1065 | KeyUp(NEWKEY) | |
1066 | end) | |
1067 | ||
1068 | --//=================================\\ | |
1069 | --\\=================================// | |
1070 | ||
1071 | ||
1072 | function unanchor() | |
1073 | if UNANCHOR == true then | |
1074 | g = Character:GetChildren() | |
1075 | for i = 1, #g do | |
1076 | if g[i].ClassName == "Part" then | |
1077 | g[i].Anchored = false | |
1078 | end | |
1079 | end | |
1080 | end | |
1081 | end | |
1082 | ||
1083 | ||
1084 | --//=================================\\ | |
1085 | --|| WRAP THE WHOLE SCRIPT UP | |
1086 | --\\=================================// | |
1087 | local Music = Instance.new("Sound") | |
1088 | ||
1089 | Music.Name = "Sound" | |
1090 | Music.SoundId = "http://roblox.com/asset/?id=185608503" | |
1091 | Music.Volume = 1000 | |
1092 | Music.Looped = true | |
1093 | Music.Parent = Torso | |
1094 | Music:play() | |
1095 | - | Music.SoundId = "http://roblox.com/asset/?id=200829826" |
1095 | + | |
1096 | - | Music.Volume = 10 |
1096 | + | |
1097 | Humanoid.Changed:connect(function(Jump) | |
1098 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
1099 | Humanoid.Jump = false | |
1100 | end | |
1101 | end) | |
1102 | ||
1103 | while true do | |
1104 | Swait() | |
1105 | if #Effects2>0 then | |
1106 | for e=1,#Effects2 do | |
1107 | if Effects2[e]~=nil then | |
1108 | local Thing=Effects2[e] | |
1109 | if Thing~=nil then | |
1110 | local Part=Thing[1] | |
1111 | local Mode=Thing[2] | |
1112 | local Delay=Thing[3] | |
1113 | local IncX=Thing[4] | |
1114 | local IncY=Thing[5] | |
1115 | local IncZ=Thing[6] | |
1116 | local Part2=Thing[8] | |
1117 | if Thing[1].Transparency<=1 then | |
1118 | if Thing[2]=="Block1" then | |
1119 | Thing[1].CFrame=Thing[1].CFrame | |
1120 | Mesh=Thing[1].Mesh | |
1121 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1122 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1123 | elseif Thing[2]=="Cylinder" then | |
1124 | Mesh=Thing[1].Mesh | |
1125 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1126 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1127 | elseif Thing[2]=="Blood" then | |
1128 | Mesh=Thing[7] | |
1129 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
1130 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1131 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1132 | elseif Thing[2]=="Elec" then | |
1133 | Mesh=Thing[1].Mesh | |
1134 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
1135 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1136 | elseif Thing[2]=="Disappear" then | |
1137 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1138 | end | |
1139 | else | |
1140 | Part.Parent=nil | |
1141 | table.remove(Effects2,e) | |
1142 | end | |
1143 | end | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | unanchor() | |
1148 | Humanoid.MaxHealth = "inf" | |
1149 | Humanoid.Health = "inf" | |
1150 | if Rooted == false then | |
1151 | Disable_Jump = false | |
1152 | Humanoid.WalkSpeed = Speed | |
1153 | elseif Rooted == true then | |
1154 | Disable_Jump = true | |
1155 | Humanoid.WalkSpeed = 0 | |
1156 | end | |
1157 | if sick == nil then | |
1158 | sick = Instance.new("Sound",Torso) | |
1159 | sick.SoundId = "rbxassetid://319444224" | |
1160 | sick.Looped = true | |
1161 | sick.Pitch = 1 | |
1162 | sick.Volume = 1 | |
1163 | end | |
1164 | if #succing>0 then | |
1165 | for e=1,#succing do | |
1166 | if succing[e]~=nil then | |
1167 | local Thing=succing[e] | |
1168 | Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*80 | |
1169 | if HOLD == false then | |
1170 | Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*0 | |
1171 | Thing:remove() | |
1172 | table.remove(succing,e) | |
1173 | end | |
1174 | end | |
1175 | end | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | --//=================================\\ | |
1180 | --\\=================================// | |
1181 | ||
1182 | ||
1183 | ||
1184 | ||
1185 | ||
1186 | --//====================================================\\-- | |
1187 | --|| END OF SCRIPT | |
1188 | --\\==================================================== |