SHOW:
|
|
- or go back to the newest paste.
1 | ---GhasterBlasters by sans----- | |
2 | ---MUST BE R15 TO USE!!!---- | |
3 | local num = 0 | |
4 | local p = game:GetService("Players").LocalPlayer | |
5 | local char = p.Character | |
6 | local rad = math.rad | |
7 | local hum = char.Humanoid | |
8 | --------------------------------------------------- | |
9 | local LeftUpperArm = char.LeftUpperArm | |
10 | local LeftShoulder = char.LeftUpperArm.LeftShoulder | |
11 | local LeftLowerArm = char.LeftLowerArm | |
12 | local LeftElbow = char.LeftLowerArm.LeftElbow | |
13 | -------------------------------------------------------- | |
14 | local LeftUpperLeg = char.LeftUpperLeg | |
15 | local LeftHip = char.LeftUpperLeg.LeftHip | |
16 | local LeftLowerLeg = char.LeftLowerLeg | |
17 | local LeftKnee = char.LeftLowerLeg.LeftKnee | |
18 | ---------------------------------------------------------- | |
19 | local RightUpperArm = char.RightUpperArm | |
20 | local RightShoulder = char.RightUpperArm.RightShoulder | |
21 | local RightLowerArm = char.RightLowerArm | |
22 | local RightElbow = char.RightLowerArm.RightElbow | |
23 | ---------------------------------------------------------- | |
24 | local RightUpperLeg = char.RightUpperLeg | |
25 | local RightHip = char.RightUpperLeg.RightHip | |
26 | local RightLowerLeg = char.RightLowerLeg | |
27 | local RightKnee = char.RightLowerLeg.RightKnee | |
28 | ---------------------------------------------------------- | |
29 | ||
30 | local UpperTorso = char.UpperTorso | |
31 | local LowerTorso = char.LowerTorso | |
32 | local Root = char.LowerTorso.Root | |
33 | -------------------------------------------- | |
34 | local Head = char.Head | |
35 | local Neck = char.Head.Neck | |
36 | local RootPart = char.HumanoidRootPart | |
37 | local LeftHand = char.LeftHand | |
38 | local RightHand = char.RightHand | |
39 | local LeftFoot = char.LeftFoot | |
40 | local RightFoot = char.RightFoot | |
41 | --------------------------------------------- | |
42 | ypcall(function() | |
43 | char.Shirt:Destroy() | |
44 | char.Pants:Destroy() | |
45 | shirt = Instance.new("Shirt", char) | |
46 | shirt.Name = "Shirt" | |
47 | pants = Instance.new("Pants", char) | |
48 | pants.Name = "Pants" | |
49 | char.Shirt.ShirtTemplate = "rbxassetid://1601498037" | |
50 | char.Pants.PantsTemplate = "rbxassetid://315964941" | |
51 | char.Head.face.Texture = "rbxassetid://871052201" | |
52 | end) | |
53 | ||
54 | char["Body Colors"].HeadColor = BrickColor.new("White") | |
55 | char["Body Colors"].TorsoColor = BrickColor.new("White") | |
56 | char["Body Colors"].LeftArmColor = BrickColor.new("White") | |
57 | char["Body Colors"].RightArmColor = BrickColor.new("White") | |
58 | ||
59 | hum:SetStateEnabled("Dead",true) | |
60 | hum:SetStateEnabled(Enum.HumanoidStateType.Dead, true) | |
61 | local v3 = Vector3.new | |
62 | local idle = true | |
63 | local walk = true | |
64 | local walk1 = true | |
65 | local walkon = true | |
66 | local ns = NumberSequence.new | |
67 | local new = Instance.new | |
68 | local nr = NumberRange.new | |
69 | local bc =BrickColor.new | |
70 | local UpperTorso = char.UpperTorso | |
71 | local Waist = char.UpperTorso.Waist | |
72 | local mouse = p:GetMouse() | |
73 | local Blasters = true | |
74 | local debounce = true | |
75 | hum.MaxHealth = 10000000000000000000000 | |
76 | hum.Health = hum.MaxHealth | |
77 | local equiped = false | |
78 | new("ForceField",char).Visible = false | |
79 | local Create = LoadLibrary("RbxUtility").Create | |
80 | function RemoveOutlines(part) | |
81 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
82 | end | |
83 | CFuncs = { | |
84 | ["Part"] = { | |
85 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
86 | local Part = Create("Part"){ | |
87 | Parent = Parent, | |
88 | Reflectance = Reflectance, | |
89 | Transparency = Transparency, | |
90 | CanCollide = false, | |
91 | Locked = true, | |
92 | BrickColor = BrickColor.new(tostring(BColor)), | |
93 | Name = Name, | |
94 | Size = Size, | |
95 | Material = Material, | |
96 | } | |
97 | RemoveOutlines(Part) | |
98 | return Part | |
99 | end; | |
100 | }; | |
101 | ||
102 | ["Mesh"] = { | |
103 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
104 | local Msh = Create(Mesh){ | |
105 | Parent = Part, | |
106 | Offset = OffSet, | |
107 | Scale = Scale, | |
108 | } | |
109 | if Mesh == "SpecialMesh" then | |
110 | Msh.MeshType = MeshType | |
111 | Msh.MeshId = MeshId | |
112 | end | |
113 | return Msh | |
114 | end; | |
115 | }; | |
116 | ||
117 | ["Mesh"] = { | |
118 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
119 | local Msh = Create(Mesh){ | |
120 | Parent = Part, | |
121 | Offset = OffSet, | |
122 | Scale = Scale, | |
123 | } | |
124 | if Mesh == "SpecialMesh" then | |
125 | Msh.MeshType = MeshType | |
126 | Msh.MeshId = MeshId | |
127 | end | |
128 | return Msh | |
129 | end; | |
130 | }; | |
131 | ||
132 | ["Weld"] = { | |
133 | Create = function(Parent, Part0, Part1, C0, C1) | |
134 | local Weld = Create("Weld"){ | |
135 | Parent = Parent, | |
136 | Part0 = Part0, | |
137 | Part1 = Part1, | |
138 | C0 = C0, | |
139 | C1 = C1, | |
140 | } | |
141 | return Weld | |
142 | end; | |
143 | }; | |
144 | ||
145 | ["Sound"] = { | |
146 | Create = function(id, par, vol, pit) | |
147 | coroutine.resume(coroutine.create(function() | |
148 | local S = Create("Sound"){ | |
149 | Volume = vol, | |
150 | Pitch = pit or 1, | |
151 | SoundId = id, | |
152 | Parent = par or workspace, | |
153 | } | |
154 | wait() | |
155 | S:play() | |
156 | game:GetService("Debris"):AddItem(S, 6) | |
157 | end)) | |
158 | end; | |
159 | }; | |
160 | ||
161 | ["ParticleEmitter"] = { | |
162 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
163 | local fp = Create("ParticleEmitter"){ | |
164 | Parent = Parent, | |
165 | Color = ColorSequence.new(Color1, Color2), | |
166 | LightEmission = LightEmission, | |
167 | Size = Size, | |
168 | Texture = Texture, | |
169 | Transparency = Transparency, | |
170 | ZOffset = ZOffset, | |
171 | Acceleration = Accel, | |
172 | Drag = Drag, | |
173 | LockedToPart = LockedToPart, | |
174 | VelocityInheritance = VelocityInheritance, | |
175 | EmissionDirection = EmissionDirection, | |
176 | Enabled = Enabled, | |
177 | Lifetime = LifeTime, | |
178 | Rate = Rate, | |
179 | Rotation = Rotation, | |
180 | RotSpeed = RotSpeed, | |
181 | Speed = Speed, | |
182 | VelocitySpread = VelocitySpread, | |
183 | } | |
184 | return fp | |
185 | end; | |
186 | }; | |
187 | ||
188 | CreateTemplate = { | |
189 | ||
190 | }; | |
191 | } | |
192 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
193 | if hit.Parent == nil then | |
194 | return | |
195 | end | |
196 | local h = hit.Parent:FindFirstChild("Humanoid") | |
197 | for _, v in pairs(hit.Parent:children()) do | |
198 | if v:IsA("Humanoid") then | |
199 | h = v | |
200 | end | |
201 | end | |
202 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
203 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
204 | if hit.Parent.DebounceHit.Value == true then | |
205 | return | |
206 | end | |
207 | end | |
208 | local c = Create("ObjectValue"){ | |
209 | Name = "creator", | |
210 | Value = game:service("Players").LocalPlayer, | |
211 | Parent = h, | |
212 | } | |
213 | game:GetService("Debris"):AddItem(c, .5) | |
214 | if HitSound ~= nil and HitPitch ~= nil then | |
215 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
216 | end | |
217 | local Damage = math.random(minim, maxim) | |
218 | local blocked = false | |
219 | local block = hit.Parent:findFirstChild("Block") | |
220 | if block ~= nil then | |
221 | if block.className == "IntValue" then | |
222 | if block.Value > 0 then | |
223 | blocked = true | |
224 | block.Value = block.Value - 1 | |
225 | print(block.Value) | |
226 | end | |
227 | end | |
228 | end | |
229 | if blocked == false then | |
230 | h.Health = h.Health - Damage | |
231 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
232 | else | |
233 | h.Health = h.Health - (Damage / 2) | |
234 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
235 | end | |
236 | if Type == "Knockdown" then | |
237 | local hum = hit.Parent.Humanoid | |
238 | hum.PlatformStand = true | |
239 | coroutine.resume(coroutine.create(function(HHumanoid) | |
240 | swait(1) | |
241 | HHumanoid.PlatformStand = false | |
242 | end), hum) | |
243 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
244 | local bodvol = Create("BodyVelocity"){ | |
245 | velocity = angle * knockback, | |
246 | P = 5000, | |
247 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
248 | Parent = hit, | |
249 | } | |
250 | local rl = Create("BodyAngularVelocity"){ | |
251 | P = 3000, | |
252 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
253 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
254 | Parent = hit, | |
255 | } | |
256 | game:GetService("Debris"):AddItem(bodvol, .5) | |
257 | game:GetService("Debris"):AddItem(rl, .5) | |
258 | elseif Type == "Normal" then | |
259 | local vp = Create("BodyVelocity"){ | |
260 | P = 500, | |
261 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
262 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
263 | } | |
264 | if knockback > 0 then | |
265 | vp.Parent = hit.Parent.Torso | |
266 | end | |
267 | game:GetService("Debris"):AddItem(vp, .5) | |
268 | elseif Type == "Up" then | |
269 | local bodyVelocity = Create("BodyVelocity"){ | |
270 | velocity = Vector3.new(0, 20, 0), | |
271 | P = 5000, | |
272 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
273 | Parent = hit, | |
274 | } | |
275 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
276 | elseif Type == "DarkUp" then | |
277 | coroutine.resume(coroutine.create(function() | |
278 | for i = 0, 1, 0.1 do | |
279 | swait() | |
280 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
281 | end | |
282 | end)) | |
283 | local bodyVelocity = Create("BodyVelocity"){ | |
284 | velocity = Vector3.new(0, 20, 0), | |
285 | P = 5000, | |
286 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
287 | Parent = hit, | |
288 | } | |
289 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
290 | elseif Type == "Snare" then | |
291 | local bp = Create("BodyPosition"){ | |
292 | P = 2000, | |
293 | D = 100, | |
294 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
295 | position = hit.Parent.Torso.Position, | |
296 | Parent = hit.Parent.Torso, | |
297 | } | |
298 | game:GetService("Debris"):AddItem(bp, 1) | |
299 | elseif Type == "Freeze" then | |
300 | local BodPos = Create("BodyPosition"){ | |
301 | P = 50000, | |
302 | D = 1000, | |
303 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
304 | position = hit.Parent.Torso.Position, | |
305 | Parent = hit.Parent.Torso, | |
306 | } | |
307 | local BodGy = Create("BodyGyro") { | |
308 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
309 | P = 20e+003, | |
310 | Parent = hit.Parent.Torso, | |
311 | cframe = hit.Parent.Torso.CFrame, | |
312 | } | |
313 | hit.Parent.Torso.Anchored = true | |
314 | coroutine.resume(coroutine.create(function(Part) | |
315 | swait(1.5) | |
316 | Part.Anchored = false | |
317 | end), hit.Parent.Torso) | |
318 | game:GetService("Debris"):AddItem(BodPos, 3) | |
319 | game:GetService("Debris"):AddItem(BodGy, 3) | |
320 | end | |
321 | local debounce = Create("BoolValue"){ | |
322 | Name = "DebounceHit", | |
323 | Parent = hit.Parent, | |
324 | Value = true, | |
325 | } | |
326 | game:GetService("Debris"):AddItem(debounce, Delay) | |
327 | c = Create("ObjectValue"){ | |
328 | Name = "creator", | |
329 | Value = Player, | |
330 | Parent = h, | |
331 | } | |
332 | game:GetService("Debris"):AddItem(c, .5) | |
333 | end | |
334 | end | |
335 | ||
336 | function ShowDamage(Pos, Text, Time, Color) | |
337 | local Rate = (1 / 30) | |
338 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
339 | local Text = (Text or "") | |
340 | local Time = (Time or 2) | |
341 | local Color = (Color or Color3.new(1, 0, 1)) | |
342 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
343 | EffectPart.Anchored = true | |
344 | local BillboardGui = Create("BillboardGui"){ | |
345 | Size = UDim2.new(3, 0, 3, 0), | |
346 | Adornee = EffectPart, | |
347 | Parent = EffectPart, | |
348 | } | |
349 | local TextLabel = Create("TextLabel"){ | |
350 | BackgroundTransparency = 1, | |
351 | Size = UDim2.new(1, 0, 1, 0), | |
352 | Text = Text, | |
353 | Font = "SciFi", | |
354 | TextColor3 = Color, | |
355 | TextScaled = true, | |
356 | Parent = BillboardGui, | |
357 | } | |
358 | game.Debris:AddItem(EffectPart, (Time)) | |
359 | EffectPart.Parent = game:GetService("Workspace") | |
360 | delay(0, function() | |
361 | local Frames = (Time / Rate) | |
362 | for Frame = 1, Frames do | |
363 | wait(Rate) | |
364 | local Percent = (Frame / Frames) | |
365 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
366 | TextLabel.TextTransparency = Percent | |
367 | end | |
368 | if EffectPart and EffectPart.Parent then | |
369 | EffectPart:Destroy() | |
370 | end | |
371 | end) | |
372 | end | |
373 | ||
374 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
375 | for _, c in pairs(workspace:children()) do | |
376 | local hum = c:findFirstChild("Humanoid") | |
377 | if hum ~= nil then | |
378 | local head = c:findFirstChild("Torso") | |
379 | if head ~= nil then | |
380 | local targ = head.Position - Part.Position | |
381 | local mag = targ.magnitude | |
382 | if mag <= Magnitude and c.Name ~= Player.Name then | |
383 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
384 | end | |
385 | end | |
386 | end | |
387 | end | |
388 | end | |
389 | ||
390 | ||
391 | - | local hat=Part(.5,1,1.02,'Really white',0,false,false,pchar) |
391 | + | local hat=mesh(.5,1,1.02,'Really white',0,false,false,pchar) |
392 | Mesh(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05) | |
393 | Weld(pchar.Head,hat,0,-.25,0,0,0,0,p) | |
394 | -- cape mesh cause lazy :p | |
395 | local cpw=Part(.2,.2,.2,'White',1,false,false,pchar) | |
396 | Weld(torso,cpw,0,-1,-.5,0,0,0,p) | |
397 | local cp=Part(.1,.1,.1,'Really white',0,false,false,pchar) | |
398 | Mesh(cp,'http://www.roblox.com/asset/?id=114046169',1.3,1.3,1.3) | |
399 | cape = Weld(cpw,cp,0,1.2,0,0,0,0,p) | |
400 | ||
401 | EffectModel = Create("Model"){ | |
402 | Parent = Character, | |
403 | Name = "Effects", | |
404 | } | |
405 | ||
406 | local Megalo = new("Sound",game.workspace.Camera) | |
407 | local effectaa = new("ChorusSoundEffect",Megalo) | |
408 | effectaa.Depth = 0.1 | |
409 | effectaa.Mix = 0.2 | |
410 | Megalo.SoundId = "rbxassetid://975112789" | |
411 | Megalo.Volume = 4 | |
412 | Megalo.Pitch = 1.1 | |
413 | Megalo.Looped = true | |
414 | Megalo.TimePosition = 0 | |
415 | Megalo:Play() | |
416 | ||
417 | local shootsnd = new("Sound",char) | |
418 | shootsnd.SoundId = "rbxassetid://340722848" | |
419 | shootsnd.Volume = 10 | |
420 | shootsnd.Pitch = 1 | |
421 | ||
422 | ||
423 | local hdebounce = true | |
424 | ||
425 | ||
426 | local RGhasterBlaster = new("Part",char) | |
427 | RGhasterBlaster.Size = v3(1,1,1) | |
428 | RGhasterBlaster.Name = "RGhasterBlaster" | |
429 | RGhasterBlaster.CanCollide = false | |
430 | RGhasterBlaster.Material = "Neon" | |
431 | RGhasterBlaster.Shape = "Ball" | |
432 | RGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame | |
433 | RGhasterBlaster.Anchored = false | |
434 | RGhasterBlaster.BrickColor = bc("purple") | |
435 | RGhasterBlaster.Transparency = 1 | |
436 | ||
437 | local LGhasterBlaster = new("Part",char) | |
438 | LGhasterBlaster.Size = v3(1,1,1) | |
439 | LGhasterBlaster.CanCollide = false | |
440 | LGhasterBlaster.Name = "LGhasterBlaster" | |
441 | LGhasterBlaster.Material = "Neon" | |
442 | LGhasterBlaster.BrickColor = bc("red") | |
443 | LGhasterBlaster.Shape = "Ball" | |
444 | LGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
445 | LGhasterBlaster.Anchored = false | |
446 | LGhasterBlaster.Transparency = 1 | |
447 | ||
448 | ||
449 | local zxc = Instance.new("SpecialMesh",LGhasterBlaster) | |
450 | zxc.MeshType = "FileMesh" | |
451 | zxc.Scale = Vector3.new(2,2,2) | |
452 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
453 | local zxc = Instance.new("SpecialMesh",RGhasterBlaster) | |
454 | zxc.MeshType = "FileMesh" | |
455 | zxc.Scale = Vector3.new(2,2,2) | |
456 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
457 | local lgbbg=Instance.new("BodyGyro",LGhasterBlaster) | |
458 | lgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
459 | lgbbg.D=400 | |
460 | ||
461 | lgbbp = Instance.new("BodyPosition", LGhasterBlaster) | |
462 | ||
463 | local rgbbg=Instance.new("BodyGyro",RGhasterBlaster) | |
464 | rgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
465 | rgbbg.D=400 | |
466 | ||
467 | rgbbp = Instance.new("BodyPosition", RGhasterBlaster) | |
468 | ||
469 | spawn(function() | |
470 | while Blasters == true do | |
471 | rgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(10,5,0)).p | |
472 | lgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-10,5,0)).p | |
473 | rgbbg.CFrame=CFrame.new(RGhasterBlaster.Position,mouse.Hit.p) | |
474 | lgbbg.CFrame=CFrame.new(LGhasterBlaster.Position,mouse.Hit.p) | |
475 | ||
476 | wait() | |
477 | end | |
478 | end) | |
479 | ||
480 | function equip() | |
481 | if equiped == false then | |
482 | equiped = true | |
483 | hum.WalkSpeed = 0 | |
484 | hum.JumpPower = 0 | |
485 | for i = 1,20 do | |
486 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(math.rad(26.299), math.rad(-0.229), math.rad(-90.413)),.3) --LeftUpperArm | |
487 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(5.386), 0, math.rad(88.293)),.3)--RightUpperArm | |
488 | LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(19.137),rad(0),rad(0)),.3)--LeftLowerArm | |
489 | RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(31.971),rad(0),rad(0)),.3)--RightLowerArm | |
490 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(math.rad(6.704), math.rad(-2.12), math.rad(-17.418)),.3)--LeftUpperLeg | |
491 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(math.rad(12.605), math.rad(3.953), math.rad(17.074)),.3)--RightUpperLeg | |
492 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-10.886),rad(0),rad(0)),.3)--LeftLowerLeg | |
493 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-12.49),rad(0),rad(0)),.3)--RightUpperLeg | |
494 | Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Torso | |
495 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head | |
496 | RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head | |
497 | LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head | |
498 | RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head | |
499 | LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head | |
500 | Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(21.658),rad(0),rad(0)),.3)--Head | |
501 | wait() | |
502 | end | |
503 | for i = 1,20 do | |
504 | LGhasterBlaster.Transparency = LGhasterBlaster.Transparency-0.1 | |
505 | RGhasterBlaster.Transparency = RGhasterBlaster.Transparency-0.1 | |
506 | wait() | |
507 | end | |
508 | hum.WalkSpeed = 15 | |
509 | hum.JumpPower = 50 | |
510 | ParticleEmitter0 = Instance.new("ParticleEmitter") | |
511 | ParticleEmitter0 = Instance.new("ParticleEmitter") | |
512 | ParticleEmitter0.Name = "Fire" | |
513 | ParticleEmitter0.Parent = char.RightHand | |
514 | ParticleEmitter0.Transparency = NumberSequence.new(0,0,0,0,1,0) | |
515 | ParticleEmitter0.Rotation = NumberRange.new(-90, 90) | |
516 | ParticleEmitter0.Archivable = false | |
517 | ParticleEmitter0.Size = NumberSequence.new(0.75,0) | |
518 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1)) | |
519 | ParticleEmitter0.LightEmission = 1 | |
520 | ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=258126401" | |
521 | ParticleEmitter0.ZOffset = 1 | |
522 | ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5) | |
523 | ParticleEmitter0.Rate = 100 | |
524 | ParticleEmitter0.RotSpeed = NumberRange.new(-90, 90) | |
525 | ParticleEmitter0.Speed = NumberRange.new(0.10000000149012, 0.10000000149012) | |
526 | ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1)) | |
527 | for i = 1,20 do | |
528 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm | |
529 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm | |
530 | LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm | |
531 | RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm | |
532 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg | |
533 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg | |
534 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg | |
535 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg | |
536 | Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso | |
537 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
538 | RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
539 | LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
540 | RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
541 | LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
542 | Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
543 | wait() | |
544 | end | |
545 | else | |
546 | equiped = false | |
547 | hum.WalkSpeed = 0 | |
548 | hum.JumpPower = 0 | |
549 | for i = 1,20 do | |
550 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(math.rad(-137.052), math.rad(-87.376), math.rad(-180.023)),.1) --LeftUpperArm | |
551 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(44.576), math.rad(80.787), 0),.1)--RightUpperArm | |
552 | LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(92.934),rad(0),rad(0)),.1)--LeftLowerArm | |
553 | RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(math.rad(92.132), math.rad(0.057), math.rad(0.229)),.1)--RightLowerArm | |
554 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(59.588),rad(0),rad(0)),.1)--LeftUpperLeg | |
555 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(1.089),rad(0),rad(0)),.1)--RightUpperLeg | |
556 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-38.044),rad(0),rad(0)),.1)--LeftLowerLeg | |
557 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-17.704),rad(0),rad(0)),.1)--RightUpperLeg | |
558 | Root.C0 = Root.C0:lerp(CFrame.new(0, -0.206, 0.078)*CFrame.Angles(rad(-20.856),rad(0),rad(0)),.1)--Torso | |
559 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(18.564),rad(0),rad(0)),.1)--Head | |
560 | RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
561 | LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
562 | RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
563 | LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
564 | Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
565 | wait() | |
566 | end | |
567 | ||
568 | ParticleEmitter0:Destroy() | |
569 | for i = 1,20 do | |
570 | LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1 | |
571 | RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1 | |
572 | wait() | |
573 | end | |
574 | for i = 1,20 do | |
575 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm | |
576 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm | |
577 | LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm | |
578 | RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm | |
579 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg | |
580 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg | |
581 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg | |
582 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg | |
583 | Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso | |
584 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
585 | RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
586 | LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
587 | RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
588 | LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
589 | Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head | |
590 | wait() | |
591 | end | |
592 | hum.WalkSpeed = 15 | |
593 | hum.JumpPower = 50 | |
594 | end | |
595 | end | |
596 | function beam() | |
597 | if debounce == true then | |
598 | if equiped == true then | |
599 | debounce = false | |
600 | local finalflash = false | |
601 | local finalgo = 0 | |
602 | local finalgo1 = 6 | |
603 | game:GetService("RunService").RenderStepped:connect(function() | |
604 | if finalflash == true then | |
605 | finalgo = finalgo + 1 | |
606 | finalgo1 = finalgo1 + 2 | |
607 | char.FinalFlash.Size = Vector3.new(finalgo1,2,2) | |
608 | char.inFinalFlash.Size = Vector3.new(finalgo1,2,2) | |
609 | char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo | |
610 | ||
611 | char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo | |
612 | ||
613 | end | |
614 | end) | |
615 | ||
616 | shootsnd:Play() | |
617 | ||
618 | local RayThing = Instance.new("Part",char) | |
619 | RayThing.Size = Vector3.new(5,1,1) | |
620 | RayThing.Shape = "Cylinder" | |
621 | RayThing.Name = "FinalFlash" | |
622 | RayThing.CanCollide = false | |
623 | RayThing.Transparency = 0 | |
624 | RayThing.Anchored = true | |
625 | RayThing.Material = "Neon" | |
626 | RayThing.BrickColor = BrickColor.new("red") | |
627 | ||
628 | local inRayThing = Instance.new("Part",char) | |
629 | inRayThing.Size = Vector3.new(5,1,1) | |
630 | inRayThing.Transparency = 1 | |
631 | inRayThing.Shape = "Cylinder" | |
632 | inRayThing.Name = "inFinalFlash" | |
633 | inRayThing.CanCollide = false | |
634 | inRayThing.Anchored = true | |
635 | inRayThing.Material = "Neon" | |
636 | inRayThing.BrickColor = BrickColor.new("red") | |
637 | inRayThing.Touched:connect(function(hit) | |
638 | ||
639 | ||
640 | if hit.Parent == char then return end | |
641 | if hit.Parent == workspace.Base then return end | |
642 | for i,v in pairs(hit.Parent:GetChildren()) do | |
643 | if v:IsA("Humanoid") then | |
644 | if hdebounce == true then | |
645 | hdebounce = false | |
646 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -30, 1.5, BrickColor.new("Toothpaste").Color) | |
647 | v.Health = v.Health - 70 | |
648 | wait(1) | |
649 | hdebounce = true | |
650 | end | |
651 | ||
652 | ||
653 | end | |
654 | end | |
655 | ||
656 | end) | |
657 | finalflash = true | |
658 | ||
659 | wait(0.5) | |
660 | ||
661 | finalflash = false | |
662 | for i = 1,10 do | |
663 | char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0) | |
664 | char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05 | |
665 | char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo | |
666 | ||
667 | char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo | |
668 | wait() | |
669 | end | |
670 | inRayThing:Destroy() | |
671 | RayThing:Destroy() | |
672 | finalgo = 0 | |
673 | finalgo1 = 6 | |
674 | debounce = true | |
675 | end | |
676 | end | |
677 | end | |
678 | function beam2() | |
679 | if equiped == true then | |
680 | if debounce == true then | |
681 | debounce = false | |
682 | local finalflash = false | |
683 | local finalgo = 0 | |
684 | local finalgo1 = 6 | |
685 | game:GetService("RunService").RenderStepped:connect(function() | |
686 | if finalflash == true then | |
687 | finalgo = finalgo + 1 | |
688 | finalgo1 = finalgo1 + 2 | |
689 | ||
690 | char.FinalFlash.Size = Vector3.new(finalgo1,2,2) | |
691 | char.inFinalFlash.Size = Vector3.new(finalgo1,2,2) | |
692 | char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo | |
693 | char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo | |
694 | ||
695 | ||
696 | end | |
697 | end) | |
698 | ||
699 | shootsnd:Play() | |
700 | local RayThing = Instance.new("Part",char) | |
701 | RayThing.Size = Vector3.new(5,1,1) | |
702 | RayThing.Shape = "Cylinder" | |
703 | RayThing.Name = "FinalFlash" | |
704 | RayThing.CanCollide = false | |
705 | RayThing.Transparency = 0 | |
706 | RayThing.Anchored = true | |
707 | RayThing.Material = "Neon" | |
708 | RayThing.BrickColor = BrickColor.new("red") | |
709 | ||
710 | local inRayThing = Instance.new("Part",char) | |
711 | inRayThing.Size = Vector3.new(10,1,1) | |
712 | inRayThing.Transparency = 1 | |
713 | inRayThing.Shape = "Cylinder" | |
714 | inRayThing.Name = "inFinalFlash" | |
715 | inRayThing.CanCollide = false | |
716 | inRayThing.Anchored = true | |
717 | inRayThing.Material = "Neon" | |
718 | inRayThing.BrickColor = BrickColor.new("red") | |
719 | ||
720 | RayThing.Touched:connect(function(hit) | |
721 | ||
722 | ||
723 | if hit.Parent == char then return end | |
724 | if hit.Parent == workspace.Base then return end | |
725 | for i,v in pairs(hit.Parent:GetChildren()) do | |
726 | if v:IsA("Humanoid") then | |
727 | if hdebounce == true then | |
728 | hdebounce = false | |
729 | local hitnumb = math.random(1,2) | |
730 | v.Health = v.Health - math.random(10,20) | |
731 | if hitnumb == 1 then | |
732 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
733 | end | |
734 | if hitnumb == 2 then | |
735 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
736 | end | |
737 | wait(1) | |
738 | hdebounce = true | |
739 | end | |
740 | ||
741 | ||
742 | end | |
743 | end | |
744 | ||
745 | end) | |
746 | finalflash = true | |
747 | ||
748 | wait(0.5) | |
749 | ||
750 | finalflash = false | |
751 | for i = 1,10 do | |
752 | char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0) | |
753 | char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05 | |
754 | char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo | |
755 | char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo | |
756 | wait() | |
757 | end | |
758 | ||
759 | inRayThing:Destroy() | |
760 | RayThing:Destroy() | |
761 | finalgo = 0 | |
762 | finalgo1 = 6 | |
763 | debounce = true | |
764 | end | |
765 | end | |
766 | end | |
767 | mounted = false | |
768 | function mount() | |
769 | if equiped == true then | |
770 | if mounted == false then | |
771 | mounted = true | |
772 | char.Humanoid.PlatformStand = true | |
773 | local mountw = new("Weld",RGhasterBlaster) | |
774 | mountw.Part0 = char.HumanoidRootPart | |
775 | mountw.Part1 = RGhasterBlaster | |
776 | mountw.Name = "mountw" | |
777 | mountw.C1 = CFrame.new(0,3,0) | |
778 | for i = 1,5 do | |
779 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5) --LeftUpperArm | |
780 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperArm | |
781 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(70),rad(0),rad(0)),.5)--Head | |
782 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--LeftUpperLeg | |
783 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperLeg | |
784 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--LeftLowerLeg | |
785 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--RightUpperLeg | |
786 | Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(-170),rad(0),rad(0)),.1)--Torso | |
787 | wait() | |
788 | end | |
789 | ||
790 | elseif mounted == true then | |
791 | mounted = false | |
792 | for i = 1,5 do | |
793 | LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5) --LeftUpperArm | |
794 | RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperArm | |
795 | Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Head | |
796 | LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftUpperLeg | |
797 | RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg | |
798 | LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftLowerLeg | |
799 | RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg | |
800 | Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Torso | |
801 | wait() | |
802 | end | |
803 | char.Humanoid.PlatformStand = false | |
804 | RGhasterBlaster.mountw:destroy() | |
805 | RGhasterBlaster.CFrame = char.LeftHand.CFrame | |
806 | end | |
807 | end | |
808 | end | |
809 | local srot = 0 | |
810 | mouse.Button1Down:connect(function() | |
811 | ral = math.random(1,2) | |
812 | if ral == 1 then | |
813 | beam() | |
814 | end | |
815 | if ral == 2 then | |
816 | beam2() | |
817 | end | |
818 | ||
819 | ||
820 | end) | |
821 | function cross() | |
822 | if equiped == true then | |
823 | if debounce == true then | |
824 | debounce = false | |
825 | local targeta = new("Part",char) | |
826 | targeta.Position = mouse.Hit.p | |
827 | targeta.Anchored = true | |
828 | targeta.CanCollide = false | |
829 | targeta.Transparency = 1 | |
830 | ||
831 | local CrossGhast1 = new("Part",char) | |
832 | CrossGhast1.CanCollide = false | |
833 | CrossGhast1.Anchored = false | |
834 | CrossGhast1.Size = v3(1,1,1) | |
835 | CrossGhast1.Material = "Neon" | |
836 | CrossGhast1.BrickColor = bc("purple") | |
837 | CrossGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
838 | ||
839 | ||
840 | local zxc = Instance.new("SpecialMesh",CrossGhast1) | |
841 | zxc.MeshType = "FileMesh" | |
842 | zxc.Scale = Vector3.new(2,2,2) | |
843 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
844 | PointBP = Instance.new("BodyPosition",CrossGhast1) | |
845 | PointBP.Position = (targeta.CFrame*CFrame.new(20,1,0)).p | |
846 | PointBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
847 | local PointBG=Instance.new("BodyGyro",CrossGhast1) | |
848 | PointBG.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
849 | PointBG.D=400 | |
850 | local CrossGhast2 = new("Part",char) | |
851 | CrossGhast2.CanCollide = false | |
852 | CrossGhast2.Anchored = false | |
853 | CrossGhast2.Size = v3(1,1,1) | |
854 | CrossGhast2.Material = "Neon" | |
855 | CrossGhast2.BrickColor = bc("purple") | |
856 | CrossGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
857 | ||
858 | local zxc = Instance.new("SpecialMesh",CrossGhast2) | |
859 | zxc.MeshType = "FileMesh" | |
860 | zxc.Scale = Vector3.new(2,2,2) | |
861 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
862 | PointBP2 = Instance.new("BodyPosition",CrossGhast2) | |
863 | PointBP2.Position = (targeta.CFrame*CFrame.new(-20,1,0)).p | |
864 | PointBP2.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
865 | local PointBG2=Instance.new("BodyGyro",CrossGhast2) | |
866 | PointBG2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
867 | PointBG2.D=400 | |
868 | local CrossGhast3 = new("Part",char) | |
869 | CrossGhast3.CanCollide = false | |
870 | CrossGhast3.Anchored = false | |
871 | CrossGhast3.Size = v3(1,1,1) | |
872 | CrossGhast3.Material = "Neon" | |
873 | CrossGhast3.BrickColor = bc("purple") | |
874 | CrossGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
875 | ||
876 | local zxc = Instance.new("SpecialMesh",CrossGhast3) | |
877 | zxc.MeshType = "FileMesh" | |
878 | zxc.Scale = Vector3.new(2,2,2) | |
879 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
880 | PointBP3 = Instance.new("BodyPosition",CrossGhast3) | |
881 | PointBP3.Position = (targeta.CFrame*CFrame.new(0,1,-20)).p | |
882 | PointBP3.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
883 | local PointBG3=Instance.new("BodyGyro",CrossGhast3) | |
884 | PointBG3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
885 | PointBG3.D=400 | |
886 | local CrossGhasta = new("Part",char) | |
887 | CrossGhasta.CanCollide = false | |
888 | CrossGhasta.Anchored = false | |
889 | CrossGhasta.Size = v3(1,1,1) | |
890 | CrossGhasta.Material = "Neon" | |
891 | CrossGhasta.BrickColor = bc("White") | |
892 | CrossGhasta.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
893 | ||
894 | local zxc = Instance.new("SpecialMesh",CrossGhasta) | |
895 | zxc.MeshType = "FileMesh" | |
896 | zxc.Scale = Vector3.new(2,2,2) | |
897 | zxc.MeshId = "http://www.roblox.csdom/asset/?id=920580395" | |
898 | PointBPa = Instance.new("BodyPosition",CrossGhasta) | |
899 | PointBPa.Position = (targeta.CFrame*CFrame.new(0,1,20)).p | |
900 | PointBPa.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
901 | local PointBGa=Instance.new("BodyGyro",CrossGhasta) | |
902 | PointBGa.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
903 | PointBGa.D=400 | |
904 | for i = 1,50 do | |
905 | PointBG.CFrame=CFrame.new(CrossGhast1.Position,targeta.Position)*CFrame.Angles(0.1,0,0) | |
906 | PointBG2.CFrame=CFrame.new(CrossGhast2.Position,targeta.Position)*CFrame.Angles(0.1,0,0) | |
907 | PointBG3.CFrame=CFrame.new(CrossGhast3.Position,targeta.Position)*CFrame.Angles(0.1,0,0) | |
908 | PointBGa.CFrame=CFrame.new(CrossGhasta.Position,targeta.Position)*CFrame.Angles(0.1,0,0) | |
909 | ||
910 | wait() | |
911 | end | |
912 | shootsnd:Play() | |
913 | local GhastShot1 = new("Part",CrossGhast1) | |
914 | GhastShot1.Shape = "Cylinder" | |
915 | GhastShot1.Size = v3(100,5,5) | |
916 | GhastShot1.BrickColor = bc("red") | |
917 | GhastShot1.Material = "Neon" | |
918 | GhastShot1.CanCollide = false | |
919 | GhastShot1.Anchored = true | |
920 | GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
921 | local GhastShot2 = new("Part",CrossGhast1) | |
922 | GhastShot2.Shape = "Cylinder" | |
923 | GhastShot2.Size = v3(100,5,5) | |
924 | GhastShot2.BrickColor = bc("red") | |
925 | GhastShot2.Material = "Neon" | |
926 | GhastShot2.CanCollide = false | |
927 | GhastShot2.Anchored = true | |
928 | GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
929 | local GhastShot3 = new("Part",CrossGhast1) | |
930 | GhastShot3.Shape = "Cylinder" | |
931 | GhastShot3.Size = v3(100,5,5) | |
932 | GhastShot3.BrickColor = bc("red") | |
933 | GhastShot3.Material = "Neon" | |
934 | GhastShot3.CanCollide = false | |
935 | GhastShot3.Anchored = true | |
936 | GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
937 | local GhastShota = new("Part",CrossGhast1) | |
938 | GhastShota.Shape = "Cylinder" | |
939 | GhastShota.Size = v3(100,5,5) | |
940 | GhastShota.BrickColor = bc("red") | |
941 | GhastShota.Material = "Neon" | |
942 | GhastShota.CanCollide = false | |
943 | GhastShota.Anchored = true | |
944 | GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
945 | GhastShota.Touched:connect(function(hit) | |
946 | ||
947 | ||
948 | if hit.Parent == char then return end | |
949 | if hit.Parent == workspace.Base then return end | |
950 | for i,v in pairs(hit.Parent:GetChildren()) do | |
951 | if v:IsA("Humanoid") then | |
952 | if hdebounce == true then | |
953 | hdebounce = false | |
954 | local hitnumb2 = math.random(1,2) | |
955 | for i = 1,20 do | |
956 | v.Health = v.Health-2 | |
957 | wait(0.01) | |
958 | end | |
959 | if hitnumb == 1 then | |
960 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
961 | end | |
962 | if hitnumb == 2 then | |
963 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
964 | end | |
965 | wait(0.9) | |
966 | hdebounce = true | |
967 | end | |
968 | ||
969 | ||
970 | end | |
971 | end | |
972 | ||
973 | end) | |
974 | GhastShot1.Touched:connect(function(hit) | |
975 | ||
976 | if hit.Parent == char then return end | |
977 | if hit.Parent == workspace.Base then return end | |
978 | for i,v in pairs(hit.Parent:GetChildren()) do | |
979 | if v:IsA("Humanoid") then | |
980 | if hdebounce == true then | |
981 | hdebounce = false | |
982 | local hitnumb2 = math.random(1,2) | |
983 | for i = 1,20 do | |
984 | v.Health = v.Health-2 | |
985 | wait(0.01) | |
986 | end | |
987 | if hitnumb == 1 then | |
988 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
989 | end | |
990 | if hitnumb == 2 then | |
991 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
992 | end | |
993 | wait(0.9) | |
994 | hdebounce = true | |
995 | end | |
996 | ||
997 | ||
998 | end | |
999 | end | |
1000 | ||
1001 | end) | |
1002 | GhastShot2.Touched:connect(function(hit) | |
1003 | if hit.Parent == workspace.Base then return end | |
1004 | ||
1005 | if hit.Parent == char then return end | |
1006 | ||
1007 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1008 | if v:IsA("Humanoid") then | |
1009 | if hdebounce == true then | |
1010 | hdebounce = false | |
1011 | local hitnumb2 = math.random(1,2) | |
1012 | for i = 1,20 do | |
1013 | v.Health = v.Health-2 | |
1014 | wait(0.01) | |
1015 | end | |
1016 | if hitnumb == 1 then | |
1017 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1018 | end | |
1019 | if hitnumb == 2 then | |
1020 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1021 | end | |
1022 | wait(0.9) | |
1023 | hdebounce = true | |
1024 | end | |
1025 | ||
1026 | ||
1027 | end | |
1028 | end | |
1029 | ||
1030 | end) | |
1031 | GhastShot3.Touched:connect(function(hit) | |
1032 | if hit.Parent == workspace.Base then return end | |
1033 | if hit.Parent == char then return end | |
1034 | ||
1035 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1036 | if v:IsA("Humanoid") then | |
1037 | if hdebounce == true then | |
1038 | hdebounce = false | |
1039 | local hitnumb2 = math.random(1,2) | |
1040 | for i = 1,20 do | |
1041 | v.Health = v.Health-2 | |
1042 | wait(0.01) | |
1043 | end | |
1044 | if hitnumb == 1 then | |
1045 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1046 | end | |
1047 | if hitnumb == 2 then | |
1048 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1049 | end | |
1050 | wait(0.9) | |
1051 | hdebounce = true | |
1052 | end | |
1053 | ||
1054 | ||
1055 | end | |
1056 | end | |
1057 | ||
1058 | end) | |
1059 | wait(0.2) | |
1060 | for i = 1,10 do | |
1061 | GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1) | |
1062 | GhastShot2.Size = GhastShot2.Size+v3(0,-1,-1) | |
1063 | GhastShot3.Size = GhastShot3.Size+v3(0,-1,-1) | |
1064 | GhastShota.Size = GhastShota.Size+v3(0,-1,-1) | |
1065 | GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1066 | GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1067 | GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1068 | GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1069 | GhastShot1.Transparency = GhastShot1.Transparency+0.1 | |
1070 | GhastShot2.Transparency = GhastShot2.Transparency+0.1 | |
1071 | GhastShot3.Transparency = GhastShot3.Transparency+0.1 | |
1072 | GhastShota.Transparency = GhastShota.Transparency+0.1 | |
1073 | ||
1074 | wait() | |
1075 | end | |
1076 | wait(1) | |
1077 | for i = 1,10 do | |
1078 | CrossGhast2.Transparency = CrossGhast2.Transparency+0.1 | |
1079 | CrossGhast1.Transparency = CrossGhast1.Transparency+0.1 | |
1080 | CrossGhasta.Transparency = CrossGhasta.Transparency+0.1 | |
1081 | CrossGhast3.Transparency = CrossGhast3.Transparency+0.1 | |
1082 | wait() | |
1083 | end | |
1084 | CrossGhast1:destroy() | |
1085 | CrossGhast2:destroy() | |
1086 | CrossGhast3:destroy() | |
1087 | CrossGhasta:destroy() | |
1088 | wait(1) | |
1089 | debounce = true | |
1090 | end | |
1091 | end | |
1092 | end | |
1093 | local dodgedebounce = true | |
1094 | function DodgeLeft() | |
1095 | if dodgedebounce == true then | |
1096 | dodgedebounce = false | |
1097 | local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z) | |
1098 | local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart) | |
1099 | bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1100 | bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p | |
1101 | wait(0.8) | |
1102 | bodyp.Position=currentpos | |
1103 | wait(0.5) | |
1104 | bodyp:Destroy() | |
1105 | wait(1) | |
1106 | dodgedebounce = true | |
1107 | end | |
1108 | end | |
1109 | function RightDodge() | |
1110 | if dodgedebounce == true then | |
1111 | dodgedebounce = false | |
1112 | local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z) | |
1113 | local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart) | |
1114 | bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1115 | bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p | |
1116 | wait(0.8) | |
1117 | bodyp.Position=currentpos | |
1118 | wait(0.5) | |
1119 | bodyp:Destroy() | |
1120 | wait(1) | |
1121 | dodgedebounce = true | |
1122 | end | |
1123 | end | |
1124 | function octo() | |
1125 | if equiped == true then | |
1126 | if debounce == true then | |
1127 | debounce = false | |
1128 | local target2 = new("Part",char) | |
1129 | target2.Position = mouse.Hit.p | |
1130 | target2.Anchored = true | |
1131 | target2.CanCollide = false | |
1132 | target2.Transparency = 1 | |
1133 | local OctoGhast1 = new("Part",char) | |
1134 | OctoGhast1.CanCollide = false | |
1135 | OctoGhast1.Anchored = false | |
1136 | OctoGhast1.Size = v3(1,1,1) | |
1137 | OctoGhast1.Material = "Neon" | |
1138 | OctoGhast1.BrickColor = bc("red") | |
1139 | OctoGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1140 | ||
1141 | ||
1142 | local zxc = Instance.new("SpecialMesh",OctoGhast1) | |
1143 | zxc.MeshType = "FileMesh" | |
1144 | zxc.Scale = Vector3.new(2,2,2) | |
1145 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1146 | PointBPOcto1 = Instance.new("BodyPosition",OctoGhast1) | |
1147 | PointBPOcto1.Position = (target2.CFrame*CFrame.new(20,1,0)).p | |
1148 | PointBPOcto1.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1149 | local PointBGOcto1=Instance.new("BodyGyro",OctoGhast1) | |
1150 | PointBGOcto1.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1151 | PointBGOcto1.D=400 | |
1152 | local OctoGhast2 = new("Part",char) | |
1153 | OctoGhast2.CanCollide = false | |
1154 | OctoGhast2.Anchored = false | |
1155 | OctoGhast2.Size = v3(1,1,1) | |
1156 | OctoGhast2.Material = "Neon" | |
1157 | OctoGhast2.BrickColor = bc("red") | |
1158 | OctoGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1159 | ||
1160 | local zxc = Instance.new("SpecialMesh",OctoGhast2) | |
1161 | zxc.MeshType = "FileMesh" | |
1162 | zxc.Scale = Vector3.new(2,2,2) | |
1163 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1164 | PointBPOcto2 = Instance.new("BodyPosition",OctoGhast2) | |
1165 | PointBPOcto2.Position = (target2.CFrame*CFrame.new(-20,1,0)).p | |
1166 | PointBPOcto2.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1167 | local PointBGOcto2=Instance.new("BodyGyro",OctoGhast2) | |
1168 | PointBGOcto2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1169 | PointBGOcto2.D=400 | |
1170 | local OctoGhast3 = new("Part",char) | |
1171 | OctoGhast3.CanCollide = false | |
1172 | OctoGhast3.Anchored = false | |
1173 | OctoGhast3.Size = v3(1,1,1) | |
1174 | OctoGhast3.Material = "Neon" | |
1175 | OctoGhast3.BrickColor = bc("red") | |
1176 | OctoGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1177 | ||
1178 | ||
1179 | local zxc = Instance.new("SpecialMesh",OctoGhast3) | |
1180 | zxc.MeshType = "FileMesh" | |
1181 | zxc.Scale = Vector3.new(2,2,2) | |
1182 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1183 | PointBPOcto3 = Instance.new("BodyPosition",OctoGhast3) | |
1184 | PointBPOcto3.Position = (target2.CFrame*CFrame.new(0,1,-20)).p | |
1185 | PointBPOcto3.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1186 | local PointBGOcto3=Instance.new("BodyGyro",OctoGhast3) | |
1187 | PointBGOcto3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1188 | PointBGOcto3.D=400 | |
1189 | local OctoGhast4 = new("Part",char) | |
1190 | OctoGhast4.CanCollide = false | |
1191 | OctoGhast4.Anchored = false | |
1192 | OctoGhast4.Size = v3(1,1,1) | |
1193 | OctoGhast4.Material = "Neon" | |
1194 | OctoGhast4.BrickColor = bc("red") | |
1195 | OctoGhast4.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1196 | ||
1197 | ||
1198 | local zxc = Instance.new("SpecialMesh",OctoGhast4) | |
1199 | zxc.MeshType = "FileMesh" | |
1200 | zxc.Scale = Vector3.new(2,2,2) | |
1201 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1202 | PointBPOcto4 = Instance.new("BodyPosition",OctoGhast4) | |
1203 | PointBPOcto4.Position = (target2.CFrame*CFrame.new(0,1,20)).p | |
1204 | PointBPOcto4.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1205 | local PointBGOcto4=Instance.new("BodyGyro",OctoGhast4) | |
1206 | PointBGOcto4.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1207 | PointBGOcto4.D=400 | |
1208 | local OctoGhast5 = new("Part",char) | |
1209 | OctoGhast5.CanCollide = false | |
1210 | OctoGhast5.Anchored = false | |
1211 | OctoGhast5.Size = v3(1,1,1) | |
1212 | OctoGhast5.Material = "Neon" | |
1213 | OctoGhast5.BrickColor = bc("red") | |
1214 | OctoGhast5.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1215 | ||
1216 | ||
1217 | local zxc = Instance.new("SpecialMesh",OctoGhast5) | |
1218 | zxc.MeshType = "FileMesh" | |
1219 | zxc.Scale = Vector3.new(2,2,2) | |
1220 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1221 | PointBPOcto5 = Instance.new("BodyPosition",OctoGhast5) | |
1222 | PointBPOcto5.Position = (target2.CFrame*CFrame.new(15,1,-20)).p | |
1223 | PointBPOcto5.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1224 | local PointBGOcto5=Instance.new("BodyGyro",OctoGhast5) | |
1225 | PointBGOcto5.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1226 | PointBGOcto5.D=400 | |
1227 | local OctoGhast6 = new("Part",char) | |
1228 | OctoGhast6.CanCollide = false | |
1229 | OctoGhast6.Anchored = false | |
1230 | OctoGhast6.Size = v3(1,1,1) | |
1231 | OctoGhast6.Material = "Neon" | |
1232 | OctoGhast6.BrickColor = bc("White") | |
1233 | OctoGhast6.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1234 | ||
1235 | ||
1236 | local zxc = Instance.new("SpecialMesh",OctoGhast6) | |
1237 | zxc.MeshType = "FileMesh" | |
1238 | zxc.Scale = Vector3.new(2,2,2) | |
1239 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1240 | PointBPOcto6 = Instance.new("BodyPosition",OctoGhast6) | |
1241 | PointBPOcto6.Position = (target2.CFrame*CFrame.new(-15,1,20)).p | |
1242 | PointBPOcto6.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1243 | local PointBGOcto6=Instance.new("BodyGyro",OctoGhast6) | |
1244 | PointBGOcto6.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1245 | PointBGOcto6.D=400 | |
1246 | local OctoGhast7 = new("Part",char) | |
1247 | OctoGhast7.CanCollide = false | |
1248 | OctoGhast7.Anchored = false | |
1249 | OctoGhast7.Size = v3(1,1,1) | |
1250 | OctoGhast7.Material = "Neon" | |
1251 | OctoGhast7.BrickColor = bc("White") | |
1252 | OctoGhast7.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1253 | ||
1254 | ||
1255 | local zxc = Instance.new("SpecialMesh",OctoGhast7) | |
1256 | zxc.MeshType = "FileMesh" | |
1257 | zxc.Scale = Vector3.new(2,2,2) | |
1258 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1259 | PointBPOcto7 = Instance.new("BodyPosition",OctoGhast7) | |
1260 | PointBPOcto7.Position = (target2.CFrame*CFrame.new(15,1,15)).p | |
1261 | PointBPOcto7.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1262 | local PointBGOcto7=Instance.new("BodyGyro",OctoGhast7) | |
1263 | PointBGOcto7.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1264 | PointBGOcto7.D=400 | |
1265 | local OctoGhast8 = new("Part",char) | |
1266 | OctoGhast8.CanCollide = false | |
1267 | OctoGhast8.Anchored = false | |
1268 | OctoGhast8.Size = v3(1,1,1) | |
1269 | OctoGhast8.Material = "Neon" | |
1270 | OctoGhast8.BrickColor = bc("White") | |
1271 | OctoGhast8.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0) | |
1272 | ||
1273 | ||
1274 | local zxc = Instance.new("SpecialMesh",OctoGhast8) | |
1275 | zxc.MeshType = "FileMesh" | |
1276 | zxc.Scale = Vector3.new(2,2,2) | |
1277 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1278 | PointBPOcto8 = Instance.new("BodyPosition",OctoGhast8) | |
1279 | PointBPOcto8.Position = (target2.CFrame*CFrame.new(-15,1,-15)).p | |
1280 | PointBPOcto8.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1281 | local PointBGOcto8=Instance.new("BodyGyro",OctoGhast8) | |
1282 | PointBGOcto8.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1283 | PointBGOcto8.D=400 | |
1284 | for i = 1,50 do | |
1285 | PointBGOcto5.CFrame=CFrame.new(OctoGhast5.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1286 | PointBGOcto4.CFrame=CFrame.new(OctoGhast4.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1287 | PointBGOcto1.CFrame=CFrame.new(OctoGhast1.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1288 | PointBGOcto2.CFrame=CFrame.new(OctoGhast2.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1289 | PointBGOcto3.CFrame=CFrame.new(OctoGhast3.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1290 | PointBGOcto6.CFrame=CFrame.new(OctoGhast6.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1291 | PointBGOcto7.CFrame=CFrame.new(OctoGhast7.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1292 | PointBGOcto8.CFrame=CFrame.new(OctoGhast8.Position,target2.Position)*CFrame.Angles(0.1,0,0) | |
1293 | wait() | |
1294 | end | |
1295 | shootsnd:Play() | |
1296 | local GhastShotaA = new("Part",OctoGhast1) | |
1297 | GhastShotaA.Shape = "Cylinder" | |
1298 | GhastShotaA.Size = v3(100,5,5) | |
1299 | GhastShotaA.BrickColor = bc("red") | |
1300 | GhastShotaA.Material = "Neon" | |
1301 | GhastShotaA.CanCollide = false | |
1302 | GhastShotaA.Anchored = true | |
1303 | GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1304 | local GhastShotaB = new("Part",OctoGhast2) | |
1305 | GhastShotaB.Shape = "Cylinder" | |
1306 | GhastShotaB.Size = v3(100,5,5) | |
1307 | GhastShotaB.BrickColor = bc("red") | |
1308 | GhastShotaB.Material = "Neon" | |
1309 | GhastShotaB.CanCollide = false | |
1310 | GhastShotaB.Anchored = true | |
1311 | GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1312 | local GhastShotaC = new("Part",OctoGhast3) | |
1313 | GhastShotaC.Shape = "Cylinder" | |
1314 | GhastShotaC.Size = v3(100,5,5) | |
1315 | GhastShotaC.BrickColor = bc("red") | |
1316 | GhastShotaC.Material = "Neon" | |
1317 | GhastShotaC.CanCollide = false | |
1318 | GhastShotaC.Anchored = true | |
1319 | GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1320 | local GhastShotaD = new("Part",OctoGhast4) | |
1321 | GhastShotaD.Shape = "Cylinder" | |
1322 | GhastShotaD.Size = v3(100,5,5) | |
1323 | GhastShotaD.BrickColor = bc("red") | |
1324 | GhastShotaD.Material = "Neon" | |
1325 | GhastShotaD.CanCollide = false | |
1326 | GhastShotaD.Anchored = true | |
1327 | GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1328 | local GhastShotaE = new("Part",OctoGhast5) | |
1329 | GhastShotaE.Shape = "Cylinder" | |
1330 | GhastShotaE.Size = v3(100,5,5) | |
1331 | GhastShotaE.BrickColor = bc("red") | |
1332 | GhastShotaE.Material = "Neon" | |
1333 | GhastShotaE.CanCollide = false | |
1334 | GhastShotaE.Anchored = true | |
1335 | GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1336 | local GhastShotaF = new("Part",OctoGhast6) | |
1337 | GhastShotaF.Shape = "Cylinder" | |
1338 | GhastShotaF.Size = v3(100,5,5) | |
1339 | GhastShotaF.BrickColor = bc("red") | |
1340 | GhastShotaF.Material = "Neon" | |
1341 | GhastShotaF.CanCollide = false | |
1342 | GhastShotaF.Anchored = true | |
1343 | GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1344 | local GhastShotaG = new("Part",OctoGhast7) | |
1345 | GhastShotaG.Shape = "Cylinder" | |
1346 | GhastShotaG.Size = v3(100,5,5) | |
1347 | GhastShotaG.BrickColor = bc("red") | |
1348 | GhastShotaG.Material = "Neon" | |
1349 | GhastShotaG.CanCollide = false | |
1350 | GhastShotaG.Anchored = true | |
1351 | GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1352 | local GhastShotaH = new("Part",OctoGhast8) | |
1353 | GhastShotaH.Shape = "Cylinder" | |
1354 | GhastShotaH.Size = v3(100,5,5) | |
1355 | GhastShotaH.BrickColor = bc("White") | |
1356 | GhastShotaH.Material = "Neon" | |
1357 | GhastShotaH.CanCollide = false | |
1358 | GhastShotaH.Anchored = true | |
1359 | GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1360 | GhastShotaA.Touched:connect(function(hit) | |
1361 | ||
1362 | ||
1363 | if hit.Parent == char then return end | |
1364 | if hit.Parent == workspace.Base then return end | |
1365 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1366 | if v:IsA("Humanoid") then | |
1367 | if hdebounce == true then | |
1368 | hdebounce = false | |
1369 | ||
1370 | for i = 1,20 do | |
1371 | v.Health = v.Health-2 | |
1372 | wait(0.01) | |
1373 | end | |
1374 | local hitnumb = math.random(1,2) | |
1375 | ||
1376 | if hitnumb == 1 then | |
1377 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1378 | end | |
1379 | if hitnumb == 2 then | |
1380 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1381 | end | |
1382 | wait(0.9) | |
1383 | hdebounce = true | |
1384 | end | |
1385 | ||
1386 | ||
1387 | end | |
1388 | end | |
1389 | ||
1390 | end) | |
1391 | GhastShotaB.Touched:connect(function(hit) | |
1392 | if hit.Parent == workspace.Base then return end | |
1393 | ||
1394 | if hit.Parent == char then return end | |
1395 | ||
1396 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1397 | if v:IsA("Humanoid") then | |
1398 | if hdebounce == true then | |
1399 | hdebounce = false | |
1400 | ||
1401 | for i = 1,20 do | |
1402 | v.Health = v.Health-2 | |
1403 | wait(0.01) | |
1404 | end | |
1405 | local hitnumb = math.random(1,2) | |
1406 | ||
1407 | if hitnumb == 1 then | |
1408 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1409 | end | |
1410 | if hitnumb == 2 then | |
1411 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1412 | end | |
1413 | wait(0.9) | |
1414 | hdebounce = true | |
1415 | end | |
1416 | ||
1417 | ||
1418 | end | |
1419 | end | |
1420 | ||
1421 | end) | |
1422 | GhastShotaC.Touched:connect(function(hit) | |
1423 | ||
1424 | if hit.Parent == workspace.Base then return end | |
1425 | if hit.Parent == char then return end | |
1426 | ||
1427 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1428 | if v:IsA("Humanoid") then | |
1429 | if hdebounce == true then | |
1430 | hdebounce = false | |
1431 | ||
1432 | for i = 1,20 do | |
1433 | v.Health = v.Health-2 | |
1434 | wait(0.01) | |
1435 | end | |
1436 | local hitnumb = math.random(1,2) | |
1437 | ||
1438 | if hitnumb == 1 then | |
1439 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1440 | end | |
1441 | if hitnumb == 2 then | |
1442 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1443 | end | |
1444 | wait(0.9) | |
1445 | hdebounce = true | |
1446 | end | |
1447 | ||
1448 | ||
1449 | end | |
1450 | end | |
1451 | ||
1452 | end) | |
1453 | GhastShotaD.Touched:connect(function(hit) | |
1454 | if hit.Parent == workspace.Base then return end | |
1455 | ||
1456 | if hit.Parent == char then return end | |
1457 | ||
1458 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1459 | if v:IsA("Humanoid") then | |
1460 | if hdebounce == true then | |
1461 | hdebounce = false | |
1462 | ||
1463 | for i = 1,20 do | |
1464 | v.Health = v.Health-2 | |
1465 | wait(0.01) | |
1466 | end | |
1467 | local hitnumb = math.random(1,2) | |
1468 | ||
1469 | if hitnumb == 1 then | |
1470 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1471 | end | |
1472 | if hitnumb == 2 then | |
1473 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1474 | end | |
1475 | wait(0.9) | |
1476 | hdebounce = true | |
1477 | end | |
1478 | ||
1479 | ||
1480 | end | |
1481 | end | |
1482 | ||
1483 | end) | |
1484 | GhastShotaE.Touched:connect(function(hit) | |
1485 | if hit.Parent == workspace.Base then return end | |
1486 | ||
1487 | if hit.Parent == char then return end | |
1488 | ||
1489 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1490 | if v:IsA("Humanoid") then | |
1491 | if hdebounce == true then | |
1492 | hdebounce = false | |
1493 | ||
1494 | for i = 1,20 do | |
1495 | v.Health = v.Health-2 | |
1496 | wait(0.01) | |
1497 | end | |
1498 | local hitnumb = math.random(1,2) | |
1499 | ||
1500 | if hitnumb == 1 then | |
1501 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1502 | end | |
1503 | if hitnumb == 2 then | |
1504 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1505 | end | |
1506 | wait(0.9) | |
1507 | hdebounce = true | |
1508 | end | |
1509 | ||
1510 | ||
1511 | end | |
1512 | end | |
1513 | ||
1514 | end) | |
1515 | GhastShotaF.Touched:connect(function(hit) | |
1516 | ||
1517 | if hit.Parent == workspace.Base then return end | |
1518 | if hit.Parent == char then return end | |
1519 | ||
1520 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1521 | if v:IsA("Humanoid") then | |
1522 | if hdebounce == true then | |
1523 | hdebounce = false | |
1524 | ||
1525 | for i = 1,20 do | |
1526 | v.Health = v.Health-2 | |
1527 | wait(0.01) | |
1528 | end | |
1529 | local hitnumb = math.random(1,2) | |
1530 | ||
1531 | if hitnumb == 1 then | |
1532 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1533 | end | |
1534 | if hitnumb == 2 then | |
1535 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1536 | end | |
1537 | wait(0.9) | |
1538 | ||
1539 | hdebounce = true | |
1540 | end | |
1541 | ||
1542 | ||
1543 | end | |
1544 | end | |
1545 | ||
1546 | end) | |
1547 | GhastShotaG.Touched:connect(function(hit) | |
1548 | ||
1549 | if hit.Parent == workspace.Base then return end | |
1550 | if hit.Parent == char then return end | |
1551 | ||
1552 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1553 | if v:IsA("Humanoid") then | |
1554 | if hdebounce == true then | |
1555 | hdebounce = false | |
1556 | ||
1557 | for i = 1,20 do | |
1558 | v.Health = v.Health-2 | |
1559 | wait(0.01) | |
1560 | end | |
1561 | local hitnumb = math.random(1,2) | |
1562 | ||
1563 | if hitnumb == 1 then | |
1564 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1565 | end | |
1566 | if hitnumb == 2 then | |
1567 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1568 | end | |
1569 | wait(0.9) | |
1570 | hdebounce = true | |
1571 | end | |
1572 | ||
1573 | ||
1574 | end | |
1575 | end | |
1576 | ||
1577 | end) | |
1578 | GhastShotaH.Touched:connect(function(hit) | |
1579 | if hit.Parent == workspace.Base then return end | |
1580 | ||
1581 | if hit.Parent == char then return end | |
1582 | ||
1583 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1584 | if v:IsA("Humanoid") then | |
1585 | if hdebounce == true then | |
1586 | hdebounce = false | |
1587 | for i = 1,20 do | |
1588 | v.Health = v.Health-2 | |
1589 | wait(0.01) | |
1590 | end | |
1591 | local hitnumb = math.random(1,2) | |
1592 | ||
1593 | if hitnumb == 1 then | |
1594 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1595 | end | |
1596 | if hitnumb == 2 then | |
1597 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1598 | end | |
1599 | wait(0.9) | |
1600 | hdebounce = true | |
1601 | end | |
1602 | ||
1603 | ||
1604 | end | |
1605 | end | |
1606 | ||
1607 | end) | |
1608 | wait(0.2) | |
1609 | for i = 1,20 do | |
1610 | GhastShotaA.Size = GhastShotaA.Size+v3(0,-1,-1) | |
1611 | GhastShotaB.Size = GhastShotaB.Size+v3(0,-1,-1) | |
1612 | GhastShotaC.Size = GhastShotaC.Size+v3(0,-1,-1) | |
1613 | GhastShotaD.Size = GhastShotaD.Size+v3(0,-1,-1) | |
1614 | GhastShotaE.Size = GhastShotaE.Size+v3(0,-1,-1) | |
1615 | GhastShotaF.Size = GhastShotaF.Size+v3(0,-1,-1) | |
1616 | GhastShotaG.Size = GhastShotaG.Size+v3(0,-1,-1) | |
1617 | GhastShotaH.Size = GhastShotaH.Size+v3(0,-1,-1) | |
1618 | GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1619 | GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1620 | GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1621 | GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1622 | GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1623 | GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1624 | GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1625 | GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1626 | GhastShotaA.Transparency = GhastShotaA.Transparency+0.1 | |
1627 | GhastShotaB.Transparency = GhastShotaB.Transparency+0.1 | |
1628 | GhastShotaC.Transparency = GhastShotaC.Transparency+0.1 | |
1629 | GhastShotaD.Transparency = GhastShotaD.Transparency+0.1 | |
1630 | GhastShotaE.Transparency = GhastShotaE.Transparency+0.1 | |
1631 | GhastShotaF.Transparency = GhastShotaF.Transparency+0.1 | |
1632 | GhastShotaG.Transparency = GhastShotaG.Transparency+0.1 | |
1633 | GhastShotaH.Transparency = GhastShotaH.Transparency+0.1 | |
1634 | wait() | |
1635 | end | |
1636 | wait(0.1) | |
1637 | debounce = true | |
1638 | for i = 1,20 do | |
1639 | OctoGhast1.Transparency = OctoGhast1.Transparency+0.1 | |
1640 | OctoGhast2.Transparency = OctoGhast2.Transparency+0.1 | |
1641 | OctoGhast3.Transparency = OctoGhast3.Transparency+0.1 | |
1642 | OctoGhast4.Transparency = OctoGhast4.Transparency+0.1 | |
1643 | OctoGhast5.Transparency = OctoGhast5.Transparency+0.1 | |
1644 | OctoGhast6.Transparency = OctoGhast6.Transparency+0.1 | |
1645 | OctoGhast7.Transparency = OctoGhast7.Transparency+0.1 | |
1646 | OctoGhast8.Transparency = OctoGhast8.Transparency+0.1 | |
1647 | wait() | |
1648 | end | |
1649 | OctoGhast1:destroy() | |
1650 | OctoGhast2:destroy() | |
1651 | OctoGhast3:destroy() | |
1652 | OctoGhast4:destroy() | |
1653 | OctoGhast5:destroy() | |
1654 | OctoGhast6:destroy() | |
1655 | OctoGhast7:destroy() | |
1656 | OctoGhast8:destroy() | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | local bonehit2nd = new("Sound",char) | |
1661 | bonehit2nd.SoundId = "rbxassetid://401680588" | |
1662 | bonehit2nd.Volume = 5 | |
1663 | ||
1664 | local bonehit3nd = new("Sound",char) | |
1665 | bonehit3nd.SoundId = "rbxassetid://306247749" | |
1666 | bonehit3nd.Volume = 5 | |
1667 | ||
1668 | function Bones() | |
1669 | if RootPart.Velocity.y < 1 and hitfloor==nil then | |
1670 | if debounce == true then | |
1671 | debounce = false | |
1672 | ||
1673 | bonehit2nd:Play() | |
1674 | for i = 1,30 do | |
1675 | local bone = new("Part",char) | |
1676 | bone.Touched:connect(function(hit) | |
1677 | ||
1678 | ||
1679 | if hit.Parent == char then return end | |
1680 | ||
1681 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1682 | if v:IsA("Humanoid") then | |
1683 | padebounce = true | |
1684 | if padebounce == true then | |
1685 | padebounce = false | |
1686 | ||
1687 | for i = 1,20 do | |
1688 | v.Health = v.Health-2 | |
1689 | wait(1) | |
1690 | end | |
1691 | wait(0.9) | |
1692 | padebounce = true | |
1693 | end | |
1694 | ||
1695 | ||
1696 | end | |
1697 | end | |
1698 | ||
1699 | end) | |
1700 | bone.CFrame = char.HumanoidRootPart.CFrame | |
1701 | bone.CanCollide = false | |
1702 | bone.Material = "SmoothPlastic" | |
1703 | bone.BrickColor = bc("White") | |
1704 | bone.Anchored = true | |
1705 | bone.CFrame = (char.HumanoidRootPart.CFrame + Vector3.new(math.random(-50,50),-7,math.random(-50,50))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(0)),math.random(0,math.rad(0)),math.random(0,math.rad(0))) | |
1706 | local zxc = Instance.new("SpecialMesh",bone) | |
1707 | zxc.MeshType = "FileMesh" | |
1708 | zxc.Scale = Vector3.new(0.03, 0.03, 0.03) | |
1709 | zxc.MeshId = "http://www.roblox.com/asset/?id=921085633" | |
1710 | wait() | |
1711 | ||
1712 | ||
1713 | ||
1714 | ||
1715 | ||
1716 | local gdisp = coroutine.wrap(function() | |
1717 | bonehit3nd:Play() | |
1718 | for i = 1,5 do | |
1719 | bone.CFrame = bone.CFrame*CFrame.new(0,1,0) | |
1720 | wait() | |
1721 | end | |
1722 | wait(1) | |
1723 | for i = 1, 9 do | |
1724 | wait(.1) | |
1725 | bone.Transparency = bone.Transparency + .3 | |
1726 | end | |
1727 | bone:Destroy() | |
1728 | end) | |
1729 | gdisp() | |
1730 | end | |
1731 | end | |
1732 | wait(1) | |
1733 | debounce = true | |
1734 | end | |
1735 | end | |
1736 | AheadShotsdebounce = true | |
1737 | function AheadShots() | |
1738 | if equiped == true then | |
1739 | if AheadShotsdebounce == true then | |
1740 | AheadShotsdebounce = false | |
1741 | local targetahead = new("Part",char) | |
1742 | targetahead.Shape = "Ball" | |
1743 | targetahead.Anchored = true | |
1744 | targetahead.CanCollide = false | |
1745 | targetahead.BrickColor = bc("Toothpaste") | |
1746 | targetahead.Material = "Neon" | |
1747 | targetahead.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-10) | |
1748 | targetahead.Transparency = 1 | |
1749 | ||
1750 | local targetahead2 = new("Part",char) | |
1751 | targetahead2.Shape = "Ball" | |
1752 | targetahead2.CanCollide = false | |
1753 | targetahead2.Anchored = true | |
1754 | targetahead2.BrickColor = bc("Toothpaste") | |
1755 | targetahead2.Material = "Neon" | |
1756 | targetahead2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-30) | |
1757 | targetahead2.Transparency = 1 | |
1758 | ||
1759 | local targetahead3 = new("Part",char) | |
1760 | targetahead3.Shape = "Ball" | |
1761 | targetahead3.Anchored = true | |
1762 | targetahead3.CanCollide = false | |
1763 | targetahead3.BrickColor = bc("Toothpaste") | |
1764 | targetahead3.Material = "Neon" | |
1765 | targetahead3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-50) | |
1766 | targetahead3.Transparency = 1 | |
1767 | ||
1768 | local Blasta1 = new("Part",char) | |
1769 | Blasta1.Size = v3(1,1,1) | |
1770 | Blasta1.CanCollide = false | |
1771 | Blasta1.Name = "Blasta1" | |
1772 | Blasta1.Material = "Neon" | |
1773 | Blasta1.BrickColor = bc("White") | |
1774 | Blasta1.Shape = "Ball" | |
1775 | Blasta1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1776 | Blasta1.Anchored = false | |
1777 | ||
1778 | ||
1779 | ||
1780 | local zxc = Instance.new("SpecialMesh",Blasta1) | |
1781 | zxc.MeshType = "FileMesh" | |
1782 | zxc.Scale = Vector3.new(2,2,2) | |
1783 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1784 | ||
1785 | local blasta1bg=Instance.new("BodyGyro",Blasta1) | |
1786 | blasta1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1787 | blasta1bg.D=400 | |
1788 | ||
1789 | blasta1bp = Instance.new("BodyPosition", Blasta1) | |
1790 | local Blasta2 = new("Part",char) | |
1791 | Blasta2.Size = v3(1,1,1) | |
1792 | Blasta2.CanCollide = false | |
1793 | Blasta2.Name = "Blasta2" | |
1794 | Blasta2.Material = "Neon" | |
1795 | Blasta2.BrickColor = bc("White") | |
1796 | Blasta2.Shape = "Ball" | |
1797 | Blasta2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1798 | Blasta2.Anchored = false | |
1799 | ||
1800 | ||
1801 | ||
1802 | local zxc = Instance.new("SpecialMesh",Blasta2) | |
1803 | zxc.MeshType = "FileMesh" | |
1804 | zxc.Scale = Vector3.new(2,2,2) | |
1805 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1806 | ||
1807 | local Blasta2bg=Instance.new("BodyGyro",Blasta2) | |
1808 | Blasta2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1809 | Blasta2bg.D=400 | |
1810 | ||
1811 | Blasta2bp = Instance.new("BodyPosition", Blasta2) | |
1812 | local Blasta3 = new("Part",char) | |
1813 | Blasta3.Size = v3(1,1,1) | |
1814 | Blasta3.CanCollide = false | |
1815 | Blasta3.Name = "Blasta3" | |
1816 | Blasta3.Material = "Neon" | |
1817 | Blasta3.BrickColor = bc("White") | |
1818 | Blasta3.Shape = "Ball" | |
1819 | Blasta3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1820 | Blasta3.Anchored = false | |
1821 | ||
1822 | ||
1823 | ||
1824 | local zxc = Instance.new("SpecialMesh",Blasta3) | |
1825 | zxc.MeshType = "FileMesh" | |
1826 | zxc.Scale = Vector3.new(2,2,2) | |
1827 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1828 | ||
1829 | local Blasta3bg=Instance.new("BodyGyro",Blasta3) | |
1830 | Blasta3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1831 | Blasta3bg.D=400 | |
1832 | ||
1833 | Blasta3bp = Instance.new("BodyPosition", Blasta3) | |
1834 | local Blasta4 = new("Part",char) | |
1835 | Blasta4.Size = v3(1,1,1) | |
1836 | Blasta4.CanCollide = false | |
1837 | Blasta4.Name = "Blasta4" | |
1838 | Blasta4.Material = "Neon" | |
1839 | Blasta4.BrickColor = bc("White") | |
1840 | Blasta4.Shape = "Ball" | |
1841 | Blasta4.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1842 | Blasta4.Anchored = false | |
1843 | ||
1844 | ||
1845 | ||
1846 | local zxc = Instance.new("SpecialMesh",Blasta4) | |
1847 | zxc.MeshType = "FileMesh" | |
1848 | zxc.Scale = Vector3.new(2,2,2) | |
1849 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1850 | ||
1851 | local Blasta4bg=Instance.new("BodyGyro",Blasta4) | |
1852 | Blasta4bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1853 | Blasta4bg.D=400 | |
1854 | ||
1855 | Blasta4bp = Instance.new("BodyPosition", Blasta4) | |
1856 | local Blasta5 = new("Part",char) | |
1857 | Blasta5.Size = v3(1,1,1) | |
1858 | Blasta5.CanCollide = false | |
1859 | Blasta5.Name = "Blasta5" | |
1860 | Blasta5.Material = "Neon" | |
1861 | Blasta5.BrickColor = bc("White") | |
1862 | Blasta5.Shape = "Ball" | |
1863 | Blasta5.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1864 | Blasta5.Anchored = false | |
1865 | ||
1866 | ||
1867 | ||
1868 | local zxc = Instance.new("SpecialMesh",Blasta5) | |
1869 | zxc.MeshType = "FileMesh" | |
1870 | zxc.Scale = Vector3.new(2,2,2) | |
1871 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1872 | ||
1873 | local Blasta5bg=Instance.new("BodyGyro",Blasta5) | |
1874 | Blasta5bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1875 | Blasta5bg.D=400 | |
1876 | ||
1877 | Blasta5bp = Instance.new("BodyPosition", Blasta5) | |
1878 | ||
1879 | local Blasta6 = new("Part",char) | |
1880 | Blasta6.Size = v3(1,1,1) | |
1881 | Blasta6.CanCollide = false | |
1882 | Blasta6.Name = "Blasta6" | |
1883 | Blasta6.Material = "Neon" | |
1884 | Blasta6.BrickColor = bc("White") | |
1885 | Blasta6.Shape = "Ball" | |
1886 | Blasta6.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
1887 | Blasta6.Anchored = false | |
1888 | ||
1889 | ||
1890 | ||
1891 | local zxc = Instance.new("SpecialMesh",Blasta6) | |
1892 | zxc.MeshType = "FileMesh" | |
1893 | zxc.Scale = Vector3.new(2,2,2) | |
1894 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
1895 | ||
1896 | local Blasta6bg=Instance.new("BodyGyro",Blasta6) | |
1897 | Blasta6bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
1898 | Blasta6bg.D=400 | |
1899 | ||
1900 | Blasta6bp = Instance.new("BodyPosition", Blasta6) | |
1901 | ||
1902 | for i = 1,50 do | |
1903 | blasta1bp.Position=(targetahead.CFrame*CFrame.new(20,2,0)).p | |
1904 | blasta1bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position) | |
1905 | Blasta2bp.Position=(targetahead2.CFrame*CFrame.new(20,2,0)).p | |
1906 | Blasta2bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position) | |
1907 | ||
1908 | Blasta3bp.Position=(targetahead3.CFrame*CFrame.new(20,2,0)).p | |
1909 | Blasta3bg.CFrame=CFrame.new(Blasta3.Position,targetahead3.Position) | |
1910 | ||
1911 | Blasta4bp.Position=(targetahead.CFrame*CFrame.new(-20,2,0)).p | |
1912 | Blasta4bg.CFrame=CFrame.new(Blasta4.Position,targetahead.Position) | |
1913 | ||
1914 | Blasta5bp.Position=(targetahead2.CFrame*CFrame.new(-20,2,0)).p | |
1915 | Blasta5bg.CFrame=CFrame.new(Blasta5.Position,targetahead2.Position) | |
1916 | ||
1917 | Blasta6bp.Position=(targetahead3.CFrame*CFrame.new(-20,2,0)).p | |
1918 | Blasta6bg.CFrame=CFrame.new(Blasta6.Position,targetahead3.Position) | |
1919 | ||
1920 | wait() | |
1921 | end | |
1922 | shootsnd:Play() | |
1923 | local GhastAcrossShot1 = new("Part",Blasta1) | |
1924 | GhastAcrossShot1.Shape = "Cylinder" | |
1925 | GhastAcrossShot1.Size = v3(100,5,5) | |
1926 | GhastAcrossShot1.BrickColor = bc("White") | |
1927 | GhastAcrossShot1.Material = "Neon" | |
1928 | GhastAcrossShot1.CanCollide = false | |
1929 | GhastAcrossShot1.Anchored = true | |
1930 | GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1931 | local GhastAcrossShot2 = new("Part",Blasta2) | |
1932 | GhastAcrossShot2.Shape = "Cylinder" | |
1933 | GhastAcrossShot2.Size = v3(100,5,5) | |
1934 | GhastAcrossShot2.BrickColor = bc("White") | |
1935 | GhastAcrossShot2.Material = "Neon" | |
1936 | GhastAcrossShot2.CanCollide = false | |
1937 | GhastAcrossShot2.Anchored = true | |
1938 | GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1939 | local GhastAcrossShot3 = new("Part",Blasta2) | |
1940 | GhastAcrossShot3.Shape = "Cylinder" | |
1941 | GhastAcrossShot3.Size = v3(100,5,5) | |
1942 | GhastAcrossShot3.BrickColor = bc("White") | |
1943 | GhastAcrossShot3.Material = "Neon" | |
1944 | GhastAcrossShot3.CanCollide = false | |
1945 | GhastAcrossShot3.Anchored = true | |
1946 | GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1947 | local GhastAcrossShot4 = new("Part",Blasta4) | |
1948 | GhastAcrossShot4.Shape = "Cylinder" | |
1949 | GhastAcrossShot4.Size = v3(100,5,5) | |
1950 | GhastAcrossShot4.BrickColor = bc("White") | |
1951 | GhastAcrossShot4.Material = "Neon" | |
1952 | GhastAcrossShot4.CanCollide = false | |
1953 | GhastAcrossShot4.Anchored = true | |
1954 | GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1955 | local GhastAcrossShot5 = new("Part",Blasta5) | |
1956 | GhastAcrossShot5.Shape = "Cylinder" | |
1957 | GhastAcrossShot5.Size = v3(100,5,5) | |
1958 | GhastAcrossShot5.BrickColor = bc("White") | |
1959 | GhastAcrossShot5.Material = "Neon" | |
1960 | GhastAcrossShot5.CanCollide = false | |
1961 | GhastAcrossShot5.Anchored = true | |
1962 | GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1963 | local GhastAcrossShot6 = new("Part",Blasta5) | |
1964 | GhastAcrossShot6.Shape = "Cylinder" | |
1965 | GhastAcrossShot6.Size = v3(100,5,5) | |
1966 | GhastAcrossShot6.BrickColor = bc("White") | |
1967 | GhastAcrossShot6.Material = "Neon" | |
1968 | GhastAcrossShot6.CanCollide = false | |
1969 | GhastAcrossShot6.Anchored = true | |
1970 | GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
1971 | GhastAcrossShot1.Touched:connect(function(hit) | |
1972 | if hit.Parent == workspace.Base then return end | |
1973 | ||
1974 | if hit.Parent == char then return end | |
1975 | ||
1976 | for i,v in pairs(hit.Parent:GetChildren()) do | |
1977 | if v:IsA("Humanoid") then | |
1978 | if hdebounce == true then | |
1979 | hdebounce = false | |
1980 | for i = 1,20 do | |
1981 | v.Health = v.Health-2 | |
1982 | wait(0.01) | |
1983 | end | |
1984 | local hitnumb = math.random(1,2) | |
1985 | ||
1986 | if hitnumb == 1 then | |
1987 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
1988 | end | |
1989 | if hitnumb == 2 then | |
1990 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
1991 | end | |
1992 | wait(0.9) | |
1993 | hdebounce = true | |
1994 | end | |
1995 | ||
1996 | ||
1997 | end | |
1998 | end | |
1999 | ||
2000 | end) | |
2001 | GhastAcrossShot2.Touched:connect(function(hit) | |
2002 | if hit.Parent == workspace.Base then return end | |
2003 | ||
2004 | if hit.Parent == char then return end | |
2005 | ||
2006 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2007 | if v:IsA("Humanoid") then | |
2008 | if hdebounce == true then | |
2009 | hdebounce = false | |
2010 | for i = 1,20 do | |
2011 | v.Health = v.Health-2 | |
2012 | wait(0.01) | |
2013 | end | |
2014 | local hitnumb = math.random(1,2) | |
2015 | ||
2016 | if hitnumb == 1 then | |
2017 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2018 | end | |
2019 | if hitnumb == 2 then | |
2020 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2021 | end | |
2022 | wait(0.9) | |
2023 | hdebounce = true | |
2024 | end | |
2025 | ||
2026 | ||
2027 | end | |
2028 | end | |
2029 | ||
2030 | end) | |
2031 | ||
2032 | GhastAcrossShot3.Touched:connect(function(hit) | |
2033 | if hit.Parent == workspace.Base then return end | |
2034 | ||
2035 | if hit.Parent == char then return end | |
2036 | ||
2037 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2038 | if v:IsA("Humanoid") then | |
2039 | if hdebounce == true then | |
2040 | hdebounce = false | |
2041 | for i = 1,20 do | |
2042 | v.Health = v.Health-2 | |
2043 | wait(0.01) | |
2044 | end | |
2045 | local hitnumb = math.random(1,2) | |
2046 | ||
2047 | if hitnumb == 1 then | |
2048 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2049 | end | |
2050 | if hitnumb == 2 then | |
2051 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2052 | end | |
2053 | wait(0.9) | |
2054 | hdebounce = true | |
2055 | end | |
2056 | ||
2057 | ||
2058 | end | |
2059 | end | |
2060 | ||
2061 | end) | |
2062 | GhastAcrossShot4.Touched:connect(function(hit) | |
2063 | if hit.Parent == workspace.Base then return end | |
2064 | ||
2065 | if hit.Parent == char then return end | |
2066 | ||
2067 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2068 | if v:IsA("Humanoid") then | |
2069 | if hdebounce == true then | |
2070 | hdebounce = false | |
2071 | for i = 1,20 do | |
2072 | v.Health = v.Health-2 | |
2073 | wait(0.01) | |
2074 | end | |
2075 | local hitnumb = math.random(1,2) | |
2076 | ||
2077 | if hitnumb == 1 then | |
2078 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2079 | end | |
2080 | if hitnumb == 2 then | |
2081 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2082 | end | |
2083 | wait(0.9) | |
2084 | hdebounce = true | |
2085 | end | |
2086 | ||
2087 | ||
2088 | end | |
2089 | end | |
2090 | ||
2091 | end) | |
2092 | GhastAcrossShot5.Touched:connect(function(hit) | |
2093 | if hit.Parent == workspace.Base then return end | |
2094 | ||
2095 | if hit.Parent == char then return end | |
2096 | ||
2097 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2098 | if v:IsA("Humanoid") then | |
2099 | if hdebounce == true then | |
2100 | hdebounce = false | |
2101 | for i = 1,20 do | |
2102 | v.Health = v.Health-2 | |
2103 | wait(0.01) | |
2104 | end | |
2105 | local hitnumb = math.random(1,2) | |
2106 | ||
2107 | if hitnumb == 1 then | |
2108 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2109 | end | |
2110 | if hitnumb == 2 then | |
2111 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2112 | end | |
2113 | wait(0.9) | |
2114 | hdebounce = true | |
2115 | end | |
2116 | ||
2117 | ||
2118 | end | |
2119 | end | |
2120 | ||
2121 | end) | |
2122 | GhastAcrossShot6.Touched:connect(function(hit) | |
2123 | if hit.Parent == workspace.Base then return end | |
2124 | ||
2125 | if hit.Parent == char then return end | |
2126 | ||
2127 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2128 | if v:IsA("Humanoid") then | |
2129 | if hdebounce == true then | |
2130 | hdebounce = false | |
2131 | for i = 1,20 do | |
2132 | v.Health = v.Health-2 | |
2133 | wait(0.01) | |
2134 | end | |
2135 | local hitnumb = math.random(1,2) | |
2136 | ||
2137 | if hitnumb == 1 then | |
2138 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2139 | end | |
2140 | if hitnumb == 2 then | |
2141 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2142 | end | |
2143 | wait(0.9) | |
2144 | hdebounce = true | |
2145 | end | |
2146 | ||
2147 | ||
2148 | end | |
2149 | end | |
2150 | ||
2151 | end) | |
2152 | wait(0.5) | |
2153 | for i = 1,20 do | |
2154 | GhastAcrossShot1.Size = GhastAcrossShot1.Size+v3(0,-1,-1) | |
2155 | GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2156 | GhastAcrossShot1.Transparency = GhastAcrossShot1.Transparency+0.1 | |
2157 | GhastAcrossShot2.Size = GhastAcrossShot2.Size+v3(0,-1,-1) | |
2158 | GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2159 | GhastAcrossShot2.Transparency = GhastAcrossShot2.Transparency+0.1 | |
2160 | GhastAcrossShot3.Size = GhastAcrossShot3.Size+v3(0,-1,-1) | |
2161 | GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2162 | GhastAcrossShot3.Transparency = GhastAcrossShot3.Transparency+0.1 | |
2163 | GhastAcrossShot4.Size = GhastAcrossShot4.Size+v3(0,-1,-1) | |
2164 | GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2165 | GhastAcrossShot4.Transparency = GhastAcrossShot4.Transparency+0.1 | |
2166 | ||
2167 | GhastAcrossShot5.Size = GhastAcrossShot5.Size+v3(0,-1,-1) | |
2168 | GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2169 | GhastAcrossShot5.Transparency = GhastAcrossShot5.Transparency+0.1 | |
2170 | GhastAcrossShot6.Size = GhastAcrossShot6.Size+v3(0,-1,-1) | |
2171 | GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2172 | GhastAcrossShot6.Transparency = GhastAcrossShot6.Transparency+0.1 | |
2173 | wait() | |
2174 | end | |
2175 | GhastAcrossShot1:Destroy() | |
2176 | GhastAcrossShot2:Destroy() | |
2177 | GhastAcrossShot3:Destroy() | |
2178 | GhastAcrossShot4:Destroy() | |
2179 | GhastAcrossShot5:Destroy() | |
2180 | GhastAcrossShot6:Destroy() | |
2181 | for i = 1,20 do | |
2182 | Blasta1.Transparency = Blasta1.Transparency+0.1 | |
2183 | Blasta2.Transparency = Blasta2.Transparency+0.1 | |
2184 | Blasta3.Transparency = Blasta3.Transparency+0.1 | |
2185 | Blasta4.Transparency = Blasta4.Transparency+0.1 | |
2186 | Blasta5.Transparency = Blasta5.Transparency+0.1 | |
2187 | Blasta6.Transparency = Blasta6.Transparency+0.1 | |
2188 | wait() | |
2189 | end | |
2190 | Blasta1:Destroy() | |
2191 | Blasta2:Destroy() | |
2192 | Blasta3:Destroy() | |
2193 | Blasta4:Destroy() | |
2194 | Blasta5:Destroy() | |
2195 | Blasta6:Destroy() | |
2196 | wait(0.5) | |
2197 | AheadShotsdebounce = true | |
2198 | end | |
2199 | end | |
2200 | end | |
2201 | local BlasterRaindebounce = true | |
2202 | ||
2203 | function BlasterRain() | |
2204 | if equiped == true then | |
2205 | if BlasterRaindebounce == true then | |
2206 | BlasterRaindebounce = false | |
2207 | local RainTarget1 = new("Part",char) | |
2208 | RainTarget1.BrickColor = bc("Really red") | |
2209 | RainTarget1.Shape = "Ball" | |
2210 | RainTarget1.Material = "Neon" | |
2211 | RainTarget1.Anchored = true | |
2212 | RainTarget1.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-20) | |
2213 | RainTarget1.Transparency = 1 | |
2214 | local RainTarget2 = new("Part",char) | |
2215 | RainTarget2.BrickColor = bc("Really red") | |
2216 | RainTarget2.Shape = "Ball" | |
2217 | RainTarget2.Material = "Neon" | |
2218 | RainTarget2.Anchored = true | |
2219 | RainTarget2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-40) | |
2220 | RainTarget2.Transparency = 1 | |
2221 | local RainBlaster1 = new("Part",char) | |
2222 | RainBlaster1.Size = v3(1,1,1) | |
2223 | RainBlaster1.CanCollide = false | |
2224 | RainBlaster1.Name = "RainBlaster1" | |
2225 | RainBlaster1.Material = "Neon" | |
2226 | RainBlaster1.BrickColor = bc("White") | |
2227 | RainBlaster1.Shape = "Ball" | |
2228 | RainBlaster1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
2229 | RainBlaster1.Anchored = false | |
2230 | ||
2231 | ||
2232 | ||
2233 | local zxc = Instance.new("SpecialMesh",RainBlaster1) | |
2234 | zxc.MeshType = "FileMesh" | |
2235 | zxc.Scale = Vector3.new(2,2,2) | |
2236 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
2237 | ||
2238 | local RainBlaster1bg=Instance.new("BodyGyro",RainBlaster1) | |
2239 | RainBlaster1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
2240 | RainBlaster1bg.D=400 | |
2241 | ||
2242 | RainBlaster1bp = Instance.new("BodyPosition", RainBlaster1) | |
2243 | ||
2244 | local RainBlaster2 = new("Part",char) | |
2245 | RainBlaster2.Size = v3(1,1,1) | |
2246 | RainBlaster2.CanCollide = false | |
2247 | RainBlaster2.Name = "RainBlaster1" | |
2248 | RainBlaster2.Material = "Neon" | |
2249 | RainBlaster2.BrickColor = bc("White") | |
2250 | RainBlaster2.Shape = "Ball" | |
2251 | RainBlaster2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0) | |
2252 | RainBlaster2.Anchored = false | |
2253 | ||
2254 | ||
2255 | ||
2256 | local zxc = Instance.new("SpecialMesh",RainBlaster2) | |
2257 | zxc.MeshType = "FileMesh" | |
2258 | zxc.Scale = Vector3.new(2,2,2) | |
2259 | zxc.MeshId = "http://www.roblox.com/asset/?id=920580395" | |
2260 | ||
2261 | local RainBlaster2bg=Instance.new("BodyGyro",RainBlaster2) | |
2262 | RainBlaster2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) | |
2263 | RainBlaster2bg.D=400 | |
2264 | ||
2265 | RainBlaster2bp = Instance.new("BodyPosition", RainBlaster2) | |
2266 | ||
2267 | ||
2268 | for i = 1,50 do | |
2269 | RainBlaster1bp.Position=(RainTarget1.CFrame*CFrame.new(0,20,0)).p | |
2270 | RainBlaster1bg.CFrame=CFrame.new(RainBlaster1.Position,RainTarget1.Position) | |
2271 | ||
2272 | RainBlaster2bp.Position=(RainTarget2.CFrame*CFrame.new(0,20,0)).p | |
2273 | RainBlaster2bg.CFrame=CFrame.new(RainBlaster2.Position,RainTarget2.Position) | |
2274 | wait() | |
2275 | end | |
2276 | shootsnd:Play() | |
2277 | local RainBlasterShot1 = new("Part",RainBlaster1) | |
2278 | RainBlasterShot1.Shape = "Cylinder" | |
2279 | RainBlasterShot1.Size = v3(100,5,5) | |
2280 | RainBlasterShot1.BrickColor = bc("White") | |
2281 | RainBlasterShot1.Material = "Neon" | |
2282 | RainBlasterShot1.CanCollide = false | |
2283 | RainBlasterShot1.Anchored = true | |
2284 | RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2285 | ||
2286 | local RainBlasterShot2 = new("Part",RainBlaster2) | |
2287 | RainBlasterShot2.Shape = "Cylinder" | |
2288 | RainBlasterShot2.Size = v3(100,5,5) | |
2289 | RainBlasterShot2.BrickColor = bc("White") | |
2290 | RainBlasterShot2.Material = "Neon" | |
2291 | RainBlasterShot2.CanCollide = false | |
2292 | RainBlasterShot2.Anchored = true | |
2293 | RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2294 | RainBlasterShot1.Touched:connect(function(hit) | |
2295 | if hit.Parent == workspace.Base then return end | |
2296 | ||
2297 | if hit.Parent == char then return end | |
2298 | ||
2299 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2300 | if v:IsA("Humanoid") then | |
2301 | if hdebounce == true then | |
2302 | hdebounce = false | |
2303 | for i = 1,20 do | |
2304 | v.Health = v.Health-2 | |
2305 | wait(0.01) | |
2306 | end | |
2307 | local hitnumb = math.random(1,2) | |
2308 | ||
2309 | if hitnumb == 1 then | |
2310 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2311 | end | |
2312 | if hitnumb == 2 then | |
2313 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2314 | end | |
2315 | wait(0.9) | |
2316 | hdebounce = true | |
2317 | end | |
2318 | ||
2319 | ||
2320 | end | |
2321 | end | |
2322 | ||
2323 | end) | |
2324 | RainBlasterShot2.Touched:connect(function(hit) | |
2325 | if hit.Parent == workspace.Base then return end | |
2326 | ||
2327 | if hit.Parent == char then return end | |
2328 | ||
2329 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2330 | if v:IsA("Humanoid") then | |
2331 | if hdebounce == true then | |
2332 | hdebounce = false | |
2333 | for i = 1,20 do | |
2334 | v.Health = v.Health-2 | |
2335 | wait(0.01) | |
2336 | end | |
2337 | local hitnumb = math.random(1,2) | |
2338 | ||
2339 | if hitnumb == 1 then | |
2340 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color) | |
2341 | end | |
2342 | if hitnumb == 2 then | |
2343 | ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color) | |
2344 | end | |
2345 | wait(0.9) | |
2346 | hdebounce = true | |
2347 | end | |
2348 | ||
2349 | ||
2350 | end | |
2351 | end | |
2352 | ||
2353 | end) | |
2354 | ||
2355 | wait(0.5) | |
2356 | for i = 1,20 do | |
2357 | wait() | |
2358 | RainBlasterShot1.Size = RainBlasterShot1.Size+v3(0,-1,-1) | |
2359 | RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2360 | RainBlasterShot1.Transparency = RainBlasterShot1.Transparency+0.1 | |
2361 | ||
2362 | RainBlasterShot2.Size = RainBlasterShot2.Size+v3(0,-1,-1) | |
2363 | RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0) | |
2364 | RainBlasterShot2.Transparency = RainBlasterShot2.Transparency+0.1 | |
2365 | ||
2366 | end | |
2367 | for i = 1,20 do | |
2368 | RainBlaster1.Transparency = RainBlaster1.Transparency+0.1 | |
2369 | RainBlaster2.Transparency = RainBlaster2.Transparency+0.1 | |
2370 | wait() | |
2371 | end | |
2372 | RainBlaster1:Destroy() | |
2373 | RainBlaster2:Destroy() | |
2374 | RainBlasterShot1:Destroy() | |
2375 | RainBlasterShot2:Destroy() | |
2376 | wait(0.5) | |
2377 | BlasterRaindebounce = true | |
2378 | end | |
2379 | end | |
2380 | end | |
2381 | local grabing = false | |
2382 | ||
2383 | function grab() | |
2384 | ||
2385 | ||
2386 | local hit = mouse.Target | |
2387 | if hit.Parent == char then return end | |
2388 | for i,v in pairs(hit.Parent:GetChildren()) do | |
2389 | if v:IsA("Humanoid") then | |
2390 | v.Health = v.Health-50 | |
2391 | local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart) | |
2392 | bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2393 | bodyp.Position=(hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p | |
2394 | wait(0.6) | |
2395 | bodyp:destroy() | |
2396 | end | |
2397 | end | |
2398 | ||
2399 | ||
2400 | ||
2401 | ||
2402 | end | |
2403 | mouse.KeyDown:connect(function(k) | |
2404 | if k == "e" then | |
2405 | AheadShots() | |
2406 | end | |
2407 | end) | |
2408 | mouse.KeyDown:connect(function(k) | |
2409 | if k == "y" then | |
2410 | grab() | |
2411 | end | |
2412 | end) | |
2413 | mouse.KeyDown:connect(function(k) | |
2414 | if k == "g" then | |
2415 | BlasterRain() | |
2416 | end | |
2417 | end) | |
2418 | mouse.KeyDown:connect(function(k) | |
2419 | if k == "t" then | |
2420 | Bones() | |
2421 | end | |
2422 | end) | |
2423 | mouse.KeyDown:connect(function(k) | |
2424 | if k == "z" then | |
2425 | DodgeLeft() | |
2426 | end | |
2427 | end) | |
2428 | mouse.KeyDown:connect(function(k) | |
2429 | if k == "q" then | |
2430 | octo() | |
2431 | end | |
2432 | end) | |
2433 | mouse.KeyDown:connect(function(k) | |
2434 | if k == "x" then | |
2435 | RightDodge() | |
2436 | end | |
2437 | end) | |
2438 | mouse.KeyDown:connect(function(k) | |
2439 | if k == "1" then | |
2440 | hum.Health = 100 | |
2441 | end | |
2442 | end) | |
2443 | mouse.KeyDown:connect(function(k) | |
2444 | if k == "c" then | |
2445 | equip() | |
2446 | end | |
2447 | end) | |
2448 | mouse.KeyDown:connect(function(k) | |
2449 | if k == "f" then | |
2450 | mount() | |
2451 | end | |
2452 | end) | |
2453 | mouse.KeyDown:connect(function(k) | |
2454 | if k == "r" then | |
2455 | cross() | |
2456 | end | |
2457 | end) | |
2458 | p.Character.Humanoid.Died:connect(function() | |
2459 | local jkl = Instance.new("Sound",Workspace) | |
2460 | jkl.SoundId = "rbxassetid://427025525" | |
2461 | jkl.Volume = 10 | |
2462 | jkl:Play() | |
2463 | ||
2464 | for _, V in pairs(char:getChildren()) do | |
2465 | if V:isA("BasePart") then | |
2466 | V.Transparency = 1 | |
2467 | elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then | |
2468 | V.Handle.Transparency = 1 | |
2469 | end | |
2470 | end | |
2471 | char.Head.face:destroy() | |
2472 | for i = 1,50 do | |
2473 | RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1 | |
2474 | LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1 | |
2475 | ||
2476 | dust = Instance.new("Part") | |
2477 | dust.Locked = true | |
2478 | dust.Size = Vector3.new(0.1,0.1,0.1) | |
2479 | dust.BrickColor = BrickColor.new("White") | |
2480 | dust.Transparency = 0 | |
2481 | dust.TopSurface = "Smooth" | |
2482 | dust.BottomSurface = "Smooth" | |
2483 | dust.CFrame = char.HumanoidRootPart.CFrame | |
2484 | dust.CanCollide = true | |
2485 | dust.Reflectance = 0.1 | |
2486 | dust.Material = "Neon" | |
2487 | dust.Parent = char | |
2488 | dust.Anchored = false | |
2489 | end | |
2490 | end) | |
2491 | ||
2492 | ||
2493 | ||
2494 | ||
2495 | DayNightCycle = true --[1] Cycles through day and night. | |
2496 | ||
2497 | DynamicLighting = true --[2] Give your game a dynamic look? | |
2498 | SimulatedShadows = true --[3] Make the shadows stand out. (Enable [2] for this to work) | |
2499 | ||
2500 | DarkAmbient = true --[4] Gives your game darkness, great for zombie games. | |
2501 | AmbientBrightness = 55 --[5] Number Must between 0 to 255. (Enable [2] and [4] for this to work) | |
2502 | ||
2503 | Fog = true --[6] Give your game foggy look. | |
2504 | FogDistance = 1500 --[7] How far will the fog be away from you. (Enable [6] for this to work) | |
2505 | --------------------------------------------------------------------------------------------------------------- | |
2506 | ||
2507 | if Fog then | |
2508 | game:GetService("Lighting").FogEnd = FogDistance | |
2509 | end | |
2510 | ||
2511 | if DarkAmbient and DynamicLighting then | |
2512 | game:GetService("Lighting").OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255) | |
2513 | end | |
2514 | ||
2515 | if DynamicLighting then | |
2516 | game:GetService("Lighting").GlobalShadows = true | |
2517 | if SimulatedShadows then | |
2518 | game:GetService("Lighting").Brightness = 1.5 | |
2519 | game:GetService("Lighting").Ambient = Color3.new(0/255, 0/255, 0/255) | |
2520 | game:GetService("Lighting").ShadowColor = Color3.new(61/255, 61/255, 61/255) | |
2521 | end | |
2522 | end |