SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Had to use Inferno as a base though, bit lazy to start from complete scratch -- | |
| 2 | -- [ Rick & Morty!] -- | |
| 3 | wait() | |
| 4 | LoudVolume = false | |
| 5 | Submerged = false | |
| 6 | Music = true | |
| 7 | script.Name = "Rick" -- or Morty. | |
| 8 | Player = game.Players.LocalPlayer | |
| 9 | c = game.Players.LocalPlayer.Character | |
| 10 | Head = c.Head | |
| 11 | anim = c.Humanoid.Animator | |
| 12 | Humanoid = c:findFirstChild("Humanoid")Humanoid.Name = "Humanoid"
| |
| 13 | b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman"
| |
| 14 | rage = false | |
| 15 | p = game.Players.LocalPlayer | |
| 16 | s = Instance.new("Sound",c.Head)
| |
| 17 | s.Name = "Rick&MortyMusic" | |
| 18 | s.SoundId = "rbxassetid://382119539" | |
| 19 | s.Pitch = 1 | |
| 20 | if LoudVolume == true then s.Volume = 6 else s.Volume = 1 end | |
| 21 | s.Looped = true | |
| 22 | wait(0.1) | |
| 23 | s:play() | |
| 24 | Music = false | |
| 25 | ||
| 26 | local Effects = {}
| |
| 27 | attack = false | |
| 28 | local attacking = false | |
| 29 | vt = Vector3.new | |
| 30 | bc = BrickColor.new | |
| 31 | br = BrickColor.random | |
| 32 | it = Instance.new | |
| 33 | cf = CFrame.new | |
| 34 | euler = CFrame.fromEulerAnglesXYZ | |
| 35 | angles = CFrame.Angles | |
| 36 | matr = math.random | |
| 37 | mouse = Player:GetMouse() | |
| 38 | ||
| 39 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 40 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 41 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 42 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 43 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 44 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 45 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 46 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 47 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 48 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 49 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 50 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 51 | RS = c.Torso:FindFirstChild("Right Shoulder")
| |
| 52 | LS = c.Torso:FindFirstChild("Left Shoulder")
| |
| 53 | RH = c.Torso:FindFirstChild("Right Hip")
| |
| 54 | LH = c.Torso:FindFirstChild("Left Hip")
| |
| 55 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
| |
| 56 | N = c.Torso:FindFirstChild("Neck")
| |
| 57 | cf = CFrame.new | |
| 58 | ang = CFrame.Angles | |
| 59 | rd = math.rad | |
| 60 | rd2 = math.random | |
| 61 | ||
| 62 | ||
| 63 | function swait(num) | |
| 64 | if num==0 or num==nil then | |
| 65 | game:service'RunService'.Heartbeat:wait(0) | |
| 66 | else | |
| 67 | for i=0,num do | |
| 68 | game:service'RunService'.Heartbeat:wait(0) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | ||
| 73 | function lerpz(joint, prop, cfrmz, alp) | |
| 74 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
| 75 | end | |
| 76 | function resetlerp() | |
| 77 | RJ.C0 = RJC0 | |
| 78 | RJ.C1 = RJC1 | |
| 79 | N.C0 = NC0 | |
| 80 | N.C1 = NC1 | |
| 81 | RS.C0 = RSC0 | |
| 82 | RS.C1 = RSC1 | |
| 83 | LS.C0 = LSC0 | |
| 84 | LS.C1 = LSC1 | |
| 85 | RH.C0 = RHC0 | |
| 86 | RH.C1 = RHC1 | |
| 87 | LH.C0 = LHC0 | |
| 88 | LH.C1 = LHC1 | |
| 89 | end | |
| 90 | ||
| 91 | New = function(Object, Parent, Name, Data) | |
| 92 | local Object = Instance.new(Object) | |
| 93 | for Index, Value in pairs(Data or {}) do
| |
| 94 | Object[Index] = Value | |
| 95 | end | |
| 96 | Object.Parent = Parent | |
| 97 | Object.Name = Name | |
| 98 | return Object | |
| 99 | end | |
| 100 | -- Les Build a Portal gun shall we?" | |
| 101 | function CreatePortalGun() | |
| 102 | if c:findFirstChild("PortalGun") == nil then
| |
| 103 | local m = Instance.new("Model",c)m.Name = "PortalGun"
| |
| 104 | local P = Instance.new("Part",m)P.Size = Vector3.new(0.6,1,0.4)P.CanCollide = false P.Material = "Marble" P.Name = "Base"
| |
| 105 | local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c["Right Arm"] W.C0 = CFrame.new(0,1.6,0.6)W.Name = "GunWeld"
| |
| 106 | local P2 = Instance.new("Part",m)P2.Size = Vector3.new(0.2,0.8,0.2)P2.Material = "Marble" P2.Name = "Handle" P2.CanCollide = false
| |
| 107 | local W2 = Instance.new("Weld",P2)W2.Part0 = P2 W2.Part1 = P W2.C0 = CFrame.new(0,-0.5,0.15)*CFrame.Angles(math.rad(-30),0,0)
| |
| 108 | local P3 = Instance.new("Part",m)P3.Size = Vector3.new(0.55,0.4,0.2)P3.CanCollide = false P3.Material = "Neon" P3.Name = "FrontLight"
| |
| 109 | local W3 = Instance.new("Weld",P3)W3.Part0 = P3 W3.Part1 = P W3.C0 = CFrame.new(0,0.31,0)P3.BrickColor = BrickColor.new("Really blue")
| |
| 110 | local P4 = Instance.new("Part",m)P4.Size = Vector3.new(0.2,0.2,0.4)P4.CanCollide = false P4.Material = "Neon" P4.Name = "TopLight" P4.Transparency = 0.5
| |
| 111 | local W4 = Instance.new("Weld",P4)W4.Part0 = P4 W4.Part1 = P W4.C0 = CFrame.new(0,0,0.35)P4.BrickColor = BrickColor.new("Really black")
| |
| 112 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.25,0.25,0.45)P5.CanCollide = false P5.Material = "Neon" P5.Name = "TopLight" P5.Transparency = 0.5
| |
| 113 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 P5.BrickColor = BrickColor.new("Really blue")
| |
| 114 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.3,0.2)P5.CanCollide = false P5.Material = "Marble" P5.Name = "LowerLight"
| |
| 115 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,0,-0.15)
| |
| 116 | local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.2,0.2)P5.CanCollide = false P5.Material = "Marble" P5.Name = "Button"
| |
| 117 | local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,-0.3,-0.2) P5.BrickColor = BrickColor.new("Really black")
| |
| 118 | local B = Instance.new("BlockMesh",P5)B.Scale = Vector3.new(1,0.75,0.75)
| |
| 119 | for i,v in pairs (m:children()) do | |
| 120 | if v.ClassName == "Part" then | |
| 121 | v.TopSurface = "SmoothNoOutlines" | |
| 122 | v.BottomSurface = "SmoothNoOutlines" | |
| 123 | v.BackSurface = "SmoothNoOutlines" | |
| 124 | v.Front = "SmoothNoOutlines" | |
| 125 | v.LeftSurface = "SmoothNoOutlines" | |
| 126 | v.RightSurface = "SmoothNoOutlines" | |
| 127 | end | |
| 128 | end | |
| 129 | end | |
| 130 | end | |
| 131 | function ThrowGun() | |
| 132 | if c:findFirstChild("PortalGun")~=nil then
| |
| 133 | anim.Parent = nil | |
| 134 | local gun = c:findFirstChild("PortalGun") gun.Parent = game.Workspace
| |
| 135 | for i = 1,14 do | |
| 136 | swait() | |
| 137 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 138 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 139 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(65), rd(90)), 0.25) | |
| 140 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 141 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 142 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 143 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 144 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 145 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 146 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 147 | end | |
| 148 | gun.Base.GunWeld:remove() | |
| 149 | local BV = Instance.new("BodyVelocity",gun.Base)BV.Velocity = c.HumanoidRootPart.CFrame.lookVector*50 game.Debris:AddItem(BV,0.1)
| |
| 150 | for i = 1,14 do | |
| 151 | swait() | |
| 152 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 153 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 154 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 155 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 156 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 157 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 158 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 159 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 160 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 161 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 162 | end | |
| 163 | for i = 1,14 do | |
| 164 | swait() | |
| 165 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 166 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 167 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 168 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 169 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 170 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 171 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 172 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 173 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 174 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 175 | end | |
| 176 | resetlerp() | |
| 177 | anim.Parent = Humanoid | |
| 178 | end | |
| 179 | end | |
| 180 | -- ;-; -- | |
| 181 | function PortalRipple(Portalz, Colorz) | |
| 182 | if Portalz == nil then return end | |
| 183 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = Colorz Portal.Name = "PortalEnergy"
| |
| 184 | Portal.CFrame = Portalz.CFrame Portal.Size = Vector3.new(0.25,0.45,0.55) Portal.Material = "Neon" local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere"
| |
| 185 | Spawn(function() | |
| 186 | Portal.Transparency = 0.5 | |
| 187 | for i = 1,20 do | |
| 188 | Portal.Transparency = Portal.Transparency + 0.025 | |
| 189 | Portal.Size = Portal.Size + Vector3.new(0.39,0.54,-0.01) | |
| 190 | Portal.CFrame = Portalz.CFrame | |
| 191 | swait() | |
| 192 | end | |
| 193 | Portal:remove() | |
| 194 | end) | |
| 195 | end | |
| 196 | function CreatePortal1() | |
| 197 | Spawn(function() | |
| 198 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Light blue")
| |
| 199 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 200 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://915686003" S:Play()
| |
| 201 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 202 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 203 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Really black")
| |
| 204 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Granite" | |
| 205 | local PosP = Portal.CFrame | |
| 206 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 207 | for i = 1,10 do | |
| 208 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 209 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 210 | Portal.CFrame = PosP | |
| 211 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 212 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 213 | Portal2.CFrame = PosP | |
| 214 | swait() | |
| 215 | end | |
| 216 | Portal.Touched:connect(function(PartH) | |
| 217 | if PartH.Parent ~= c and PartH.Parent.Parent ~= c and PartH.Size.Z <= 200 and PartH.Name ~= "PortalEnergy" then | |
| 218 | PartH:remove() | |
| 219 | end | |
| 220 | end) | |
| 221 | local R = 1 | |
| 222 | for i = 1,100 do | |
| 223 | wait(0.1) | |
| 224 | if R == 1 then R = 2 | |
| 225 | PortalRipple(Portal2,BrickColor.new("Dove blue"))
| |
| 226 | elseif R == 2 then R = 1 | |
| 227 | PortalRipple(Portal2,BrickColor.new("Light blue"))
| |
| 228 | elseif R == 3 then R = 4 | |
| 229 | PortalRipple(Portal2,BrickColor.new("Earth green"))
| |
| 230 | elseif R == 4 then R = 1 | |
| 231 | PortalRipple(Portal2,BrickColor.new("Dove blue"))
| |
| 232 | end | |
| 233 | end | |
| 234 | for i = 1,10 do | |
| 235 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 236 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 237 | Portal.CFrame = PosP | |
| 238 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 239 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 240 | Portal2.CFrame = PosP | |
| 241 | swait() | |
| 242 | end | |
| 243 | end) | |
| 244 | end | |
| 245 | ||
| 246 | function CreatePortal2() | |
| 247 | Spawn(function() | |
| 248 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Light blue")
| |
| 249 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 250 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 251 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://915686003" S:Play()
| |
| 252 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 253 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Really black")
| |
| 254 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Granite" | |
| 255 | local PosP = Portal.CFrame | |
| 256 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 257 | for i = 1,10 do | |
| 258 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 259 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 260 | Portal.CFrame = PosP | |
| 261 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 262 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 263 | Portal2.CFrame = PosP | |
| 264 | swait() | |
| 265 | end | |
| 266 | for i = 1,10 do | |
| 267 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 268 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 269 | Portal.CFrame = PosP | |
| 270 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 271 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 272 | Portal2.CFrame = PosP | |
| 273 | swait() | |
| 274 | end | |
| 275 | end) | |
| 276 | end | |
| 277 | ||
| 278 | function CreatePortal3() | |
| 279 | Spawn(function() | |
| 280 | local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Light blue")
| |
| 281 | Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon" | |
| 282 | local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
| |
| 283 | local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Really black")
| |
| 284 | Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Granite" | |
| 285 | local PosP = Portal.CFrame | |
| 286 | local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
| |
| 287 | local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://915686003" S:Play()
| |
| 288 | if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end | |
| 289 | for i = 1,10 do | |
| 290 | Portal.Transparency = Portal.Transparency - 0.25 | |
| 291 | Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0) | |
| 292 | Portal.CFrame = PosP | |
| 293 | Portal2.Transparency = Portal2.Transparency - 0.25 | |
| 294 | Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005) | |
| 295 | Portal2.CFrame = PosP | |
| 296 | swait() | |
| 297 | end | |
| 298 | for i = 1,10 do | |
| 299 | Portal.Transparency = Portal.Transparency + 0.25 | |
| 300 | Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0) | |
| 301 | Portal.CFrame = PosP | |
| 302 | Portal2.Transparency = Portal2.Transparency + 0.25 | |
| 303 | Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005) | |
| 304 | Portal2.CFrame = PosP | |
| 305 | swait() | |
| 306 | end | |
| 307 | end) | |
| 308 | end | |
| 309 | ||
| 310 | function DestructionPortal() | |
| 311 | attack = true | |
| 312 | anim.Parent = nil | |
| 313 | for i = 1,14 do | |
| 314 | swait() | |
| 315 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 316 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 317 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 318 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 319 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 320 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 321 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 322 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 323 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 324 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 325 | end | |
| 326 | for i = 1,6 do | |
| 327 | swait() | |
| 328 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.35) | |
| 329 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.35) | |
| 330 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(125)), 0.35) | |
| 331 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 332 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 333 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 334 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 335 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 336 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 337 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35) | |
| 338 | end | |
| 339 | CreatePortal1() | |
| 340 | for i = 1,10 do | |
| 341 | swait() | |
| 342 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25) | |
| 343 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25) | |
| 344 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25) | |
| 345 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 346 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 347 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 348 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 349 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 350 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 351 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 352 | end | |
| 353 | for i = 1,10 do | |
| 354 | swait() | |
| 355 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 356 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 357 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 358 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 359 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 360 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 361 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 362 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 363 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 364 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 365 | end | |
| 366 | resetlerp() | |
| 367 | attack = false | |
| 368 | anim.Parent = Humanoid | |
| 369 | end | |
| 370 | Disappeared = false | |
| 371 | function DisappearPortal() | |
| 372 | if Disappeared == false then | |
| 373 | attack = true Humanoid.WalkSpeed = 150 Humanoid.JumpPower = 250 | |
| 374 | Disappeared = true | |
| 375 | anim.Parent = nil | |
| 376 | for i = 1,14 do | |
| 377 | swait() | |
| 378 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 379 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25) | |
| 380 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25) | |
| 381 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 382 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 383 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 384 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 385 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 386 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 387 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 388 | end | |
| 389 | for i = 1,8 do | |
| 390 | swait() | |
| 391 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 392 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.5) | |
| 393 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(15), rd(0), rd(15)), 0.5) | |
| 394 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 395 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 396 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 397 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 398 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 399 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 400 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
| 401 | end | |
| 402 | CreatePortal2() | |
| 403 | for i = 1,14 do | |
| 404 | swait() | |
| 405 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 406 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25) | |
| 407 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25) | |
| 408 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 409 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 410 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 411 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 412 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 413 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 414 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 415 | end | |
| 416 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 1000000) * ang(rd(0), rd(0), rd(0)), 1) | |
| 417 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 1) | |
| 418 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 1) | |
| 419 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 420 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 421 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 422 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 423 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 424 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 425 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) | |
| 426 | attack = false | |
| 427 | anim.Parent = Humanoid | |
| 428 | else Disappeared = false | |
| 429 | resetlerp() Humanoid.WalkSpeed = 16 Humanoid.JumpPower = 50 | |
| 430 | CreatePortal3() wait() | |
| 431 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0) | |
| 432 | end | |
| 433 | end | |
| 434 | ||
| 435 | function EpicLaugh() | |
| 436 | for i = 1,5 do | |
| 437 | local S = Instance.new("Sound",c.Head)S.SoundId = "rbxassetid://1661848335" S.Volume = 10 S:Play()
| |
| 438 | end | |
| 439 | for i = 1,35 do | |
| 440 | swait() | |
| 441 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25) | |
| 442 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25) | |
| 443 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(180)), 0.25) | |
| 444 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 445 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(-180)), 0.25) | |
| 446 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 447 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.25) | |
| 448 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 449 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.25) | |
| 450 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
| 451 | end | |
| 452 | for i = 1,100 do | |
| 453 | swait() | |
| 454 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -2) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 455 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 456 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 457 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 458 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 459 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 460 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 461 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 462 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 463 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1) | |
| 464 | end | |
| 465 | resetlerp() | |
| 466 | end | |
| 467 | ||
| 468 | function MuteMusic() | |
| 469 | if s.Volume > 0 then | |
| 470 | s.Volume = 0 | |
| 471 | else | |
| 472 | if LoudVolume == true then | |
| 473 | s.Volume = 0.0001 | |
| 474 | else | |
| 475 | s.Volume = 1 | |
| 476 | end | |
| 477 | end | |
| 478 | end | |
| 479 | ||
| 480 | mouse.KeyDown:connect(function(key) | |
| 481 | if attack == true then return end | |
| 482 | if c:findFirstChild("PortalGun")~=nil then
| |
| 483 | if Disappeared == false then | |
| 484 | if key == "z" then | |
| 485 | DestructionPortal() | |
| 486 | end | |
| 487 | end | |
| 488 | if key == "x" then | |
| 489 | DisappearPortal() | |
| 490 | end | |
| 491 | end | |
| 492 | if Disappeared == false then | |
| 493 | if key == "q" then | |
| 494 | CreatePortalGun() | |
| 495 | end | |
| 496 | if key == "e" then | |
| 497 | ThrowGun() | |
| 498 | end | |
| 499 | end | |
| 500 | if key == "l" then | |
| 501 | MuteMusic() | |
| 502 | end | |
| 503 | if key == "m" then | |
| 504 | EpicLaugh() | |
| 505 | end | |
| 506 | end) | |
| 507 | ||
| 508 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 509 | Humanoid.MaxHealth = Humanoid.MaxHealth*2 | |
| 510 | Humanoid.Health = Humanoid.MaxHealth*2 | |
| 511 | for i,v in pairs (c:children()) do | |
| 512 | if v.ClassName == "Accessory" then | |
| 513 | for i,v2 in pairs (v:children()) do | |
| 514 | if v2.ClassName == "Part" then | |
| 515 | v2.Anchored = false | |
| 516 | end | |
| 517 | end | |
| 518 | end | |
| 519 | end | |
| 520 | for i,v in pairs (c:children()) do | |
| 521 | if v.ClassName == "Part" then | |
| 522 | v.Anchored = false | |
| 523 | wait(2) | |
| 524 | ||
| 525 | - | end) |
| 525 | + | local p = game:GetService("Players").LocalPlayer
|
| 526 | local plr = game:GetService("Players").LocalPlayer
| |
| 527 | local player = game:GetService("Players").LocalPlayer
| |
| 528 | local char = p.Character | |
| 529 | local mouse = p:GetMouse() | |
| 530 | local larm = char:WaitForChild("Left Arm")
| |
| 531 | local rarm = char:WaitForChild("Right Arm")
| |
| 532 | local lleg = char:WaitForChild("Left Leg")
| |
| 533 | local rleg = char:WaitForChild("Right Leg")
| |
| 534 | local hed = char:WaitForChild("Head")
| |
| 535 | local torso = char:WaitForChild("Torso")
| |
| 536 | local root = char:WaitForChild("HumanoidRootPart")
| |
| 537 | local hum = char:FindFirstChildOfClass("Humanoid")
| |
| 538 | local debris = game:GetService("Debris")
| |
| 539 | local run = game:GetService("RunService")
| |
| 540 | local rs = run.RenderStepped | |
| 541 | local cam = workspace.CurrentCamera | |
| 542 | local movement = 4 | |
| 543 | local change = 0.4 | |
| 544 | local DebrisModel = Instance.new("Model",char)
| |
| 545 | local stealth = false | |
| 546 | local debounce = false | |
| 547 | ------------------------------------------------------- | |
| 548 | local Player_Size = 4 | |
| 549 | if Player_Size ~= 4 then | |
| 550 | root.Size = root.Size * Player_Size | |
| 551 | torso.Size = torso.Size * Player_Size | |
| 552 | hed.Size = hed.Size * Player_Size | |
| 553 | rarm.Size = rarm.Size * Player_Size | |
| 554 | larm.Size = larm.Size * Player_Size | |
| 555 | rleg.Size = rleg.Size * Player_Size | |
| 556 | lleg.Size = lleg.Size * Player_Size | |
| 557 | end | |
| 558 | ---------------------------------------------------------------------------------- | |
| 559 | it = Instance.new | |
| 560 | hum.MaxHealth = 500000000000000000000000000000000000000000000000 | |
| 561 | hum.Health = hum.MaxHealth | |
| 562 | themeid = 0 | |
| 563 | themepitch = 1 | |
| 564 | TorsoColor = torso.BrickColor | |
| 565 | RightLeg = CFrame.new(0.5,-1,0) | |
| 566 | LeftLeg = CFrame.new(-0.5,-1,0) | |
| 567 | RunService = game:service'RunService' | |
| 568 | lefth = (torso.CFrame*LeftLeg) | |
| 569 | righth = (torso.CFrame*RightLeg) | |
| 570 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 571 | local Lighty = game:GetService"Lighting" | |
| 572 | EffectModel = Instance.new("Model", char)
| |
| 573 | Effects = {
| |
| 574 | Block = {
| |
| 575 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 576 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 577 | prt.Anchored = true | |
| 578 | prt.CFrame = cframe | |
| 579 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 580 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 581 | if Type == 1 or Type == nil then | |
| 582 | table.insert(Effects, {
| |
| 583 | prt, | |
| 584 | "Block1", | |
| 585 | delay, | |
| 586 | x3, | |
| 587 | y3, | |
| 588 | z3, | |
| 589 | msh | |
| 590 | }) | |
| 591 | elseif Type == 2 then | |
| 592 | table.insert(Effects, {
| |
| 593 | prt, | |
| 594 | "Block2", | |
| 595 | delay, | |
| 596 | x3, | |
| 597 | y3, | |
| 598 | z3, | |
| 599 | msh | |
| 600 | }) | |
| 601 | else | |
| 602 | table.insert(Effects, {
| |
| 603 | prt, | |
| 604 | "Block3", | |
| 605 | delay, | |
| 606 | x3, | |
| 607 | y3, | |
| 608 | z3, | |
| 609 | msh | |
| 610 | }) | |
| 611 | end | |
| 612 | end | |
| 613 | }, | |
| 614 | Sphere = {
| |
| 615 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 616 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 617 | prt.Anchored = true | |
| 618 | prt.CFrame = cframe | |
| 619 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 620 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 621 | table.insert(Effects, {
| |
| 622 | prt, | |
| 623 | "Cylinder", | |
| 624 | delay, | |
| 625 | x3, | |
| 626 | y3, | |
| 627 | z3, | |
| 628 | msh | |
| 629 | }) | |
| 630 | end | |
| 631 | }, | |
| 632 | Cylinder = {
| |
| 633 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 634 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 635 | prt.Anchored = true | |
| 636 | prt.CFrame = cframe | |
| 637 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 638 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 639 | table.insert(Effects, {
| |
| 640 | prt, | |
| 641 | "Cylinder", | |
| 642 | delay, | |
| 643 | x3, | |
| 644 | y3, | |
| 645 | z3, | |
| 646 | msh | |
| 647 | }) | |
| 648 | end | |
| 649 | }, | |
| 650 | Wave = {
| |
| 651 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 652 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 653 | prt.Anchored = true | |
| 654 | prt.CFrame = cframe | |
| 655 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 656 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 657 | table.insert(Effects, {
| |
| 658 | prt, | |
| 659 | "Cylinder", | |
| 660 | delay, | |
| 661 | x3 / 60, | |
| 662 | y3 / 60, | |
| 663 | z3 / 60, | |
| 664 | msh | |
| 665 | }) | |
| 666 | end | |
| 667 | }, | |
| 668 | Ring = {
| |
| 669 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 670 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 671 | prt.Anchored = true | |
| 672 | prt.CFrame = cframe | |
| 673 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 674 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 675 | table.insert(Effects, {
| |
| 676 | prt, | |
| 677 | "Cylinder", | |
| 678 | delay, | |
| 679 | x3, | |
| 680 | y3, | |
| 681 | z3, | |
| 682 | msh | |
| 683 | }) | |
| 684 | end | |
| 685 | }, | |
| 686 | Break = {
| |
| 687 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 688 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 689 | prt.Anchored = true | |
| 690 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 691 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 692 | local num = math.random(10, 50) / 1000 | |
| 693 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 694 | table.insert(Effects, {
| |
| 695 | prt, | |
| 696 | "Shatter", | |
| 697 | num, | |
| 698 | prt.CFrame, | |
| 699 | math.random() - math.random(), | |
| 700 | 0, | |
| 701 | math.random(50, 100) / 100 | |
| 702 | }) | |
| 703 | end | |
| 704 | }, | |
| 705 | Spiral = {
| |
| 706 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 707 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 708 | prt.Anchored = true | |
| 709 | prt.CFrame = cframe | |
| 710 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 711 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 712 | table.insert(Effects, {
| |
| 713 | prt, | |
| 714 | "Cylinder", | |
| 715 | delay, | |
| 716 | x3, | |
| 717 | y3, | |
| 718 | z3, | |
| 719 | msh | |
| 720 | }) | |
| 721 | end | |
| 722 | }, | |
| 723 | Push = {
| |
| 724 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 725 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 726 | prt.Anchored = true | |
| 727 | prt.CFrame = cframe | |
| 728 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 729 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 730 | table.insert(Effects, {
| |
| 731 | prt, | |
| 732 | "Cylinder", | |
| 733 | delay, | |
| 734 | x3, | |
| 735 | y3, | |
| 736 | z3, | |
| 737 | msh | |
| 738 | }) | |
| 739 | end | |
| 740 | } | |
| 741 | } | |
| 742 | local NeckS = Instance.new("Part",char)
| |
| 743 | NeckS.Size = Vector3.new(1.2,1,1.2) | |
| 744 | NeckS.Material = "SmoothPlastic" | |
| 745 | NeckS.BrickColor = BrickColor.new("Bright yellow")
| |
| 746 | NeckS.CanCollide = false | |
| 747 | local Neck3 = Instance.new("Weld",NeckS)
| |
| 748 | Neck3.Part0 = larm | |
| 749 | Neck3.Part1 = NeckS | |
| 750 | Neck3.C0 = CFrame.new(0,-0.62,0)*CFrame.Angles(math.rad(0),math.rad(-180),math.rad(0)) | |
| 751 | local Black = Instance.new("Part",NeckS)--First Stone, Yellow
| |
| 752 | Black.Size = Vector3.new(0.3,0.3,0.3) | |
| 753 | Black.Material = "Neon" | |
| 754 | Black.BrickColor = BrickColor.new("New Yeller")
| |
| 755 | Black.CanCollide = false | |
| 756 | local BlackM = Instance.new("SpecialMesh",Black)
| |
| 757 | BlackM.MeshType = 3 | |
| 758 | local Black1 = Instance.new("Weld",Black)
| |
| 759 | Black1.Part0 = NeckS | |
| 760 | Black1.Part1 = Black | |
| 761 | Black1.C0 = CFrame.new(0.54,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 762 | local Stone2 = Instance.new("Part",NeckS)--First Circle
| |
| 763 | Stone2.Size = Vector3.new(0.2,0.2,0.2) | |
| 764 | Stone2.Material = "Neon" | |
| 765 | Stone2.BrickColor = BrickColor.new("Magenta")
| |
| 766 | Stone2.CanCollide = false | |
| 767 | local Stone22 = Instance.new("SpecialMesh",Stone2)
| |
| 768 | Stone22.MeshType = 3 | |
| 769 | local Stone222 = Instance.new("Weld",Stone2)
| |
| 770 | Stone222.Part0 = NeckS | |
| 771 | Stone222.Part1 = Stone2 | |
| 772 | Stone222.C0 = CFrame.new(0.23,-0.47,0.4)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 773 | local Stone3 = Instance.new("Part",NeckS)--First Circle
| |
| 774 | Stone3.Size = Vector3.new(0.2,0.2,0.2) | |
| 775 | Stone3.Material = "Neon" | |
| 776 | Stone3.BrickColor = BrickColor.new("Lapis")
| |
| 777 | Stone3.CanCollide = false | |
| 778 | local Stone33 = Instance.new("SpecialMesh",Stone3)
| |
| 779 | Stone33.MeshType = 3 | |
| 780 | local Stone333 = Instance.new("Weld",Stone3)
| |
| 781 | Stone333.Part0 = NeckS | |
| 782 | Stone333.Part1 = Stone3 | |
| 783 | Stone333.C0 = CFrame.new(0.23,-0.47,0.08)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 784 | local Stone4 = Instance.new("Part",NeckS)--First Circle
| |
| 785 | Stone4.Size = Vector3.new(0.2,0.2,0.2) | |
| 786 | Stone4.Material = "Neon" | |
| 787 | Stone4.BrickColor = BrickColor.new("Really red")
| |
| 788 | Stone4.CanCollide = false | |
| 789 | local Stone44 = Instance.new("SpecialMesh",Stone4)
| |
| 790 | Stone44.MeshType = 3 | |
| 791 | local Stone444 = Instance.new("Weld",Stone4)
| |
| 792 | Stone444.Part0 = NeckS | |
| 793 | Stone444.Part1 = Stone4 | |
| 794 | Stone444.C0 = CFrame.new(0.23,-0.47,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 795 | local Stone5 = Instance.new("Part",NeckS)--First Circle
| |
| 796 | Stone5.Size = Vector3.new(0.2,0.2,0.2) | |
| 797 | Stone5.Material = "Neon" | |
| 798 | Stone5.BrickColor = BrickColor.new("CGA brown")
| |
| 799 | Stone5.CanCollide = false | |
| 800 | local Stone55 = Instance.new("SpecialMesh",Stone5)
| |
| 801 | Stone55.MeshType = 3 | |
| 802 | local Stone555 = Instance.new("Weld",Stone5)
| |
| 803 | Stone555.Part0 = NeckS | |
| 804 | Stone555.Part1 = Stone5 | |
| 805 | Stone555.C0 = CFrame.new(0.23,-0.47,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 806 | ||
| 807 | local Stone6 = Instance.new("Part",NeckS)--First Circle
| |
| 808 | Stone6.Size = Vector3.new(0.2,0.2,0.2) | |
| 809 | Stone6.Material = "Neon" | |
| 810 | Stone6.BrickColor = BrickColor.new("Lime green")
| |
| 811 | Stone6.CanCollide = false | |
| 812 | local Stone66 = Instance.new("SpecialMesh",Stone6)
| |
| 813 | Stone66.MeshType = 3 | |
| 814 | local Stone666 = Instance.new("Weld",Stone6)
| |
| 815 | Stone666.Part0 = NeckS | |
| 816 | Stone666.Part1 = Stone6 | |
| 817 | Stone666.C0 = CFrame.new(0,-0.3,0.6)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
| 818 | ||
| 819 | local Grab = Instance.new("Part",hed)
| |
| 820 | Grab.Size = Vector3.new(4.9,5,4.9) | |
| 821 | Grab.CanCollide = false | |
| 822 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 823 | Grab.Transparency = 1 | |
| 824 | local Grabo = Instance.new("Weld",Grab)
| |
| 825 | Grabo.Part0 = hed | |
| 826 | Grabo.Part1 = Grab | |
| 827 | Grabo.C0 = CFrame.new(0,-1.5,0) | |
| 828 | ||
| 829 | local AuraB = Instance.new("Part",hed)
| |
| 830 | AuraB.Size = Vector3.new(2,1,2) | |
| 831 | AuraB.CanCollide = false | |
| 832 | AuraB.BrickColor = BrickColor.new("Deep orange")
| |
| 833 | AuraB.Transparency = 1 | |
| 834 | local AuraBo = Instance.new("Weld",AuraB)
| |
| 835 | AuraBo.Part0 = hed | |
| 836 | AuraBo.Part1 = AuraB | |
| 837 | AuraBo.C0 = CFrame.new(0,-3.6,0) | |
| 838 | ||
| 839 | local FZcharge3 = Instance.new("ParticleEmitter",Grab)
| |
| 840 | FZcharge3.Texture = "rbxassetid://249481494" | |
| 841 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
| 842 | FZcharge3.EmissionDirection = "Top" | |
| 843 | FZcharge3.Speed = NumberRange.new(8) | |
| 844 | FZcharge3.Size = NumberSequence.new(8,0) | |
| 845 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 846 | FZcharge3.Drag = 1.2 | |
| 847 | FZcharge3.LockedToPart = true | |
| 848 | FZcharge3.Lifetime = NumberRange.new(1) | |
| 849 | FZcharge3.Rate = 195 | |
| 850 | FZcharge3.LightEmission = 0 | |
| 851 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 852 | FZcharge3.VelocitySpread = 100.2 | |
| 853 | FZcharge3.ZOffset = 2.5 | |
| 854 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655"
| |
| 855 | wait(0.001) | |
| 856 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://"
| |
| 857 | for i,v in pairs(char:GetChildren()) do | |
| 858 | if v ~= root then | |
| 859 | if v:IsA("Part") then
| |
| 860 | v.Transparency = 1 | |
| 861 | elseif v:IsA("Accoutrement") then
| |
| 862 | v:FindFirstChildOfClass("Part").Transparency = 1
| |
| 863 | end | |
| 864 | end | |
| 865 | end | |
| 866 | for i,v in pairs(NeckS:GetChildren()) do | |
| 867 | if v ~= root then | |
| 868 | if v:IsA("Part") then
| |
| 869 | v.Transparency = 1 | |
| 870 | elseif v:IsA("Accoutrement") then
| |
| 871 | v:FindFirstChildOfClass("Part").Transparency = 1
| |
| 872 | end | |
| 873 | end | |
| 874 | end | |
| 875 | wait(5) | |
| 876 | FZcharge3.Rate = 0 | |
| 877 | for i,v in pairs(char:GetChildren()) do | |
| 878 | if v ~= root then | |
| 879 | if v:IsA("Part") then
| |
| 880 | v.Transparency = 0 | |
| 881 | elseif v:IsA("Accoutrement") then
| |
| 882 | v:FindFirstChildOfClass("Part").Transparency = 0
| |
| 883 | end | |
| 884 | end | |
| 885 | end | |
| 886 | for i,v in pairs(NeckS:GetChildren()) do | |
| 887 | if v ~= root then | |
| 888 | if v:IsA("Part") then
| |
| 889 | v.Transparency = 0 | |
| 890 | elseif v:IsA("Accoutrement") then
| |
| 891 | v:FindFirstChildOfClass("Part").Transparency = 0
| |
| 892 | end | |
| 893 | end | |
| 894 | end | |
| 895 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655"
| |
| 896 | local SFXZ = Instance.new("Sound",torso)
| |
| 897 | SFXZ.SoundId = "rbxassetid://915686003" | |
| 898 | SFXZ.Volume = 3 | |
| 899 | SFXZ.Pitch = 1 | |
| 900 | SFXZ.Looped = false | |
| 901 | wait(0.01) | |
| 902 | SFXZ:Play() | |
| 903 | nooutline = function(part) | |
| 904 | part.TopSurface = 10 | |
| 905 | end | |
| 906 | local Mode = false | |
| 907 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 908 | local fp = it("Part")
| |
| 909 | fp.formFactor = formfactor | |
| 910 | fp.Parent = parent | |
| 911 | fp.Reflectance = reflectance | |
| 912 | fp.Transparency = transparency | |
| 913 | fp.CanCollide = false | |
| 914 | fp.Locked = true | |
| 915 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 916 | fp.Name = name | |
| 917 | fp.Size = size | |
| 918 | fp.Position = char.Torso.Position | |
| 919 | nooutline(fp) | |
| 920 | fp.Material = material | |
| 921 | fp:BreakJoints() | |
| 922 | return fp | |
| 923 | end | |
| 924 | ||
| 925 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
| 926 | local mesh = it(Mesh) | |
| 927 | mesh.Parent = part | |
| 928 | if Mesh == "SpecialMesh" then | |
| 929 | mesh.MeshType = meshtype | |
| 930 | mesh.MeshId = meshid | |
| 931 | end | |
| 932 | mesh.Offset = offset | |
| 933 | mesh.Scale = scale | |
| 934 | return mesh | |
| 935 | end | |
| 936 | ||
| 937 | weld = function(parent, part0, part1, c0, c1) | |
| 938 | local weld = it("Weld")
| |
| 939 | weld.Parent = parent | |
| 940 | weld.Part0 = part0 | |
| 941 | weld.Part1 = part1 | |
| 942 | weld.C0 = c0 | |
| 943 | weld.C1 = c1 | |
| 944 | return weld | |
| 945 | end | |
| 946 | local Create = LoadLibrary("RbxUtility").Create
| |
| 947 | ArtificialHB = Create("BindableEvent", script){
| |
| 948 | Parent = script, | |
| 949 | Name = "Heartbeat", | |
| 950 | } | |
| 951 | ||
| 952 | function RemoveOutlines(part) | |
| 953 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 954 | end | |
| 955 | CFuncs = {
| |
| 956 | Part = {
| |
| 957 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 958 | local Part = Create("Part"){
| |
| 959 | Parent = Parent, | |
| 960 | Reflectance = Reflectance, | |
| 961 | Transparency = Transparency, | |
| 962 | CanCollide = false, | |
| 963 | Locked = true, | |
| 964 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 965 | Name = Name, | |
| 966 | Size = Size, | |
| 967 | Material = Material, | |
| 968 | } | |
| 969 | RemoveOutlines(Part) | |
| 970 | return Part | |
| 971 | end; | |
| 972 | }; | |
| 973 | ||
| 974 | Mesh = {
| |
| 975 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 976 | local Msh = Create(Mesh){
| |
| 977 | Parent = Part, | |
| 978 | Offset = OffSet, | |
| 979 | Scale = Scale, | |
| 980 | } | |
| 981 | if Mesh == "SpecialMesh" then | |
| 982 | Msh.MeshType = MeshType | |
| 983 | Msh.MeshId = MeshId | |
| 984 | end | |
| 985 | return Msh | |
| 986 | end; | |
| 987 | }; | |
| 988 | ||
| 989 | Weld = {
| |
| 990 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 991 | local Weld = Create("Weld"){
| |
| 992 | Parent = Parent, | |
| 993 | Part0 = Part0, | |
| 994 | Part1 = Part1, | |
| 995 | C0 = C0, | |
| 996 | C1 = C1, | |
| 997 | } | |
| 998 | return Weld | |
| 999 | end; | |
| 1000 | }; | |
| 1001 | ||
| 1002 | Sound = {
| |
| 1003 | Create = function(id, par, vol, pit) | |
| 1004 | local Sound = Create("Sound"){
| |
| 1005 | Volume = vol, | |
| 1006 | Pitch = pit or 1, | |
| 1007 | SoundId = "rbxassetid://" .. id, | |
| 1008 | Parent = par or workspace, | |
| 1009 | } | |
| 1010 | Sound:play() | |
| 1011 | return Sound | |
| 1012 | end; | |
| 1013 | }; | |
| 1014 | ||
| 1015 | Decal = {
| |
| 1016 | Create = function(Color, Texture, Transparency, Name, Parent) | |
| 1017 | local Decal = Create("Decal"){
| |
| 1018 | Color3 = Color, | |
| 1019 | Texture = "rbxassetid://" .. Texture, | |
| 1020 | Transparency = Transparency, | |
| 1021 | Name = Name, | |
| 1022 | Parent = Parent, | |
| 1023 | } | |
| 1024 | return Decal | |
| 1025 | end; | |
| 1026 | }; | |
| 1027 | ||
| 1028 | BillboardGui = {
| |
| 1029 | Create = function(Parent, Image, Position, Size) | |
| 1030 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
| |
| 1031 | BillPar.CFrame = CFrame.new(Position) | |
| 1032 | local Bill = Create("BillboardGui"){
| |
| 1033 | Parent = BillPar, | |
| 1034 | Adornee = BillPar, | |
| 1035 | Size = UDim2.new(1, 0, 1, 0), | |
| 1036 | SizeOffset = Vector2.new(Size, Size), | |
| 1037 | } | |
| 1038 | local d = Create("ImageLabel", Bill){
| |
| 1039 | Parent = Bill, | |
| 1040 | BackgroundTransparency = 1, | |
| 1041 | Size = UDim2.new(1, 0, 1, 0), | |
| 1042 | Image = "rbxassetid://" .. Image, | |
| 1043 | } | |
| 1044 | return BillPar | |
| 1045 | end | |
| 1046 | }; | |
| 1047 | ||
| 1048 | ParticleEmitter = {
| |
| 1049 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1050 | local Particle = Create("ParticleEmitter"){
| |
| 1051 | Parent = Parent, | |
| 1052 | Color = ColorSequence.new(Color1, Color2), | |
| 1053 | LightEmission = LightEmission, | |
| 1054 | Size = Size, | |
| 1055 | Texture = Texture, | |
| 1056 | Transparency = Transparency, | |
| 1057 | ZOffset = ZOffset, | |
| 1058 | Acceleration = Accel, | |
| 1059 | Drag = Drag, | |
| 1060 | LockedToPart = LockedToPart, | |
| 1061 | VelocityInheritance = VelocityInheritance, | |
| 1062 | EmissionDirection = EmissionDirection, | |
| 1063 | Enabled = Enabled, | |
| 1064 | Lifetime = LifeTime, | |
| 1065 | Rate = Rate, | |
| 1066 | Rotation = Rotation, | |
| 1067 | RotSpeed = RotSpeed, | |
| 1068 | Speed = Speed, | |
| 1069 | VelocitySpread = VelocitySpread, | |
| 1070 | } | |
| 1071 | return Particle | |
| 1072 | end; | |
| 1073 | }; | |
| 1074 | ||
| 1075 | CreateTemplate = {
| |
| 1076 | ||
| 1077 | }; | |
| 1078 | } | |
| 1079 | NewInstance = function(instance,parent,properties) | |
| 1080 | local inst = Instance.new(instance) | |
| 1081 | inst.Parent = parent | |
| 1082 | if(properties)then | |
| 1083 | for i,v in next, properties do | |
| 1084 | pcall(function() inst[i] = v end) | |
| 1085 | end | |
| 1086 | end | |
| 1087 | return inst; | |
| 1088 | end | |
| 1089 | ||
| 1090 | function rayCast(Position, Direction, Range, Ignore) | |
| 1091 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 1092 | end | |
| 1093 | local m = Create("Model"){
| |
| 1094 | Parent = char, | |
| 1095 | Name = "WeaponModel", | |
| 1096 | } | |
| 1097 | HandleL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "HandleL", Vector3.new(0.403949469, 0.000020112, 0.425030977)) | |
| 1098 | HandleLWeld = CFuncs.Weld.Create(m, char["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.637853563, -0.00000000000, 0.00182324648, 0, -1, 0, 1, 0, 0, 0, -0, 1)) | |
| 1099 | HitboxL = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Bright yellow", "HitboxL", Vector3.new(1.00394952, 0.05222011, 1.02503109)) | |
| 1100 | HitboxLWeld = CFuncs.Weld.Create(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999999642, 3.81469727e-006, 5.96046448e-008, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1101 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.401974738, 1.08532834, 0.40197292)) | |
| 1102 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.098050952, 0.00573730469, 0.171247482, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
| 1103 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1104 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1105 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.335890889, -0.251642227, 0.414461493, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1106 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481))
| |
| 1107 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0, 0, 0)) | |
| 1108 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.171247482, -0.548431277, 0.098050952, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
| 1109 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.194969907, 1))
| |
| 1110 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.281382293, 0.206172079, 0.281381041)) | |
| 1111 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.171247482, 0.536894917, 0.098050952, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
| 1112 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.194969907, 1))
| |
| 1113 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1114 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.251634598, 0.414469123, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1115 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481))
| |
| 1116 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1117 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.52296257, -0.166549563, 0.881902456, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
| 1118 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.389939725, 0.389939249))
| |
| 1119 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1120 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.502866745, -0.447936893, 0.208598971, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
| 1121 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.974849463, 0.877363384))
| |
| 1122 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1123 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.335906148, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1124 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654))
| |
| 1125 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1126 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.5229702, -0.155028343, 0.881904364, 0, -1, -0, 0, 0, -1, 1, 0, 0)) | |
| 1127 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.389939725, 0.389939249))
| |
| 1128 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1129 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1130 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654))
| |
| 1131 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part", Vector3.new(1.01297641, 0.562762797, 0.361775607)) | |
| 1132 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00271511078, -0.231538773, 0.72112453, 0, 0, 1, 0, -1, -0, 1, 0, 0)) | |
| 1133 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1134 | Part = CFuncs.Part.Create(m, Enum.Material.Metal, 0, 0, "Gold", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1135 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.347427249, -0.251642227, 0.404413581, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1136 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.974852681, 0.974849463, 0.194969654))
| |
| 1137 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1138 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.50287056, -0.436416715, 0.208604693, 0, -1, -0, 0, 0, -1, 1, 0, 0)) | |
| 1139 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.292455852, 0.974849463, 0.877363384))
| |
| 1140 | Part = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part", Vector3.new(1.0853318, 0.206172079, 0.261282384)) | |
| 1141 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.0196914673, -0.273781061, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 1142 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 1))
| |
| 1143 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1144 | PartWeld = CFuncs.Weld.Create(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.347427249, -0.251634598, 0.414469123, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1145 | CFuncs.Mesh.Create("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.779882133, 0.77987963, 0.292454481))
| |
| 1146 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1147 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.638334274, 0.120502472, -0.377624631, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1148 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1149 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1150 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.516500473, 0.0501613617, -0.377654195, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1151 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1152 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1153 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.39466095, -0.0201816559, -0.377624631, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1154 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1155 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.401974738, 0.572812021, 0.252237976)) | |
| 1156 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.339231372, -0.236558914, 0.383117557, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1157 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part2", Vector3.new(0.803949475, 0.452220112, 1.02503097)) | |
| 1158 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.500019014, 0.275951385, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1159 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.401974738, 0.572812021, 0.258267611)) | |
| 1160 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.339231372, -0.236558914, -0.374602437, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1161 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1162 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.63834095, 0.120515823, 0.384124637, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1163 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1164 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.562762797, 0.206172064)) | |
| 1165 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.364218116, -0.110958099, -0.496704191, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1166 | CFuncs.Mesh.Create("CylinderMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969654))
| |
| 1167 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.562762797, 0.206172064)) | |
| 1168 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.364216208, -0.11095047, 0.508239627, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1169 | CFuncs.Mesh.Create("CylinderMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969654))
| |
| 1170 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.206172079, 1.0049324)) | |
| 1171 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.374262214, 0.100086212, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1172 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.0974852666, 0.682394505, 1))
| |
| 1173 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1174 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.39466095, -0.0201721191, 0.384109378, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1175 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1176 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part2", Vector3.new(0.206172049, 0.683354914, 0.254247904)) | |
| 1177 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.516500473, 0.0501708984, 0.384094119, 0.866025984, 0.499998987, 0, 0.499998987, -0.866025984, 0, 0, 0, -1)) | |
| 1178 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389941067, 1, 1))
| |
| 1179 | Part2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part2", Vector3.new(0.663258314, 0.643157542, 1.04512966)) | |
| 1180 | Part2Weld = CFuncs.Weld.Create(m, HandleL, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0325930119, -0.151147842, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1181 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1182 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.357483745, -0.5254879, -0.640716434, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1183 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455643, 0.121856183, 0.292453945))
| |
| 1184 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.361777306, 0.206172079, 0.206172064)) | |
| 1185 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.062738657, -0.505384445, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1186 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.779878199))
| |
| 1187 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1188 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.35468328, -0.435037613, -0.335906148, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1189 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907))
| |
| 1190 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.643156648)) | |
| 1191 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.273779154, -0.50538826, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1192 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455524, 0.316826075, 1))
| |
| 1193 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1194 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508239627, 0.364208579, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1195 | CFuncs.Mesh.Create("SpecialMesh", Part3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 0.194969699, 0.194969684))
| |
| 1196 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 1.0049336, 0.206172064)) | |
| 1197 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.364208579, 0.00576782227, 0.17042923, -1, 0, -0, 0, 0, -1, 0, -1, -0)) | |
| 1198 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1199 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.663256168, 0.206172064)) | |
| 1200 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508239627, 0.0325796604, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1201 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1202 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.80495441, 0.206172079, 0.206172064)) | |
| 1203 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.520616472, -0.525484085, 0.00572109222, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1204 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.779878199))
| |
| 1205 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1206 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.515432358, 0.00573730469, -0.120672107, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
| 1207 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.414312303, 0.779879749, 0.414309978))
| |
| 1208 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.663256109, 0.206172064)) | |
| 1209 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496704191, 0.0325872898, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1210 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1211 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
| 1212 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.255522728, -0.409584224, -0.512922287, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1213 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1214 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.462270945, 0.206172079, 0.206172064)) | |
| 1215 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409576595, -0.502866745, 0.357467532, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1216 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 0.877363086))
| |
| 1217 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
| 1218 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.267042994, -0.40958041, -0.512926102, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1219 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1220 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.261283636, 0.462269485, 1.08532703)) | |
| 1221 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.273779154, -0.241586685, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1222 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1223 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.357467532, -0.522974014, -0.640716434, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1224 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367318, 0.0974849537, 0.877362907))
| |
| 1225 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.401973516, 0.206172064)) | |
| 1226 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.512922287, 0.00572109222, -0.118150592, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
| 1227 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389940947, 1, 0.389938712))
| |
| 1228 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.442170709, 0.206172064)) | |
| 1229 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.508209109, -0.0779570341, -0.472719193, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1230 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1231 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.723554611, 0.206172079, 0.40197283)) | |
| 1232 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.479927242, -0.512914658, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1233 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.389939815, 1))
| |
| 1234 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1235 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496718496, 0.364208579, 0.17042923, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1236 | CFuncs.Mesh.Create("SpecialMesh", Part3, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 0.194969699, 0.194969684))
| |
| 1237 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1238 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.345976949, -0.52296257, -0.640722156, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1239 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367318, 0.0974849537, 0.877362907))
| |
| 1240 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part3", Vector3.new(0.206172049, 0.442170709, 0.206172064)) | |
| 1241 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.496718496, -0.0779646635, -0.472719193, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1242 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1243 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
| 1244 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.436416715, -0.40958041, -0.512926102, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1245 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1246 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.683353961)) | |
| 1247 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.208598971, -0.502866745, 0.00576782227, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1248 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.877367556, 0.292454839, 1))
| |
| 1249 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.206172079, 0.241183683)) | |
| 1250 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.881908178, -0.512926102, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1251 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.389940947, 0.389939815, 1))
| |
| 1252 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.522567213, 0.206172079, 1.08532703)) | |
| 1253 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.143131495, -0.502866745, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1254 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 1))
| |
| 1255 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.206172049, 0.502466798, 0.206172064)) | |
| 1256 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.447936893, -0.409574687, -0.512914658, 0, 0, 1, -1, 0, -0, 0, -1, 0)) | |
| 1257 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.194970533, 1, 0.194969684))
| |
| 1258 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.944640577, 0.206172079, 0.206172064)) | |
| 1259 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.168390095, -0.50538826, 0.357513309, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1260 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.292454064))
| |
| 1261 | Part3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Bright yellow", "Part3", Vector3.new(0.462270945, 0.206172079, 0.206172064)) | |
| 1262 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.40957278, -0.502866745, -0.345976949, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1263 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.292454839, 0.877363086))
| |
| 1264 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1265 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354666114, -0.435037613, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1266 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907))
| |
| 1267 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.944640577, 0.206172079, 0.206172064)) | |
| 1268 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.168390095, -0.50538826, -0.345976949, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1269 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.316826075, 0.292454064))
| |
| 1270 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1271 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.35468328, -0.435037613, 0.347427249, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1272 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.492300361, 0.999220669, 0.38993907))
| |
| 1273 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, "New Yeller", "Part3", Vector3.new(0.206172049, 0.206172079, 0.206172064)) | |
| 1274 | Part3Weld = CFuncs.Weld.Create(m, HandleL, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.345976949, -0.525484085, -0.640727878, 0, 0, -1, 0, -1, -0, -1, 0, -0)) | |
| 1275 | CFuncs.Mesh.Create("CylinderMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.292455643, 0.121856183, 0.292453945))
| |
| 1276 | Part4 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part4", Vector3.new(1.04513443, 0.206172079, 0.206172064)) | |
| 1277 | Part4Weld = CFuncs.Weld.Create(m, HandleL, Part4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00573730469, -0.120185852, 0.349273562, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 1278 | CFuncs.Mesh.Create("SpecialMesh", Part4, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.487424731, 0.487424105))
| |
| 1279 | Part5 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part5", Vector3.new(1.04513443, 0.206172079, 0.206172064)) | |
| 1280 | Part5Weld = CFuncs.Weld.Create(m, HandleL, Part5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00573730469, -0.42247963, 0.349279284, 0, 0, 1, 0, -1, -0, 1, 0, 0)) | |
| 1281 | CFuncs.Mesh.Create("SpecialMesh", Part5, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.487424731, 0.487424105))
| |
| 1282 | Part6 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Gold", "Part6", Vector3.new(0.206172049, 0.442170829, 1.04512966)) | |
| 1283 | Part6Weld = CFuncs.Weld.Create(m, HandleL, Part6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.349294543, -0.151140213, 0.00573730469, 1, 0, 0, 0, -1, -0, 0, 0, -1)) | |
| 1284 | CFuncs.Mesh.Create("BlockMesh", Part6, "", "", Vector3.new(0, 0, 0), Vector3.new(0.48742649, 1, 1))
| |
| 1285 | sref = CFuncs.Part.Create(char, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
| |
| 1286 | sref.Anchored = true | |
| 1287 | ||
| 1288 | ACOS = math.acos | |
| 1289 | ang = CFrame.Angles | |
| 1290 | SIN = math.sin | |
| 1291 | cf = CFrame.new | |
| 1292 | COS = math.cos | |
| 1293 | rd = math.rad | |
| 1294 | rd2 = math.random | |
| 1295 | Heartbeat = Instance.new("BindableEvent")
| |
| 1296 | Heartbeat.Name = "Heartbeat" | |
| 1297 | Heartbeat.Parent = script | |
| 1298 | local LeftShoulder = torso["Left Shoulder"] | |
| 1299 | local Left_Hip = torso["Left Hip"] | |
| 1300 | local RightShoulder = torso["Right Shoulder"] | |
| 1301 | local Right_Hip = torso["Right Hip"] | |
| 1302 | ||
| 1303 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1304 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1305 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1306 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1307 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1308 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1309 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1310 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1311 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1312 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1313 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1314 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 1315 | RS = torso:FindFirstChild("Right Shoulder")
| |
| 1316 | LS = torso:FindFirstChild("Left Shoulder")
| |
| 1317 | RH = torso:FindFirstChild("Right Hip")
| |
| 1318 | LH = torso:FindFirstChild("Left Hip")
| |
| 1319 | RJ = root:FindFirstChild("RootJoint")
| |
| 1320 | N = torso:FindFirstChild("Neck")
| |
| 1321 | ||
| 1322 | ||
| 1323 | local UltimateBattle = Instance.new("Sound",hed)
| |
| 1324 | UltimateBattle.SoundId = "rbxassetid://1333021608" | |
| 1325 | UltimateBattle.Pitch = 1 | |
| 1326 | UltimateBattle.Looped = true | |
| 1327 | UltimateBattle.Volume = 5 | |
| 1328 | UltimateBattle:Play() | |
| 1329 | ||
| 1330 | ||
| 1331 | ||
| 1332 | ||
| 1333 | ||
| 1334 | ||
| 1335 | function QuaternionFromCFrame(cf) | |
| 1336 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1337 | local trace = m00 + m11 + m22 | |
| 1338 | if trace > 0 then | |
| 1339 | local s = math.sqrt(1 + trace) | |
| 1340 | local recip = 0.5 / s | |
| 1341 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 1342 | else | |
| 1343 | local i = 0 | |
| 1344 | if m11 > m00 then | |
| 1345 | i = 1 | |
| 1346 | end | |
| 1347 | if m22 > (i == 0 and m00 or m11) then | |
| 1348 | i = 2 | |
| 1349 | end | |
| 1350 | if i == 0 then | |
| 1351 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 1352 | local recip = 0.5 / s | |
| 1353 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 1354 | elseif i == 1 then | |
| 1355 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 1356 | local recip = 0.5 / s | |
| 1357 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 1358 | elseif i == 2 then | |
| 1359 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 1360 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 1361 | end | |
| 1362 | end | |
| 1363 | end | |
| 1364 | ||
| 1365 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1366 | local xs, ys, zs = x + x, y + y, z + z | |
| 1367 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 1368 | local xx = x * xs | |
| 1369 | local xy = x * ys | |
| 1370 | local xz = x * zs | |
| 1371 | local yy = y * ys | |
| 1372 | local yz = y * zs | |
| 1373 | local zz = z * zs | |
| 1374 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 1375 | end | |
| 1376 | ||
| 1377 | function QuaternionSlerp(a, b, t) | |
| 1378 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 1379 | local startInterp, finishInterp; | |
| 1380 | if cosTheta >= 0.0001 then | |
| 1381 | if (1 - cosTheta) > 0.0001 then | |
| 1382 | local theta = ACOS(cosTheta) | |
| 1383 | local invSinTheta = 1 / SIN(theta) | |
| 1384 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 1385 | finishInterp = SIN(t * theta) * invSinTheta | |
| 1386 | else | |
| 1387 | startInterp = 1 - t | |
| 1388 | finishInterp = t | |
| 1389 | end | |
| 1390 | else | |
| 1391 | if (1 + cosTheta) > 0.0001 then | |
| 1392 | local theta = ACOS(-cosTheta) | |
| 1393 | local invSinTheta = 1 / SIN(theta) | |
| 1394 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 1395 | finishInterp = SIN(t * theta) * invSinTheta | |
| 1396 | else | |
| 1397 | startInterp = t - 1 | |
| 1398 | finishInterp = t | |
| 1399 | end | |
| 1400 | end | |
| 1401 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 1402 | end | |
| 1403 | ||
| 1404 | function Clerp(a, b, t) | |
| 1405 | local qa = {QuaternionFromCFrame(a)}
| |
| 1406 | local qb = {QuaternionFromCFrame(b)}
| |
| 1407 | local ax, ay, az = a.x, a.y, a.z | |
| 1408 | local bx, by, bz = b.x, b.y, b.z | |
| 1409 | local _t = 1 - t | |
| 1410 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 1411 | end | |
| 1412 | ||
| 1413 | main = {r = 0;g = 100;b = 255;v = 1}
| |
| 1414 | if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
| |
| 1415 | if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
| |
| 1416 | if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
| |
| 1417 | if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
| |
| 1418 | if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
| |
| 1419 | if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
| |
| 1420 | pr = p:FindFirstChild("rcolor")
| |
| 1421 | pg = p:FindFirstChild("gcolor")
| |
| 1422 | pb = p:FindFirstChild("bcolor")
| |
| 1423 | pv = p:FindFirstChild("vcolor")
| |
| 1424 | idth = p:FindFirstChild("idtheme")
| |
| 1425 | pith = p:FindFirstChild("pitchtheme")
| |
| 1426 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
| 1427 | explosionid = {144699494,144699494}
| |
| 1428 | punch = {545219984}
| |
| 1429 | --919941001 | |
| 1430 | Prefix = "/" | |
| 1431 | p.Chatted:connect(function(msg) | |
| 1432 | ||
| 1433 | if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then | |
| 1434 | local v = tonumber(msg:sub(#Prefix+#'color r '+1)) | |
| 1435 | main.r = v | |
| 1436 | elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then | |
| 1437 | local v = tonumber(msg:sub(#Prefix+#'color g '+1)) | |
| 1438 | main.g = v | |
| 1439 | elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then | |
| 1440 | local v = tonumber(msg:sub(#Prefix+#'color b '+1)) | |
| 1441 | main.b = v | |
| 1442 | elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then | |
| 1443 | local v = tonumber(msg:sub(#Prefix+#'color v '+1)) | |
| 1444 | if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end | |
| 1445 | ||
| 1446 | elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then | |
| 1447 | local v = tonumber(msg:sub(#Prefix+#'theme '+1)) | |
| 1448 | themeid = v | |
| 1449 | music(themeid,themepitch) | |
| 1450 | ||
| 1451 | elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then | |
| 1452 | local v = tonumber(msg:sub(#Prefix+#'pitch '+1)) | |
| 1453 | themepitch = v | |
| 1454 | music(themeid,themepitch) | |
| 1455 | ||
| 1456 | elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then | |
| 1457 | local v = msg:sub(#Prefix+#'prefix '+1) | |
| 1458 | Prefix = v | |
| 1459 | ||
| 1460 | elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then | |
| 1461 | main.r = 0 | |
| 1462 | main.g = 100 | |
| 1463 | main.b = 255 | |
| 1464 | main.v = 1 | |
| 1465 | themeid = 556122490 | |
| 1466 | themepitch = 1 | |
| 1467 | music(themeid,themepitch) | |
| 1468 | ||
| 1469 | end | |
| 1470 | ||
| 1471 | end) | |
| 1472 | ---------------------------------------------------------------------------- | |
| 1473 | no_anim = false | |
| 1474 | attack = false | |
| 1475 | attacking = false | |
| 1476 | canjump = true | |
| 1477 | aiming_anim = false | |
| 1478 | animid = math.random(0,1) | |
| 1479 | timer = 0 | |
| 1480 | bg = Instance.new("BodyGyro",root)
| |
| 1481 | bg.P = 100000 | |
| 1482 | bg.D = 100 | |
| 1483 | ---------------------------------------------------------------------------- | |
| 1484 | ||
| 1485 | ---- | |
| 1486 | function rswait(value) | |
| 1487 | if value ~= nil and value ~= 0 then | |
| 1488 | for i=1,value do | |
| 1489 | rs:wait() | |
| 1490 | end | |
| 1491 | else | |
| 1492 | rs:wait() | |
| 1493 | end | |
| 1494 | end | |
| 1495 | ||
| 1496 | ---- | |
| 1497 | local maincolor = BrickColor.new("Really red")
| |
| 1498 | function Eviscerate(dude) | |
| 1499 | if dude.Name ~= char then | |
| 1500 | ||
| 1501 | local val = Instance.new("BoolValue", dude)
| |
| 1502 | val.Name = "IsHit" | |
| 1503 | local ds = coroutine.wrap(function() | |
| 1504 | dude:BreakJoints() | |
| 1505 | wait(0) | |
| 1506 | local Vanish = Instance.new("Sound",dude)
| |
| 1507 | Vanish.SoundId = "rbxassetid://427025525" | |
| 1508 | Vanish.Volume = 0.5 | |
| 1509 | Vanish.Pitch = 0.6 | |
| 1510 | Vanish.Looped = false | |
| 1511 | wait(0.01) | |
| 1512 | Vanish:Play() | |
| 1513 | coroutine.resume(coroutine.create(function() | |
| 1514 | for i, v in pairs(dude:GetChildren()) do | |
| 1515 | if v:IsA("Accessory") then
| |
| 1516 | v:Destroy() | |
| 1517 | end | |
| 1518 | ||
| 1519 | if v:IsA("CharacterMesh") then
| |
| 1520 | v:Destroy() | |
| 1521 | end | |
| 1522 | if v:IsA("Model") then
| |
| 1523 | v:Destroy() | |
| 1524 | end | |
| 1525 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1526 | for x, o in pairs(v:GetChildren()) do | |
| 1527 | if o:IsA("Decal") then
| |
| 1528 | o:Destroy() | |
| 1529 | end | |
| 1530 | end | |
| 1531 | coroutine.resume(coroutine.create(function() | |
| 1532 | v.Material = "Grass" | |
| 1533 | v.CanCollide = false | |
| 1534 | ||
| 1535 | coroutine.resume(coroutine.create(function() | |
| 1536 | for i = 1,45 do | |
| 1537 | v.Transparency = v.Transparency + 0.04 | |
| 1538 | wait(0.00000000001) | |
| 1539 | end | |
| 1540 | ||
| 1541 | ||
| 1542 | end)) | |
| 1543 | ||
| 1544 | local Aura = Instance.new("ParticleEmitter",v)
| |
| 1545 | Aura.Texture = "rbxassetid://1084976679" | |
| 1546 | Aura.Color = ColorSequence.new(BrickColor.new("Dirt brown").Color)
| |
| 1547 | Aura.EmissionDirection = "Top" | |
| 1548 | Aura.Speed = NumberRange.new(0) | |
| 1549 | Aura.Size = NumberSequence.new(2.5) | |
| 1550 | Aura.Transparency = NumberSequence.new(0,1) | |
| 1551 | Aura.Drag = 0.4 | |
| 1552 | Aura.LightInfluence = 0 | |
| 1553 | Aura.LockedToPart = true | |
| 1554 | Aura.Lifetime = NumberRange.new(0.9) | |
| 1555 | Aura.Rate = 260 | |
| 1556 | Aura.LightEmission = 1 | |
| 1557 | Aura.Rotation = NumberRange.new(-360,360) | |
| 1558 | Aura.VelocitySpread = 0 | |
| 1559 | Aura.Acceleration = Vector3.new(0,10,0) | |
| 1560 | Aura.ZOffset = 0.2 | |
| 1561 | local BodPoss = Instance.new("BodyPosition", v)
| |
| 1562 | BodPoss.P = 3000 | |
| 1563 | BodPoss.D = 1000 | |
| 1564 | BodPoss.maxForce = Vector3.new(500, 5000, 500) | |
| 1565 | BodPoss.position = v.Position + Vector3.new(rd2(-2, 0), rd2(-0, 0), rd2(-0, 0)) | |
| 1566 | v.BrickColor = BrickColor.new("Dirt brown")
| |
| 1567 | ||
| 1568 | wait(1.3) | |
| 1569 | Aura.Enabled = false | |
| 1570 | wait(1.5) | |
| 1571 | v:Destroy() | |
| 1572 | ||
| 1573 | dude:Destroy() | |
| 1574 | end)) | |
| 1575 | end | |
| 1576 | ||
| 1577 | end | |
| 1578 | end)) | |
| 1579 | end) | |
| 1580 | ds() | |
| 1581 | end | |
| 1582 | end | |
| 1583 | function Snap(dude) | |
| 1584 | if dude.Name ~= char then | |
| 1585 | local bgf = Instance.new("BodyGyro", dude.Head)
| |
| 1586 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(rd(-90), 0, 0) | |
| 1587 | local val = Instance.new("BoolValue", dude)
| |
| 1588 | val.Name = "IsHit" | |
| 1589 | local ds = coroutine.wrap(function() | |
| 1590 | dude:BreakJoints() | |
| 1591 | wait(0) | |
| 1592 | ||
| 1593 | coroutine.resume(coroutine.create(function() | |
| 1594 | for i, v in pairs(dude:GetChildren()) do | |
| 1595 | if v:IsA("Accessory") then
| |
| 1596 | v:Destroy() | |
| 1597 | end | |
| 1598 | ||
| 1599 | if v:IsA("CharacterMesh") then
| |
| 1600 | v:Destroy() | |
| 1601 | end | |
| 1602 | if v:IsA("Model") then
| |
| 1603 | v:Destroy() | |
| 1604 | end | |
| 1605 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1606 | for x, o in pairs(v:GetChildren()) do | |
| 1607 | if o:IsA("Decal") then
| |
| 1608 | o:Destroy() | |
| 1609 | end | |
| 1610 | end | |
| 1611 | coroutine.resume(coroutine.create(function() | |
| 1612 | ||
| 1613 | v.Material = "Neon" | |
| 1614 | local PartEmmit1 = Instance.new("ParticleEmitter", v)
| |
| 1615 | PartEmmit1.LightEmission = 1 | |
| 1616 | PartEmmit1.Texture = "rbxassetid://520049620" | |
| 1617 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1618 | PartEmmit1.Rate = 150 | |
| 1619 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1620 | PartEmmit1.Size = NumberSequence.new({
| |
| 1621 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1622 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1623 | }) | |
| 1624 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1625 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1626 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1627 | }) | |
| 1628 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1629 | PartEmmit1.VelocitySpread = 30000 | |
| 1630 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1631 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1632 | local BodPoss = Instance.new("BodyPosition", v)
| |
| 1633 | BodPoss.P = 3000 | |
| 1634 | BodPoss.D = 1000 | |
| 1635 | BodPoss.maxForce = Vector3.new(200000, 200000, 200000) | |
| 1636 | BodPoss.position = v.Position + Vector3.new(rd2(-1, 1), rd2(-1, 1), rd2(-1, 1)) | |
| 1637 | v.BrickColor = BrickColor.new("Really red")
| |
| 1638 | coroutine.resume(coroutine.create(function() | |
| 1639 | for i = 0, 49 do | |
| 1640 | swait(1) | |
| 1641 | ||
| 1642 | end | |
| 1643 | wait(0.5) | |
| 1644 | PartEmmit1.Enabled = false | |
| 1645 | wait(3) | |
| 1646 | v:Destroy() | |
| 1647 | dude:Destroy() | |
| 1648 | end)) | |
| 1649 | end)) | |
| 1650 | end | |
| 1651 | end | |
| 1652 | end)) | |
| 1653 | end) | |
| 1654 | ds() | |
| 1655 | end | |
| 1656 | end | |
| 1657 | function Rock(stone) | |
| 1658 | if stone.Name ~= char then | |
| 1659 | ||
| 1660 | local val = Instance.new("BoolValue", stone)
| |
| 1661 | val.Name = "IsHit" | |
| 1662 | local ds = coroutine.wrap(function() | |
| 1663 | stone:BreakJoints() | |
| 1664 | wait(0) | |
| 1665 | ||
| 1666 | coroutine.resume(coroutine.create(function() | |
| 1667 | for i, v in pairs(stone:GetChildren()) do | |
| 1668 | if v:IsA("Accessory") then
| |
| 1669 | v:Destroy() | |
| 1670 | end | |
| 1671 | ||
| 1672 | if v:IsA("CharacterMesh") then
| |
| 1673 | v:Destroy() | |
| 1674 | end | |
| 1675 | if v:IsA("Model") then
| |
| 1676 | v:Destroy() | |
| 1677 | end | |
| 1678 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1679 | for x, o in pairs(v:GetChildren()) do | |
| 1680 | if o:IsA("Decal") then
| |
| 1681 | o:Destroy() | |
| 1682 | end | |
| 1683 | end | |
| 1684 | coroutine.resume(coroutine.create(function() | |
| 1685 | ||
| 1686 | v.Material = "Slate" | |
| 1687 | v.CanCollide = true | |
| 1688 | local BodPoss = Instance.new("BodyPosition", v)
| |
| 1689 | BodPoss.P = 3000 | |
| 1690 | BodPoss.D = 1000 | |
| 1691 | BodPoss.maxForce = Vector3.new(500, 5000, 500) | |
| 1692 | BodPoss.position = v.Position + Vector3.new(rd2(-5, 5), rd2(-0, 0), rd2(-0, 0)) | |
| 1693 | ||
| 1694 | v.BrickColor = BrickColor.new("Dark stone grey")
| |
| 1695 | wait(0.1) | |
| 1696 | BodPoss:Destroy() | |
| 1697 | coroutine.resume(coroutine.create(function() | |
| 1698 | for i = 0, 49 do | |
| 1699 | swait(1) | |
| 1700 | ||
| 1701 | end | |
| 1702 | wait(0.5) | |
| 1703 | ||
| 1704 | wait(3) | |
| 1705 | ||
| 1706 | end)) | |
| 1707 | end)) | |
| 1708 | end | |
| 1709 | end | |
| 1710 | end)) | |
| 1711 | end) | |
| 1712 | ds() | |
| 1713 | end | |
| 1714 | end | |
| 1715 | ---------------------------------------------------------------------------- | |
| 1716 | local instinct = true | |
| 1717 | ||
| 1718 | ||
| 1719 | --- | |
| 1720 | Instance.new("ForceField",char).Visible = false
| |
| 1721 | hum:SetStateEnabled("Dead",false)
| |
| 1722 | hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
| 1723 | --- | |
| 1724 | ||
| 1725 | --- | |
| 1726 | ||
| 1727 | local MUI = false | |
| 1728 | ||
| 1729 | ||
| 1730 | max = 0 | |
| 1731 | function music(id,pitch) | |
| 1732 | max = 0 | |
| 1733 | if id == "Stop" then | |
| 1734 | if not torso:FindFirstChild("MusicRuin") then
| |
| 1735 | soundz = Instance.new("Sound",torso)
| |
| 1736 | end | |
| 1737 | soundz:Stop() | |
| 1738 | else | |
| 1739 | if not torso:FindFirstChild("MusicRuin") then
| |
| 1740 | soundz = Instance.new("Sound",torso)
| |
| 1741 | end | |
| 1742 | soundz.MaxDistance = 150*5 | |
| 1743 | soundz.EmitterSize = 150/5 | |
| 1744 | soundz.Volume = 10 | |
| 1745 | soundz.Name = "MusicRuin" | |
| 1746 | soundz.Looped = true | |
| 1747 | soundz.PlaybackSpeed = pitch | |
| 1748 | soundz.SoundId = "rbxassetid://"..id | |
| 1749 | soundz:Stop() | |
| 1750 | soundz:Play() | |
| 1751 | end | |
| 1752 | end | |
| 1753 | ||
| 1754 | ---------------------------------------------------------------------------- | |
| 1755 | ||
| 1756 | function lerp(a, b, t) | |
| 1757 | return a + (b - a)*t | |
| 1758 | end | |
| 1759 | ||
| 1760 | ---------------------------------------------------------------------------- | |
| 1761 | ||
| 1762 | function Lerp(c1,c2,al) | |
| 1763 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 1764 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 1765 | for i,v in pairs(com1) do | |
| 1766 | com1[i] = v+(com2[i]-v)*al | |
| 1767 | end | |
| 1768 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 1769 | end | |
| 1770 | ||
| 1771 | ---------------------------------------------------------------------------- | |
| 1772 | ||
| 1773 | function slerp(a, b, t) | |
| 1774 | dot = a:Dot(b) | |
| 1775 | if dot > 0.99999 or dot < -0.99999 then | |
| 1776 | return t <= 0.5 and a or b | |
| 1777 | else | |
| 1778 | r = math.acos(dot) | |
| 1779 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 1780 | end | |
| 1781 | end | |
| 1782 | ||
| 1783 | ---------------------------------------------------------------------------- | |
| 1784 | ||
| 1785 | function clerp(c1,c2,al) | |
| 1786 | ||
| 1787 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 1788 | ||
| 1789 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 1790 | ||
| 1791 | for i,v in pairs(com1) do | |
| 1792 | ||
| 1793 | com1[i] = lerp(v,com2[i],al) | |
| 1794 | ||
| 1795 | end | |
| 1796 | ||
| 1797 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 1798 | ||
| 1799 | end | |
| 1800 | ||
| 1801 | ---------------------------------------------------------------------------- | |
| 1802 | ||
| 1803 | ||
| 1804 | ||
| 1805 | ------------------- | |
| 1806 | function findAllNearestTorso(pos,dist) | |
| 1807 | local list = game.Workspace:children() | |
| 1808 | local torso = {}
| |
| 1809 | local temp = nil | |
| 1810 | local human = nil | |
| 1811 | local temp2 = nil | |
| 1812 | for x = 1, #list do | |
| 1813 | temp2 = list[x] | |
| 1814 | if (temp2.className == "Model") and (temp2 ~= char) then | |
| 1815 | local nayem = "Torso" | |
| 1816 | if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
| |
| 1817 | temp = temp2:findFirstChild(nayem) | |
| 1818 | human = temp2:findFirstChildOfClass("Humanoid")
| |
| 1819 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 1820 | if (temp.Position - pos).magnitude < dist then | |
| 1821 | table.insert(torso,temp) | |
| 1822 | dist = (temp.Position - pos).magnitude | |
| 1823 | end | |
| 1824 | end | |
| 1825 | end | |
| 1826 | end | |
| 1827 | return torso | |
| 1828 | end | |
| 1829 | ||
| 1830 | ---------------------------------------------------------------------------- | |
| 1831 | ||
| 1832 | local isAPlayer | |
| 1833 | function checkIfNotPlayer(model) | |
| 1834 | coroutine.resume(coroutine.create(function() | |
| 1835 | if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then | |
| 1836 | isAPlayer = true | |
| 1837 | else | |
| 1838 | isAPlayer = false | |
| 1839 | end | |
| 1840 | end)) | |
| 1841 | return isAPlayer | |
| 1842 | end | |
| 1843 | ||
| 1844 | ---------------------------------------------------------------------------- | |
| 1845 | ||
| 1846 | function computeDirection(vec) | |
| 1847 | local lenSquared = vec.magnitude * vec.magnitude | |
| 1848 | local invSqrt = 1 / math.sqrt(lenSquared) | |
| 1849 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
| 1850 | end | |
| 1851 | ||
| 1852 | ---------------------------------------------------------------------------- | |
| 1853 | ||
| 1854 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 1855 | ||
| 1856 | local wld = Instance.new("Weld", wp1)
| |
| 1857 | ||
| 1858 | wld.Part0 = wp0 | |
| 1859 | ||
| 1860 | wld.Part1 = wp1 | |
| 1861 | ||
| 1862 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 1863 | ||
| 1864 | return wld | |
| 1865 | ||
| 1866 | end | |
| 1867 | ||
| 1868 | ---------------------------------------------------------------------------- | |
| 1869 | ||
| 1870 | function weld(model) | |
| 1871 | local parts,last = {}
| |
| 1872 | local function scan(parent) | |
| 1873 | for _,v in pairs(parent:GetChildren()) do | |
| 1874 | if (v:IsA("BasePart")) then
| |
| 1875 | if (last) then | |
| 1876 | local w = Instance.new("Weld")
| |
| 1877 | w.Name = ("%s_Weld"):format(v.Name)
| |
| 1878 | w.Part0,w.Part1 = last,v | |
| 1879 | w.C0 = last.CFrame:inverse() | |
| 1880 | w.C1 = v.CFrame:inverse() | |
| 1881 | w.Parent = last | |
| 1882 | end | |
| 1883 | last = v | |
| 1884 | table.insert(parts,v) | |
| 1885 | end | |
| 1886 | scan(v) | |
| 1887 | end | |
| 1888 | end | |
| 1889 | scan(model) | |
| 1890 | for _,v in pairs(parts) do | |
| 1891 | v.Anchored = false | |
| 1892 | v.Locked = true | |
| 1893 | end | |
| 1894 | end | |
| 1895 | ||
| 1896 | ---------------------------------------------------------------------------- | |
| 1897 | ||
| 1898 | function sound(id,position,vol,pitch,dist,start,finish) | |
| 1899 | coroutine.resume(coroutine.create(function() | |
| 1900 | ||
| 1901 | local part = Instance.new("Part",DebrisModel)
| |
| 1902 | part.Anchored = true | |
| 1903 | part.Position = position | |
| 1904 | part.Size = Vector3.new(0,0,0) | |
| 1905 | part.CanCollide = false | |
| 1906 | part.Transparency = 1 | |
| 1907 | ||
| 1908 | soundasd = Instance.new("Sound",part)
| |
| 1909 | ||
| 1910 | soundasd.SoundId = "rbxassetid://"..id | |
| 1911 | ||
| 1912 | if vol ~= nil then | |
| 1913 | soundasd.Volume = vol | |
| 1914 | end | |
| 1915 | ||
| 1916 | if pitch ~= nil then | |
| 1917 | soundasd.PlaybackSpeed = pitch | |
| 1918 | end | |
| 1919 | ||
| 1920 | if dist ~= nil then | |
| 1921 | soundasd.MaxDistance = dist*5 | |
| 1922 | soundasd.EmitterSize = dist/5 | |
| 1923 | end | |
| 1924 | ||
| 1925 | delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end) | |
| 1926 | ||
| 1927 | soundasd:Play() | |
| 1928 | ||
| 1929 | end)) | |
| 1930 | return soundasd | |
| 1931 | end | |
| 1932 | ||
| 1933 | function createsound(id,parent) | |
| 1934 | ||
| 1935 | local soundz = Instance.new("Sound",parent)
| |
| 1936 | ||
| 1937 | soundz.SoundId = "rbxassetid://"..id | |
| 1938 | ||
| 1939 | return soundz | |
| 1940 | ||
| 1941 | end | |
| 1942 | ||
| 1943 | function playsound(sond,vol,pitch,start) | |
| 1944 | ||
| 1945 | if vol ~= nil then | |
| 1946 | sond.Volume = vol | |
| 1947 | end | |
| 1948 | ||
| 1949 | if pitch ~= nil then | |
| 1950 | sond.PlaybackSpeed = pitch | |
| 1951 | end | |
| 1952 | ||
| 1953 | if start ~= nil then | |
| 1954 | sond.TimePosition = start | |
| 1955 | end | |
| 1956 | ||
| 1957 | sond:Play() | |
| 1958 | ||
| 1959 | end | |
| 1960 | ||
| 1961 | ---------------------------------------------------------------------------- | |
| 1962 | eColors={"Really red","Really black"}
| |
| 1963 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) | |
| 1964 | local magz = (Part0 - Part1).magnitude | |
| 1965 | local curpos = Part0 | |
| 1966 | local trz = {-Offset,Offset}
| |
| 1967 | for i=1,Times do | |
| 1968 | local li = Instance.new("Part", DebrisModel)
| |
| 1969 | li.TopSurface =0 | |
| 1970 | li.Material = Enum.Material.Neon | |
| 1971 | li.BottomSurface = 0 | |
| 1972 | li.Anchored = true | |
| 1973 | li.Locked = true | |
| 1974 | li.Transparency = Trans or 0.4 | |
| 1975 | li.BrickColor = BrickColor.new(Color) | |
| 1976 | li.formFactor = "Custom" | |
| 1977 | li.CanCollide = false | |
| 1978 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
| 1979 | local lim = Instance.new("BlockMesh",li)
| |
| 1980 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 1981 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
| 1982 | if Times == i then | |
| 1983 | local magz2 = (curpos - Part1).magnitude | |
| 1984 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 1985 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
| 1986 | else | |
| 1987 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 1988 | end | |
| 1989 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
| 1990 | li.Name = "LIGHTNING" | |
| 1991 | end | |
| 1992 | end | |
| 1993 | ||
| 1994 | ---------------------------------------------------------------------------- | |
| 1995 | ||
| 1996 | ||
| 1997 | local HBill = Instance.new("BillboardGui",hed)
| |
| 1998 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
| |
| 1999 | local HName = Instance.new("TextLabel")
| |
| 2000 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 2001 | HBill.StudsOffset = Vector3.new(3.675,1.2,0) | |
| 2002 | HBill.AlwaysOnTop = true | |
| 2003 | HBill.Enabled = true | |
| 2004 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2005 | HMain.BackgroundTransparency = 1 | |
| 2006 | HMain.Size = UDim2.new(.5,0,.2,0) | |
| 2007 | HName.Parent = HMain | |
| 2008 | HName.BackgroundTransparency = 1 | |
| 2009 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
| 2010 | HName.BorderColor3 = Color3.new(0,0,0) | |
| 2011 | HName.BorderSizePixel = 2 | |
| 2012 | HName.TextTransparency = 1 | |
| 2013 | HName.Size = UDim2.new(1,0,.75,0) | |
| 2014 | HName.Font = "Code" | |
| 2015 | HName.Text = [[ok]] | |
| 2016 | HName.TextScaled = true | |
| 2017 | HName.TextColor3 = Color3.new(0.5,0.5,0.5) | |
| 2018 | HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1) | |
| 2019 | HName.TextStrokeTransparency = 1 | |
| 2020 | HName.TextYAlignment = "Bottom" | |
| 2021 | ||
| 2022 | local HBill = Instance.new("BillboardGui",hed)
| |
| 2023 | local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
| |
| 2024 | local HName = Instance.new("TextLabel")
| |
| 2025 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 2026 | HBill.StudsOffset = Vector3.new(3.675,2,0) | |
| 2027 | HBill.AlwaysOnTop = true | |
| 2028 | HBill.Enabled = true | |
| 2029 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2030 | HMain.BackgroundTransparency = 1 | |
| 2031 | HMain.Size = UDim2.new(.5,0,.5,0) | |
| 2032 | HName.Parent = HMain | |
| 2033 | HName.BackgroundTransparency = 1 | |
| 2034 | HName.BackgroundColor3 = Color3.new(255,255,255) | |
| 2035 | HName.BorderColor3 = Color3.new(0,0,0) | |
| 2036 | HName.BorderSizePixel = 2 | |
| 2037 | HName.Size = UDim2.new(1,0,.75,0) | |
| 2038 | HName.Font = "Code" | |
| 2039 | HName.TextTransparency = 1 | |
| 2040 | HName.Text = [[hi]] | |
| 2041 | HName.TextScaled = true | |
| 2042 | HName.TextColor3 = Color3.new(0,0,0) | |
| 2043 | HName.TextStrokeColor3 = Color3.new(255,255,255) | |
| 2044 | HName.TextStrokeTransparency = 1 | |
| 2045 | HName.TextYAlignment = "Bottom" | |
| 2046 | ||
| 2047 | function bigboomrektxd() | |
| 2048 | coroutine.resume(coroutine.create(function() | |
| 2049 | local magnitude = nil | |
| 2050 | local Position = nil | |
| 2051 | if animid == 0 then | |
| 2052 | Position = larm.Position | |
| 2053 | else | |
| 2054 | Position = rarm.Position | |
| 2055 | end | |
| 2056 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2057 | sound(1050751126,Position,10,math.random(10,12)/10,50) | |
| 2058 | ||
| 2059 | local Part1 = Instance.new("Part")
| |
| 2060 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2061 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2062 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2063 | Part1.Material = Enum.Material.Neon | |
| 2064 | Part1.CanCollide = false | |
| 2065 | Part1.BrickColor = BrickColor.new("White")
| |
| 2066 | Part1.Parent = DebrisModel | |
| 2067 | Part1.Size = Vector3.new(0,0,0) | |
| 2068 | Part1.Anchored = true | |
| 2069 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2070 | Part1.Name = "EXPLOSION2" | |
| 2071 | ||
| 2072 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 2073 | local PointLight2 = Instance.new("PointLight")
| |
| 2074 | Part0.Name = "Bullet" | |
| 2075 | Part0.Material = Enum.Material.Neon | |
| 2076 | Part0.BrickColor = BrickColor.new("New Yeller")
| |
| 2077 | Part0.Anchored = false | |
| 2078 | Part0.Size = Vector3.new(5, 5, 5) | |
| 2079 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 2080 | mesh.MeshType = Enum.MeshType.Sphere | |
| 2081 | local bforce = Instance.new("BodyForce",Part0)
| |
| 2082 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 2083 | Part0.CanCollide = false | |
| 2084 | PointLight2.Parent = Part0 | |
| 2085 | PointLight2.Color = Part0.Color | |
| 2086 | local Target = mouse.Hit.p | |
| 2087 | local direction = Target - Position | |
| 2088 | local direction = computeDirection(direction) | |
| 2089 | local pos = Position + (direction * 2) | |
| 2090 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 2091 | Part0.Velocity = direction * 60 | |
| 2092 | local asd = nil | |
| 2093 | local loop = nil | |
| 2094 | delay(9, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 2095 | loop = rs:connect(function() | |
| 2096 | local asdf = math.random(500,1000)/1000 | |
| 2097 | local Part1 = Instance.new("Part")
| |
| 2098 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2099 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2100 | Part1.Material = Enum.Material.Neon | |
| 2101 | Part1.CanCollide = false | |
| 2102 | Part1.BrickColor = BrickColor.new("Gold")
| |
| 2103 | Part1.Parent = DebrisModel | |
| 2104 | Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf) | |
| 2105 | Part1.Anchored = true | |
| 2106 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
| 2107 | Part1.Name = "SMOKE" | |
| 2108 | end) | |
| 2109 | asd = Part0.Touched:connect(function(ht) | |
| 2110 | local hit=ht.Parent | |
| 2111 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
| 2112 | asd:disconnect() | |
| 2113 | loop:disconnect() | |
| 2114 | Part0:Destroy() | |
| 2115 | ||
| 2116 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,5,math.random(6,9)/10,80) | |
| 2117 | for i,v in pairs(findAllNearestTorso(Part0.Position,5)) do | |
| 2118 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2119 | v:Destroy() | |
| 2120 | else | |
| 2121 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
| |
| 2122 | end | |
| 2123 | local Position = Part0.Position | |
| 2124 | local Target = v.Position | |
| 2125 | local direction = Target - Position | |
| 2126 | local direction = computeDirection(direction) | |
| 2127 | local bv = Instance.new("BodyVelocity",v)
| |
| 2128 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
| 2129 | debris:AddItem(bv,1) | |
| 2130 | end | |
| 2131 | for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end | |
| 2132 | for z=1,math.random(2,3) do | |
| 2133 | local asdf = math.random(-5,5)*10-(i/20)*8 | |
| 2134 | local Part1 = Instance.new("Part")
| |
| 2135 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2136 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2137 | mesh2.Scale = Vector3.new(0,0,0) | |
| 2138 | Part1.Material = Enum.Material.Neon | |
| 2139 | Part1.CanCollide = false | |
| 2140 | Part1.BrickColor = BrickColor.new("Gold")
| |
| 2141 | Part1.Parent = DebrisModel | |
| 2142 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 2143 | Part1.Anchored = true | |
| 2144 | local a = i*0.5 | |
| 2145 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a)) | |
| 2146 | Part1.Name = "EXPLOSION" | |
| 2147 | end | |
| 2148 | end | |
| 2149 | ||
| 2150 | end | |
| 2151 | end) | |
| 2152 | end)) | |
| 2153 | end | |
| 2154 | ||
| 2155 | ||
| 2156 | function WhiteBall() | |
| 2157 | coroutine.resume(coroutine.create(function() | |
| 2158 | local magnitude = nil | |
| 2159 | local Position = nil | |
| 2160 | if animid == 0 then | |
| 2161 | Position = larm.Position | |
| 2162 | else | |
| 2163 | Position = rarm.Position | |
| 2164 | end | |
| 2165 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2166 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
| 2167 | ||
| 2168 | local Part1 = Instance.new("Part")
| |
| 2169 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2170 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2171 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2172 | Part1.Material = Enum.Material.Neon | |
| 2173 | Part1.CanCollide = false | |
| 2174 | Part1.BrickColor = BrickColor.new("White")
| |
| 2175 | Part1.Parent = DebrisModel | |
| 2176 | Part1.Size = Vector3.new(0,0,0) | |
| 2177 | Part1.Anchored = true | |
| 2178 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2179 | Part1.Name = "EXPLOSION3" | |
| 2180 | ||
| 2181 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 2182 | local PointLight2 = Instance.new("PointLight")
| |
| 2183 | Part0.Name = "Bullet" | |
| 2184 | Part0.Material = Enum.Material.Neon | |
| 2185 | Part0.BrickColor = BrickColor.new("White")
| |
| 2186 | Part0.Anchored = false | |
| 2187 | Part0.Size = Vector3.new(5, 5, 5) | |
| 2188 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 2189 | mesh.MeshType = Enum.MeshType.Sphere | |
| 2190 | mesh.Scale = Vector3.new(3,3,3) | |
| 2191 | local bforce = Instance.new("BodyForce",Part0)
| |
| 2192 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 2193 | Part0.CanCollide = false | |
| 2194 | PointLight2.Parent = Part0 | |
| 2195 | PointLight2.Color = Part0.Color | |
| 2196 | local Target = mouse.Hit.p | |
| 2197 | local direction = Target - Position | |
| 2198 | local direction = computeDirection(direction) | |
| 2199 | local pos = Position + (direction * 2) | |
| 2200 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 2201 | Part0.Velocity = direction * 150 | |
| 2202 | local asd = nil | |
| 2203 | local loop = nil | |
| 2204 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 2205 | loop = rs:connect(function() | |
| 2206 | local asdf = math.random(500,1000)/1000 | |
| 2207 | local Part1 = Instance.new("Part")
| |
| 2208 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2209 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2210 | Part1.Material = Enum.Material.Neon | |
| 2211 | Part1.CanCollide = false | |
| 2212 | Part1.BrickColor = BrickColor.new("White")
| |
| 2213 | Part1.Parent = DebrisModel | |
| 2214 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
| 2215 | Part1.Anchored = true | |
| 2216 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750)) | |
| 2217 | Part1.Name = "SMOKE" | |
| 2218 | end) | |
| 2219 | asd = Part0.Touched:connect(function(ht) | |
| 2220 | local hit=ht.Parent | |
| 2221 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
| 2222 | asd:disconnect() | |
| 2223 | loop:disconnect() | |
| 2224 | Part0:Destroy() | |
| 2225 | ||
| 2226 | sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500) | |
| 2227 | for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do | |
| 2228 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2229 | v:Destroy() | |
| 2230 | else | |
| 2231 | v.Parent:BreakJoints() | |
| 2232 | end | |
| 2233 | local Position = Part0.Position | |
| 2234 | local Target = v.Position | |
| 2235 | local direction = Target - Position | |
| 2236 | local direction = computeDirection(direction) | |
| 2237 | local bv = Instance.new("BodyVelocity",v)
| |
| 2238 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
| 2239 | debris:AddItem(bv,1) | |
| 2240 | end | |
| 2241 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
| 2242 | for z=1,math.random(2,3) do | |
| 2243 | local asdf = math.random(-5,5)*10-(i/20)*12 | |
| 2244 | local Part1 = Instance.new("Part")
| |
| 2245 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2246 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2247 | mesh2.Scale = Vector3.new(0,0,0) | |
| 2248 | Part1.Material = Enum.Material.Neon | |
| 2249 | Part1.CanCollide = false | |
| 2250 | Part1.BrickColor = BrickColor.new("White")
| |
| 2251 | Part1.Parent = DebrisModel | |
| 2252 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 2253 | Part1.Anchored = true | |
| 2254 | local a = i*5 | |
| 2255 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a)) | |
| 2256 | Part1.Name = "EXPLOSION4" | |
| 2257 | end | |
| 2258 | end | |
| 2259 | ||
| 2260 | end | |
| 2261 | end) | |
| 2262 | end)) | |
| 2263 | end | |
| 2264 | ||
| 2265 | ||
| 2266 | function AirPunch() | |
| 2267 | coroutine.resume(coroutine.create(function() | |
| 2268 | local magnitude = nil | |
| 2269 | local Position = nil | |
| 2270 | if animid == 0 then | |
| 2271 | Position = larm.Position | |
| 2272 | else | |
| 2273 | Position = rarm.Position | |
| 2274 | end | |
| 2275 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2276 | local Sound2 = Instance.new("Sound",hed)
| |
| 2277 | Sound2.SoundId = "rbxassetid://138137702" | |
| 2278 | Sound2.Volume = 5 | |
| 2279 | Sound2.Pitch = 1 | |
| 2280 | Sound2.Looped = false | |
| 2281 | Sound2:Play() | |
| 2282 | ||
| 2283 | local Part1 = Instance.new("Part")
| |
| 2284 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2285 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2286 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2287 | Part1.Material = Enum.Material.Neon | |
| 2288 | Part1.CanCollide = false | |
| 2289 | Part1.BrickColor = BrickColor.new("White")
| |
| 2290 | Part1.Parent = DebrisModel | |
| 2291 | Part1.Size = Vector3.new(0,0,0) | |
| 2292 | Part1.Anchored = true | |
| 2293 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2294 | Part1.Name = "EXPLOSION3" | |
| 2295 | ||
| 2296 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 2297 | local PointLight2 = Instance.new("PointLight")
| |
| 2298 | Part0.Name = "Bullet" | |
| 2299 | Part0.Material = Enum.Material.Neon | |
| 2300 | Part0.BrickColor = BrickColor.new("White")
| |
| 2301 | Part0.Anchored = false | |
| 2302 | Part0.Size = Vector3.new(20,20,20) | |
| 2303 | Part0.Transparency = 0.5 | |
| 2304 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 2305 | mesh.MeshId = "rbxassetid://437347603" | |
| 2306 | mesh.Scale = Vector3.new(2.3,2.3,2.7) | |
| 2307 | ||
| 2308 | ||
| 2309 | coroutine.resume(coroutine.create(function() | |
| 2310 | for i = 3,3 do | |
| 2311 | ||
| 2312 | ||
| 2313 | ||
| 2314 | coroutine.resume(coroutine.create(function() | |
| 2315 | for i = 1,100 do | |
| 2316 | Part0.CFrame = Part0.CFrame*CFrame.Angles(0,0,-0.2) | |
| 2317 | ||
| 2318 | wait(0.00000000001) | |
| 2319 | end | |
| 2320 | ||
| 2321 | ||
| 2322 | end)) | |
| 2323 | wait(0.3) | |
| 2324 | end | |
| 2325 | end)) | |
| 2326 | ||
| 2327 | ||
| 2328 | local bforce = Instance.new("BodyForce",Part0)
| |
| 2329 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 2330 | Part0.CanCollide = false | |
| 2331 | PointLight2.Parent = Part0 | |
| 2332 | PointLight2.Color = Part0.Color | |
| 2333 | local Target = mouse.Hit.p | |
| 2334 | local direction = Target - Position | |
| 2335 | local direction = computeDirection(direction) | |
| 2336 | local pos = Position + (direction * 2) | |
| 2337 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
| 2338 | coroutine.resume(coroutine.create(function() | |
| 2339 | for i = 3,300 do | |
| 2340 | Part0.CFrame = Part0.CFrame:lerp(Part0.CFrame * CFrame.new(0, 0, -13), 0.4) | |
| 2341 | ||
| 2342 | ||
| 2343 | wait(0.00000000001) | |
| 2344 | end | |
| 2345 | ||
| 2346 | ||
| 2347 | end)) | |
| 2348 | local FZcharge3 = Instance.new("ParticleEmitter",Part0)
| |
| 2349 | FZcharge3.Texture = "rbxassetid://174073769" | |
| 2350 | FZcharge3.Color = ColorSequence.new(BrickColor.new("White").Color)
| |
| 2351 | FZcharge3.EmissionDirection = "Top" | |
| 2352 | FZcharge3.Speed = NumberRange.new(5) | |
| 2353 | FZcharge3.Size = NumberSequence.new(10,0) | |
| 2354 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 2355 | FZcharge3.Drag = 1.2 | |
| 2356 | FZcharge3.LockedToPart = false | |
| 2357 | FZcharge3.Lifetime = NumberRange.new(2) | |
| 2358 | FZcharge3.Rate = 105 | |
| 2359 | FZcharge3.LightEmission = 0.8 | |
| 2360 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 2361 | FZcharge3.VelocitySpread = 100 | |
| 2362 | FZcharge3.ZOffset = 1 | |
| 2363 | coroutine.resume(coroutine.create(function() | |
| 2364 | for i = 1,3 do | |
| 2365 | local HQ = Instance.new("Part",Part0)
| |
| 2366 | HQ.Size = Vector3.new(1,1,1) | |
| 2367 | HQ.BrickColor = BrickColor.new("White")
| |
| 2368 | HQ.Material = "Neon" | |
| 2369 | HQ.Anchored = true | |
| 2370 | HQ.CanCollide = false | |
| 2371 | HQ.Transparency = 0 | |
| 2372 | HQ.CFrame = Part0.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0) | |
| 2373 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 2374 | HQ2.MeshId = "rbxassetid://20329976" | |
| 2375 | HQ2.Scale = Vector3.new(1,1,1) | |
| 2376 | local ZQW = Instance.new("Part",Part0)
| |
| 2377 | ZQW.Size = Vector3.new(1,1,1) | |
| 2378 | ZQW.BrickColor = BrickColor.new("White")
| |
| 2379 | ZQW.Material = "Neon" | |
| 2380 | ZQW.Transparency = 1 | |
| 2381 | ZQW.Anchored = true | |
| 2382 | ZQW.CanCollide = false | |
| 2383 | ZQW.CFrame = Part0.CFrame*CFrame.new(0,0,0) | |
| 2384 | local ZQW2 = Instance.new("SpecialMesh",ZQW)
| |
| 2385 | ZQW2.MeshType = "Sphere" | |
| 2386 | ZQW2.Scale = Vector3.new(1,1,1) | |
| 2387 | local H = Instance.new("Part",Part0)
| |
| 2388 | H.Size = Vector3.new(1,1,1) | |
| 2389 | H.BrickColor = BrickColor.new("White")
| |
| 2390 | H.CanCollide = false | |
| 2391 | H.Anchored = true | |
| 2392 | H.CFrame = Part0.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
| 2393 | local H2 = Instance.new("SpecialMesh",H)
| |
| 2394 | H2.MeshId = "rbxassetid://3270017" | |
| 2395 | coroutine.resume(coroutine.create(function() | |
| 2396 | for i = 3,90 do | |
| 2397 | ZQW2.Scale = ZQW2.Scale + Vector3.new(6.2,6.2,6.2) | |
| 2398 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
| 2399 | HQ2.Scale = HQ2.Scale + Vector3.new(3.2,3.2,3.2) | |
| 2400 | HQ.Transparency = HQ.Transparency + 0.05 | |
| 2401 | H2.Scale = H2.Scale + Vector3.new(6.2,6.2,6.2) | |
| 2402 | H.Transparency = H.Transparency + 0.05 | |
| 2403 | wait(0.00000000001) | |
| 2404 | end | |
| 2405 | HQ:Destroy() | |
| 2406 | H2:Destroy() | |
| 2407 | H:Destroy() | |
| 2408 | HQ2:Destroy() | |
| 2409 | ZQW:Destroy() | |
| 2410 | ZQW2:Destroy() | |
| 2411 | end)) | |
| 2412 | wait(0.3) | |
| 2413 | end | |
| 2414 | end)) | |
| 2415 | local asd = nil | |
| 2416 | local loop = nil | |
| 2417 | delay(2, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 2418 | loop = rs:connect(function() | |
| 2419 | local asdf = math.random(100,1000)/1000 | |
| 2420 | local Part1 = Instance.new("Part")
| |
| 2421 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2422 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2423 | Part1.Material = Enum.Material.Neon | |
| 2424 | Part1.CanCollide = false | |
| 2425 | Part1.Transparency = 0.9 | |
| 2426 | Part1.BrickColor = BrickColor.new("White")
| |
| 2427 | Part1.Parent = DebrisModel | |
| 2428 | Part1.Size = (Part0.Size*0.6) + Vector3.new(asdf,asdf,asdf) | |
| 2429 | Part1.Anchored = true | |
| 2430 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/80,math.random(-1000,1000)/80,math.random(-1000,1000)/750)) | |
| 2431 | Part1.Name = "SMOKE" | |
| 2432 | end) | |
| 2433 | asd = Part0.Touched:connect(function(ht) | |
| 2434 | local hit=ht.Parent | |
| 2435 | ||
| 2436 | ||
| 2437 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
| 2438 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2439 | v:Destroy() | |
| 2440 | else | |
| 2441 | v.Parent.Humanoid:TakeDamage(100000) | |
| 2442 | ||
| 2443 | ||
| 2444 | ||
| 2445 | end | |
| 2446 | local Position = Part0.Position | |
| 2447 | local Target = v.Position | |
| 2448 | local direction = Target - Position | |
| 2449 | local direction = computeDirection(direction) | |
| 2450 | local bv = Instance.new("BodyVelocity",v)
| |
| 2451 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
| 2452 | debris:AddItem(bv,1) | |
| 2453 | end | |
| 2454 | ||
| 2455 | ||
| 2456 | end) | |
| 2457 | end)) | |
| 2458 | end | |
| 2459 | ||
| 2460 | function DetroitSmash() | |
| 2461 | coroutine.resume(coroutine.create(function() | |
| 2462 | local magnitude = nil | |
| 2463 | local Position = nil | |
| 2464 | if animid == 0 then | |
| 2465 | Position = larm.Position | |
| 2466 | else | |
| 2467 | Position = rarm.Position | |
| 2468 | end | |
| 2469 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2470 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
| 2471 | ||
| 2472 | local Part1 = Instance.new("Part")
| |
| 2473 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2474 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2475 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2476 | Part1.Material = Enum.Material.Neon | |
| 2477 | Part1.CanCollide = false | |
| 2478 | Part1.BrickColor = BrickColor.new("White")
| |
| 2479 | Part1.Parent = DebrisModel | |
| 2480 | Part1.Size = Vector3.new(0,0,0) | |
| 2481 | Part1.Anchored = true | |
| 2482 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2483 | Part1.Name = "EXPLOSION3" | |
| 2484 | ||
| 2485 | ||
| 2486 | ||
| 2487 | ||
| 2488 | ||
| 2489 | ||
| 2490 | ||
| 2491 | ||
| 2492 | ||
| 2493 | local Target = mouse.Hit.p | |
| 2494 | local direction = Target - Position | |
| 2495 | local direction = computeDirection(direction) | |
| 2496 | local pos = Position + (direction * 2) | |
| 2497 | ||
| 2498 | ||
| 2499 | ||
| 2500 | local asd = nil | |
| 2501 | local loop = nil | |
| 2502 | ||
| 2503 | local asdf = math.random(100,1000)/1000 | |
| 2504 | local Part1 = Instance.new("Part")
| |
| 2505 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2506 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2507 | Part1.Material = Enum.Material.Neon | |
| 2508 | Part1.CanCollide = false | |
| 2509 | Part1.Transparency = 0.9 | |
| 2510 | Part1.BrickColor = BrickColor.new("Institutional white")
| |
| 2511 | Part1.Parent = DebrisModel | |
| 2512 | Part1.Size = (Part1.Size*0.9) + Vector3.new(asdf,asdf,asdf) | |
| 2513 | Part1.Anchored = true | |
| 2514 | Part1.CFrame = CFrame.new(torso.Position + Vector3.new(math.random(-1000,1000)/10,math.random(-1000,1000)/10,math.random(-1000,1000)/750)) | |
| 2515 | Part1.Name = "SMOKE" | |
| 2516 | ||
| 2517 | ||
| 2518 | ||
| 2519 | ||
| 2520 | sound(punch[math.random(1,#punch)],Part1.Position,500,math.random(3,5)/5,50) | |
| 2521 | for i,v in pairs(findAllNearestTorso(Part1.Position,100)) do | |
| 2522 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2523 | v:Destroy() | |
| 2524 | else | |
| 2525 | v.Parent.Humanoid:TakeDamage(100000000000000) | |
| 2526 | ||
| 2527 | ||
| 2528 | ||
| 2529 | end | |
| 2530 | local Position = Part1.Position | |
| 2531 | local Target = v.Position | |
| 2532 | local direction = Target - Position | |
| 2533 | local direction = computeDirection(direction) | |
| 2534 | local bv = Instance.new("BodyVelocity",v)
| |
| 2535 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
| 2536 | debris:AddItem(bv,1) | |
| 2537 | end | |
| 2538 | for i=1,14,2 do for x=1,math.random(1,2) do rs:wait() end | |
| 2539 | for z=1,math.random(1,2) do | |
| 2540 | local asdf = math.random(-5,5)*3-(i/20)*10 | |
| 2541 | local Part1 = Instance.new("Part")
| |
| 2542 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2543 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2544 | mesh2.Scale = Vector3.new(0,0,0) | |
| 2545 | Part1.Material = Enum.Material.SmoothPlastic | |
| 2546 | Part1.CanCollide = false | |
| 2547 | Part1.BrickColor = BrickColor.new("Institutional white")
| |
| 2548 | Part1.Parent = DebrisModel | |
| 2549 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 2550 | Part1.Anchored = true | |
| 2551 | Part1.Transparency = 0.3 | |
| 2552 | local a = i*0.9 | |
| 2553 | Part1.CFrame = CFrame.new(torso.Position + Vector3.new(math.random(-1,1)*a,math.random(-1,1),math.random(-1,1)*a)) | |
| 2554 | Part1.Name = "EXPLOSION4" | |
| 2555 | end | |
| 2556 | end | |
| 2557 | end)) | |
| 2558 | end | |
| 2559 | ||
| 2560 | function DelawareSmash() | |
| 2561 | coroutine.resume(coroutine.create(function() | |
| 2562 | local magnitude = nil | |
| 2563 | local Position = nil | |
| 2564 | if animid == 0 then | |
| 2565 | Position = larm.Position | |
| 2566 | else | |
| 2567 | Position = rarm.Position | |
| 2568 | end | |
| 2569 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2570 | local Sound2 = Instance.new("Sound",hed)
| |
| 2571 | Sound2.SoundId = "rbxassetid://138137702" | |
| 2572 | Sound2.Volume = 5 | |
| 2573 | Sound2.Pitch = 0.9 | |
| 2574 | Sound2.Looped = false | |
| 2575 | Sound2:Play() | |
| 2576 | ||
| 2577 | local Part1 = Instance.new("Part")
| |
| 2578 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2579 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2580 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2581 | Part1.Material = Enum.Material.Neon | |
| 2582 | Part1.CanCollide = false | |
| 2583 | Part1.BrickColor = BrickColor.new("White")
| |
| 2584 | Part1.Parent = DebrisModel | |
| 2585 | Part1.Size = Vector3.new(0,0,0) | |
| 2586 | Part1.Anchored = true | |
| 2587 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2588 | Part1.Name = "EXPLOSION3" | |
| 2589 | ||
| 2590 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 2591 | local PointLight2 = Instance.new("PointLight")
| |
| 2592 | PointLight2.Brightness = 100 | |
| 2593 | PointLight2.Range = 40 | |
| 2594 | Part0.Name = "Bullet" | |
| 2595 | Part0.Material = Enum.Material.Glass | |
| 2596 | Part0.BrickColor = BrickColor.new("White")
| |
| 2597 | Part0.Anchored = false | |
| 2598 | Part0.Size = Vector3.new(20,20,20) | |
| 2599 | Part0.Transparency = 0.5 | |
| 2600 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 2601 | mesh.MeshId = "rbxassetid://437347603" | |
| 2602 | mesh.Scale = Vector3.new(4.3,4.3,6.7) | |
| 2603 | local Music = Instance.new("Sound",Part0)
| |
| 2604 | Music.SoundId = "rbxassetid://362395087" | |
| 2605 | Music.Pitch = 0.8 | |
| 2606 | Music.Looped = true | |
| 2607 | Music.Volume = 5 | |
| 2608 | ||
| 2609 | Music:Play() | |
| 2610 | ||
| 2611 | coroutine.resume(coroutine.create(function() | |
| 2612 | for i = 3,3 do | |
| 2613 | ||
| 2614 | ||
| 2615 | ||
| 2616 | coroutine.resume(coroutine.create(function() | |
| 2617 | for i = 1,400 do | |
| 2618 | Part0.CFrame = Part0.CFrame*CFrame.Angles(0,0,-0.2) | |
| 2619 | ||
| 2620 | wait() | |
| 2621 | end | |
| 2622 | ||
| 2623 | ||
| 2624 | end)) | |
| 2625 | wait(0.3) | |
| 2626 | end | |
| 2627 | end)) | |
| 2628 | ||
| 2629 | ||
| 2630 | local bforce = Instance.new("BodyForce",Part0)
| |
| 2631 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 2632 | Part0.CanCollide = false | |
| 2633 | PointLight2.Parent = Part0 | |
| 2634 | PointLight2.Color = Part0.Color | |
| 2635 | local Target = mouse.Hit.p | |
| 2636 | local direction = Target - Position | |
| 2637 | local direction = computeDirection(direction) | |
| 2638 | local pos = Position + (direction * 2) | |
| 2639 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
| 2640 | ||
| 2641 | coroutine.resume(coroutine.create(function() | |
| 2642 | for i = 3,300 do | |
| 2643 | Part0.CFrame = Part0.CFrame:lerp(Part0.CFrame * CFrame.new(0, 0, -18), 0.4) | |
| 2644 | ||
| 2645 | ||
| 2646 | wait() | |
| 2647 | end | |
| 2648 | ||
| 2649 | ||
| 2650 | end)) | |
| 2651 | local FZcharge3 = Instance.new("ParticleEmitter",Part0)
| |
| 2652 | FZcharge3.Texture = "rbxassetid://174073769" | |
| 2653 | FZcharge3.Color = ColorSequence.new(BrickColor.new("White").Color)
| |
| 2654 | FZcharge3.EmissionDirection = "Top" | |
| 2655 | FZcharge3.Speed = NumberRange.new(5) | |
| 2656 | FZcharge3.Size = NumberSequence.new(40,0) | |
| 2657 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 2658 | FZcharge3.Drag = 1.2 | |
| 2659 | FZcharge3.LockedToPart = false | |
| 2660 | FZcharge3.Lifetime = NumberRange.new(3) | |
| 2661 | FZcharge3.Rate = 105 | |
| 2662 | FZcharge3.LightEmission = 0.8 | |
| 2663 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 2664 | FZcharge3.VelocitySpread = 100 | |
| 2665 | FZcharge3.ZOffset = 1 | |
| 2666 | local FlyAt = Instance.new("Attachment",Part0)FlyAt.Position = Vector3.new(0,0.1,0)
| |
| 2667 | local FlyAt2 = Instance.new("Attachment",Part0)FlyAt2.Position = Vector3.new(0,-15.5,0)
| |
| 2668 | local Speed = Instance.new("Trail",Part0)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 2669 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 2.1 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2670 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
| 2671 | ||
| 2672 | coroutine.resume(coroutine.create(function() | |
| 2673 | for i = 1,60 do | |
| 2674 | local HQ = Instance.new("Part",Part0)
| |
| 2675 | HQ.Size = Vector3.new(1,1,1) | |
| 2676 | HQ.BrickColor = BrickColor.new("White")
| |
| 2677 | HQ.Material = Enum.Material.Glass | |
| 2678 | HQ.Anchored = true | |
| 2679 | HQ.CanCollide = false | |
| 2680 | HQ.Transparency = 0 | |
| 2681 | HQ.CFrame = Part0.CFrame*CFrame.new(0,0,-20)*CFrame.Angles(1.55,0,0) | |
| 2682 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 2683 | HQ2.MeshId = "rbxassetid://20329976" | |
| 2684 | HQ2.Scale = Vector3.new(14.5,14.5,14.5) | |
| 2685 | local ZQW = Instance.new("Part",Part0)
| |
| 2686 | ZQW.Size = Vector3.new(1,1,1) | |
| 2687 | ZQW.BrickColor = BrickColor.new("White")
| |
| 2688 | ZQW.Material = Enum.Material.Glass | |
| 2689 | ZQW.Transparency = 1 | |
| 2690 | ZQW.Anchored = true | |
| 2691 | ZQW.CanCollide = false | |
| 2692 | ZQW.CFrame = Part0.CFrame*CFrame.new(-40,0,0) | |
| 2693 | local ZQW2 = Instance.new("SpecialMesh",ZQW)
| |
| 2694 | ZQW2.MeshType = "Sphere" | |
| 2695 | ZQW2.Scale = Vector3.new(14.5,14.5,2.5) | |
| 2696 | local H = Instance.new("Part",Part0)
| |
| 2697 | H.Size = Vector3.new(1,1,1) | |
| 2698 | H.BrickColor = BrickColor.new("White")
| |
| 2699 | H.CanCollide = false | |
| 2700 | H.Anchored = true | |
| 2701 | H.CFrame = Part0.CFrame*CFrame.new(0,0,-40)*CFrame.Angles(0,0,0) | |
| 2702 | local H2 = Instance.new("SpecialMesh",H)
| |
| 2703 | H2.MeshId = "rbxassetid://3270017" | |
| 2704 | H2.Scale = Vector3.new(14.5,14.5,2.5) | |
| 2705 | coroutine.resume(coroutine.create(function() | |
| 2706 | for i = 1,90 do | |
| 2707 | ZQW2.Scale = ZQW2.Scale + Vector3.new(6.2,6.2,6.2) | |
| 2708 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
| 2709 | HQ2.Scale = HQ2.Scale + Vector3.new(3.2,8.2,3.2) | |
| 2710 | HQ.Transparency = HQ.Transparency + 0.05 | |
| 2711 | H2.Scale = H2.Scale + Vector3.new(6.2,6.2,6.2) | |
| 2712 | H.Transparency = H.Transparency + 0.05 | |
| 2713 | wait(0.00000000001) | |
| 2714 | end | |
| 2715 | HQ:Destroy() | |
| 2716 | H2:Destroy() | |
| 2717 | H:Destroy() | |
| 2718 | HQ2:Destroy() | |
| 2719 | ZQW:Destroy() | |
| 2720 | ZQW2:Destroy() | |
| 2721 | end)) | |
| 2722 | ||
| 2723 | wait(0.1) | |
| 2724 | ||
| 2725 | end | |
| 2726 | ||
| 2727 | end)) | |
| 2728 | local asd = nil | |
| 2729 | local loop = nil | |
| 2730 | delay(7, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 2731 | loop = rs:connect(function() | |
| 2732 | local asdf = math.random(100,1000)/1000 | |
| 2733 | local Part1 = Instance.new("Part")
| |
| 2734 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2735 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2736 | Part1.Material = Enum.Material.Neon | |
| 2737 | Part1.CanCollide = false | |
| 2738 | Part1.Transparency = 0.9 | |
| 2739 | Part1.BrickColor = BrickColor.new("White")
| |
| 2740 | Part1.Parent = DebrisModel | |
| 2741 | Part1.Size = (Part0.Size*0.6) + Vector3.new(asdf,asdf,asdf) | |
| 2742 | Part1.Anchored = true | |
| 2743 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/80,math.random(-1000,1000)/80,math.random(-1000,1000)/750)) | |
| 2744 | Part1.Name = "SMOKE" | |
| 2745 | end) | |
| 2746 | asd = Part0.Touched:connect(function(ht) | |
| 2747 | local hit=ht.Parent | |
| 2748 | ||
| 2749 | ||
| 2750 | ||
| 2751 | ||
| 2752 | for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do | |
| 2753 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2754 | v:Destroy() | |
| 2755 | else | |
| 2756 | v.Parent.Humanoid:TakeDamage(1000) | |
| 2757 | v.Velocity = Part0.CFrame.lookVector * 100 | |
| 2758 | ||
| 2759 | end | |
| 2760 | ||
| 2761 | local Position = Part0.Position | |
| 2762 | local Target = v.Position | |
| 2763 | local direction = Target - Position | |
| 2764 | local direction = computeDirection(direction) | |
| 2765 | local bv = Instance.new("BodyVelocity",v)
| |
| 2766 | bv.Velocity = direction * (50 - ((Position - Target).magnitude/2)) | |
| 2767 | debris:AddItem(bv,1) | |
| 2768 | end | |
| 2769 | ||
| 2770 | ||
| 2771 | end) | |
| 2772 | end)) | |
| 2773 | end | |
| 2774 | ||
| 2775 | ||
| 2776 | ||
| 2777 | function unused() | |
| 2778 | coroutine.resume(coroutine.create(function() | |
| 2779 | local magnitude = nil | |
| 2780 | local Position = nil | |
| 2781 | if animid == 0 then | |
| 2782 | Position = larm.Position | |
| 2783 | else | |
| 2784 | Position = rarm.Position | |
| 2785 | end | |
| 2786 | --sound(743499393,Position,10,math.random(6,8)/10) | |
| 2787 | sound(1050751126,Position,10,math.random(4,5)/10,100) | |
| 2788 | ||
| 2789 | local Part1 = Instance.new("Part")
| |
| 2790 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2791 | mesh2.MeshId = "rbxassetid://559831844" | |
| 2792 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 2793 | Part1.Material = Enum.Material.Neon | |
| 2794 | Part1.CanCollide = false | |
| 2795 | Part1.BrickColor = BrickColor.new("White")
| |
| 2796 | Part1.Parent = DebrisModel | |
| 2797 | Part1.Size = Vector3.new(0,0,0) | |
| 2798 | Part1.Anchored = true | |
| 2799 | Part1.CFrame = CFrame.new(Position,mouse.Hit.p) | |
| 2800 | Part1.Name = "EXPLOSION3" | |
| 2801 | ||
| 2802 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 2803 | local PointLight2 = Instance.new("PointLight")
| |
| 2804 | Part0.Name = "Bullet" | |
| 2805 | Part0.Material = Enum.Material.Neon | |
| 2806 | Part0.BrickColor = BrickColor.new("White")
| |
| 2807 | Part0.Anchored = false | |
| 2808 | Part0.Size = Vector3.new(1,1,1) | |
| 2809 | Part0.Transparency = 0.5 | |
| 2810 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 2811 | mesh.MeshId = "rbxassetid://437347603" | |
| 2812 | mesh.Scale = Vector3.new(1.3,1.3,4.4) | |
| 2813 | local bforce = Instance.new("BodyForce",Part0)
| |
| 2814 | bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0) | |
| 2815 | Part0.CanCollide = false | |
| 2816 | PointLight2.Parent = Part0 | |
| 2817 | PointLight2.Color = Part0.Color | |
| 2818 | local Target = mouse.Hit.p | |
| 2819 | local direction = Target - Position | |
| 2820 | local direction = computeDirection(direction) | |
| 2821 | local pos = Position + (direction * 2) | |
| 2822 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(0,0,1.55) | |
| 2823 | Part0.Velocity = direction * 750 | |
| 2824 | local asd = nil | |
| 2825 | local loop = nil | |
| 2826 | delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end) | |
| 2827 | loop = rs:connect(function() | |
| 2828 | local asdf = math.random(500,1000)/1000 | |
| 2829 | local Part1 = Instance.new("Part")
| |
| 2830 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2831 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2832 | Part1.Material = Enum.Material.Neon | |
| 2833 | Part1.CanCollide = false | |
| 2834 | Part1.BrickColor = BrickColor.new("White")
| |
| 2835 | Part1.Parent = DebrisModel | |
| 2836 | Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf) | |
| 2837 | Part1.Anchored = true | |
| 2838 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750)) | |
| 2839 | Part1.Name = "SMOKE" | |
| 2840 | end) | |
| 2841 | asd = Part0.Touched:connect(function(ht) | |
| 2842 | local hit=ht.Parent | |
| 2843 | if checkIfNotPlayer(ht) == true and ht.CanCollide == true then | |
| 2844 | asd:disconnect() | |
| 2845 | loop:disconnect() | |
| 2846 | Part0:Destroy() | |
| 2847 | ||
| 2848 | sound(punch[math.random(1,#punch)],Part0.Position,10,math.random(3,5)/5,50) | |
| 2849 | for i,v in pairs(findAllNearestTorso(Part0.Position,35)) do | |
| 2850 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
| |
| 2851 | v:Destroy() | |
| 2852 | else | |
| 2853 | v.Parent:BreakJoints() | |
| 2854 | local Fl = Instance.new("BodyVelocity",v.Parent.Head)
| |
| 2855 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 2856 | Fl.velocity = Part0.CFrame.lookVector*395 | |
| 2857 | wait(0.05) | |
| 2858 | Fl:remove() | |
| 2859 | ||
| 2860 | end | |
| 2861 | local Position = Part0.Position | |
| 2862 | local Target = v.Position | |
| 2863 | local direction = Target - Position | |
| 2864 | local direction = computeDirection(direction) | |
| 2865 | local bv = Instance.new("BodyVelocity",v)
| |
| 2866 | bv.Velocity = direction * (120 - ((Position - Target).magnitude/2)) | |
| 2867 | debris:AddItem(bv,1) | |
| 2868 | end | |
| 2869 | for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end | |
| 2870 | for z=1,math.random(2,3) do | |
| 2871 | local asdf = math.random(-5,5)*2-(i/2)*10 | |
| 2872 | local Part1 = Instance.new("Part")
| |
| 2873 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 2874 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 2875 | mesh2.Scale = Vector3.new(0,0,0) | |
| 2876 | Part1.Material = Enum.Material.Neon | |
| 2877 | Part1.CanCollide = false | |
| 2878 | Part1.BrickColor = BrickColor.new("White")
| |
| 2879 | Part1.Parent = DebrisModel | |
| 2880 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 2881 | Part1.Anchored = true | |
| 2882 | local a = i*0.7 | |
| 2883 | Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
| 2884 | Part1.Name = "EXPLOSION4" | |
| 2885 | end | |
| 2886 | end | |
| 2887 | ||
| 2888 | end | |
| 2889 | end) | |
| 2890 | end)) | |
| 2891 | end | |
| 2892 | ||
| 2893 | ||
| 2894 | ||
| 2895 | ||
| 2896 | ||
| 2897 | ||
| 2898 | function lerpz(joint, prop, cfrmz, alp) | |
| 2899 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
| 2900 | end | |
| 2901 | function resetlerp() | |
| 2902 | RJ.C0 = RJC0 | |
| 2903 | RJ.C1 = RJC1 | |
| 2904 | N.C0 = NC0 | |
| 2905 | N.C1 = NC1 | |
| 2906 | RS.C0 = RSC0 | |
| 2907 | RS.C1 = RSC1 | |
| 2908 | LS.C0 = LSC0 | |
| 2909 | LS.C1 = LSC1 | |
| 2910 | RH.C0 = RHC0 | |
| 2911 | RH.C1 = RHC1 | |
| 2912 | LH.C0 = LHC0 | |
| 2913 | end | |
| 2914 | function swait(num) | |
| 2915 | if num == 0 or num == nil then | |
| 2916 | Heartbeat.Event:wait() | |
| 2917 | else | |
| 2918 | for i = 1, num do | |
| 2919 | Heartbeat.Event:wait() | |
| 2920 | end | |
| 2921 | end | |
| 2922 | end | |
| 2923 | mouse.KeyDown:connect(function(k) | |
| 2924 | if k == "=" and MUI == true then | |
| 2925 | instinct = false | |
| 2926 | animid = 5 | |
| 2927 | no_anim = true | |
| 2928 | for _ = 1, 45 do | |
| 2929 | swait() | |
| 2930 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
| 2931 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
| 2932 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2) | |
| 2933 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 2934 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
| 2935 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
| 2936 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
| 2937 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 2938 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
| 2939 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
| 2940 | ||
| 2941 | end | |
| 2942 | AirPunchStrong() | |
| 2943 | wait(0.2) | |
| 2944 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
| 2945 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
| 2946 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(10)), 0.8)--rarm | |
| 2947 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-20)), 0.8)--larm | |
| 2948 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 2949 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 2950 | wait(0.5) | |
| 2951 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
| 2952 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
| 2953 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(10)), 0.8)--rarm | |
| 2954 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.8)--larm | |
| 2955 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 2956 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 2957 | AirPunchStrong() | |
| 2958 | wait(0.2) | |
| 2959 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(70),math.rad(0)), 0.8)--head | |
| 2960 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
| 2961 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(10)), 0.8)--rarm | |
| 2962 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-20)), 0.8)--larm | |
| 2963 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 2964 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 2965 | wait(0.5) | |
| 2966 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50),math.rad(0)), 0.8)--head | |
| 2967 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
| 2968 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
| 2969 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
| 2970 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 2971 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 2972 | AirPunchStrong() | |
| 2973 | wait(0.2) | |
| 2974 | no_anim = false | |
| 2975 | instinct = true | |
| 2976 | end | |
| 2977 | end) | |
| 2978 | ||
| 2979 | ||
| 2980 | ||
| 2981 | local attacktype = 1 | |
| 2982 | mouse.Button1Down:connect(function() | |
| 2983 | if attack == false and attacktype == 1 and MUI == false then | |
| 2984 | Hit() | |
| 2985 | attacktype = 2 | |
| 2986 | elseif attack == false and attacktype == 2 and MUI == false then | |
| 2987 | Hit2() | |
| 2988 | attacktype = 1 | |
| 2989 | end | |
| 2990 | end) | |
| 2991 | ||
| 2992 | ||
| 2993 | mouse.Button1Down:connect(function() | |
| 2994 | if attack == false and attacktype == 1 and MUI == true then | |
| 2995 | HitFC() | |
| 2996 | attacktype = 2 | |
| 2997 | elseif attack == false and attacktype == 2 and MUI == true then | |
| 2998 | HitFC2() | |
| 2999 | attacktype = 1 | |
| 3000 | end | |
| 3001 | end) | |
| 3002 | function Hit() | |
| 3003 | if not D then D = true | |
| 3004 | animid = 5 | |
| 3005 | no_anim = true | |
| 3006 | ||
| 3007 | local Grab = Instance.new("Part",larm)
| |
| 3008 | Grab.Size = Vector3.new(4,4,4) | |
| 3009 | Grab.CanCollide = false | |
| 3010 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3011 | Grab.Transparency = math.huge | |
| 3012 | local Grabo = Instance.new("Weld",Grab)
| |
| 3013 | Grabo.Part0 = larm | |
| 3014 | Grabo.Part1 = Grab | |
| 3015 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
| 3016 | local SFXZ = Instance.new("Sound",torso)
| |
| 3017 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 3018 | SFXZ.Volume = 1 | |
| 3019 | SFXZ.Pitch = 1.5 | |
| 3020 | SFXZ.Looped = false | |
| 3021 | wait(0.01) | |
| 3022 | SFXZ:Play() | |
| 3023 | ||
| 3024 | Grab.Touched:connect(function(hit) | |
| 3025 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then
| |
| 3026 | Grab:Destroy() | |
| 3027 | SFXZ:Destroy() | |
| 3028 | ||
| 3029 | hit.Parent.Humanoid:TakeDamage(5000000000000000) | |
| 3030 | local Smash = Instance.new("Part",char)
| |
| 3031 | Smash.Size = Vector3.new(30,30,30) | |
| 3032 | Smash.BrickColor = BrickColor.new("New Yeller")
| |
| 3033 | Smash.CanCollide = false | |
| 3034 | Smash.Anchored = true | |
| 3035 | Smash.Transparency = 0.1 | |
| 3036 | Smash.CFrame = root.CFrame*CFrame.new(0,0,20)*CFrame.Angles(0,0,1.55) | |
| 3037 | local Smash2 = Instance.new("SpecialMesh",Smash)
| |
| 3038 | Smash2.MeshId = "rbxassetid://437347603" | |
| 3039 | Smash2.Scale = Vector3.new(2.8,2.8,2.94) | |
| 3040 | local Sound2 = Instance.new("Sound",Smash)
| |
| 3041 | Sound2.SoundId = "rbxassetid://138137702" | |
| 3042 | Sound2.Volume = 0.9 | |
| 3043 | Sound2.Pitch = 1 | |
| 3044 | Sound2.Looped = false | |
| 3045 | Sound2:Play() | |
| 3046 | local Sound = Instance.new("Sound",torso)
| |
| 3047 | Sound.SoundId = "rbxassetid://0" | |
| 3048 | Sound.Volume = 7 | |
| 3049 | Sound.Pitch = 1 | |
| 3050 | Sound.Looped = false | |
| 3051 | Sound:Play() | |
| 3052 | coroutine.resume(coroutine.create(function() | |
| 3053 | for i = 3,100 do | |
| 3054 | ||
| 3055 | Smash.CFrame = Smash.CFrame*CFrame.Angles(0,0,-0.1) | |
| 3056 | Smash.CFrame = Smash.CFrame:lerp(Smash.CFrame * CFrame.new(0, 0, -11), 0.4) | |
| 3057 | ||
| 3058 | ||
| 3059 | Smash.Transparency = Smash.Transparency + 0.09 | |
| 3060 | ||
| 3061 | wait(0.00000000001) | |
| 3062 | end | |
| 3063 | Smash:Destroy() | |
| 3064 | ||
| 3065 | end)) | |
| 3066 | ||
| 3067 | ||
| 3068 | coroutine.resume(coroutine.create(function() | |
| 3069 | for i = 1,3 do | |
| 3070 | local HQ = Instance.new("Part",root)
| |
| 3071 | HQ.Size = Vector3.new(1,1,1) | |
| 3072 | HQ.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3073 | HQ.Material = "Neon" | |
| 3074 | HQ.Anchored = true | |
| 3075 | HQ.CanCollide = false | |
| 3076 | HQ.Transparency = 0 | |
| 3077 | HQ.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,1.55) | |
| 3078 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 3079 | HQ2.MeshId = "rbxassetid://3270017" | |
| 3080 | HQ2.Scale = Vector3.new(1,1,1) | |
| 3081 | local ZQW = Instance.new("Part",root)
| |
| 3082 | ZQW.Size = Vector3.new(1,1,1) | |
| 3083 | ZQW.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3084 | ZQW.Material = "Neon" | |
| 3085 | ZQW.Transparency = 1 | |
| 3086 | ZQW.Anchored = true | |
| 3087 | ZQW.CanCollide = false | |
| 3088 | ZQW.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,0,0) | |
| 3089 | local ZQW2 = Instance.new("SpecialMesh",ZQW)
| |
| 3090 | ZQW2.MeshType = "Sphere" | |
| 3091 | ZQW2.Scale = Vector3.new(1,1,1) | |
| 3092 | local H = Instance.new("Part",root)
| |
| 3093 | H.Size = Vector3.new(1,1,1) | |
| 3094 | H.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3095 | H.CanCollide = false | |
| 3096 | H.Anchored = true | |
| 3097 | H.CFrame = hit.Parent.Head.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,1.55) | |
| 3098 | local H2 = Instance.new("SpecialMesh",H)
| |
| 3099 | H2.MeshId = "rbxassetid://3270017" | |
| 3100 | coroutine.resume(coroutine.create(function() | |
| 3101 | for i = 3,90 do | |
| 3102 | ZQW2.Scale = ZQW2.Scale + Vector3.new(2.2,2.2,2.2) | |
| 3103 | ZQW.Transparency = ZQW.Transparency + 0.06 | |
| 3104 | HQ2.Scale = HQ2.Scale + Vector3.new(3,3,3.2) | |
| 3105 | HQ.Transparency = HQ.Transparency + 0.05 | |
| 3106 | H2.Scale = H2.Scale + Vector3.new(2.2,2.2,2.2) | |
| 3107 | H.Transparency = H.Transparency + 0.05 | |
| 3108 | wait(0.00000000001) | |
| 3109 | end | |
| 3110 | HQ:Destroy() | |
| 3111 | H2:Destroy() | |
| 3112 | H:Destroy() | |
| 3113 | HQ2:Destroy() | |
| 3114 | ZQW:Destroy() | |
| 3115 | ZQW2:Destroy() | |
| 3116 | end)) | |
| 3117 | wait(0.3) | |
| 3118 | end | |
| 3119 | end)) | |
| 3120 | local Spinn = Instance.new("Part",char)
| |
| 3121 | Spinn.Size = Vector3.new(1,1,1) | |
| 3122 | Spinn.BrickColor = BrickColor.new("New Yeller")
| |
| 3123 | Spinn.CanCollide = false | |
| 3124 | Spinn.Transparency = 0.1 | |
| 3125 | Spinn.Anchored = true | |
| 3126 | Spinn.Material = "Neon" | |
| 3127 | Spinn.CFrame = root.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
| 3128 | local Spinn2 = Instance.new("SpecialMesh",Spinn)
| |
| 3129 | Spinn2.MeshId = "rbxassetid://881809484" | |
| 3130 | Spinn2.Scale = Vector3.new(20,20,20) | |
| 3131 | coroutine.resume(coroutine.create(function() | |
| 3132 | for i = 3,300 do | |
| 3133 | Spinn.Transparency = Spinn.Transparency + 0.05 | |
| 3134 | ||
| 3135 | Spinn.CFrame = Spinn.CFrame*CFrame.Angles(0.2,0.2,0.2) | |
| 3136 | wait(0.00000000001) | |
| 3137 | end | |
| 3138 | end)) | |
| 3139 | ||
| 3140 | ||
| 3141 | local Spinn = Instance.new("Part",char)
| |
| 3142 | Spinn.Size = Vector3.new(1,1,1) | |
| 3143 | Spinn.BrickColor = BrickColor.new("New Yeller")
| |
| 3144 | Spinn.CanCollide = false | |
| 3145 | Spinn.Transparency = 0.1 | |
| 3146 | Spinn.Anchored = true | |
| 3147 | Spinn.Material = "Neon" | |
| 3148 | Spinn.CFrame = root.CFrame*CFrame.new(0,0,-10)*CFrame.Angles(0,0,0) | |
| 3149 | local Spinn2 = Instance.new("SpecialMesh",Spinn)
| |
| 3150 | Spinn2.MeshType = 3 | |
| 3151 | Spinn2.Scale = Vector3.new(6,6,35) | |
| 3152 | coroutine.resume(coroutine.create(function() | |
| 3153 | for i = 3,300 do | |
| 3154 | Spinn.Transparency = Spinn.Transparency + 0.05 | |
| 3155 | ||
| 3156 | ||
| 3157 | wait(0.00000000001) | |
| 3158 | end | |
| 3159 | end)) | |
| 3160 | ||
| 3161 | local SFXZ = Instance.new("Sound",hed)
| |
| 3162 | SFXZ.SoundId = "rbxassetid://260430060" | |
| 3163 | SFXZ.Volume = 3 | |
| 3164 | SFXZ.Pitch = 1 | |
| 3165 | SFXZ.Looped = false | |
| 3166 | wait(0.01) | |
| 3167 | SFXZ:Play() | |
| 3168 | ||
| 3169 | end | |
| 3170 | SFXZ:Destroy() | |
| 3171 | end) | |
| 3172 | ||
| 3173 | for i= 1,5 do | |
| 3174 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
| 3175 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(-70), math.rad(0)), .5)--torso | |
| 3176 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), .5)--arm | |
| 3177 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.0,0.5,-0.8)*CFrame.Angles(math.rad(160),math.rad(70),math.rad(10)), .5)--arm | |
| 3178 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg | |
| 3179 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg | |
| 3180 | wait() | |
| 3181 | end | |
| 3182 | ||
| 3183 | coroutine.resume(coroutine.create(function() | |
| 3184 | wait(0.5) | |
| 3185 | Grab:remove() | |
| 3186 | end)) | |
| 3187 | no_anim = false | |
| 3188 | Grab:Destroy() | |
| 3189 | wait(0) | |
| 3190 | D = false | |
| 3191 | end | |
| 3192 | end | |
| 3193 | function Hit2() | |
| 3194 | if not D then D = true | |
| 3195 | no_anim = true | |
| 3196 | local Grab = Instance.new("Part",rarm)
| |
| 3197 | Grab.Size = Vector3.new(4,4,4) | |
| 3198 | Grab.CanCollide = false | |
| 3199 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3200 | Grab.Transparency = math.huge | |
| 3201 | local Grabo = Instance.new("Weld",Grab)
| |
| 3202 | Grabo.Part0 = rarm | |
| 3203 | Grabo.Part1 = Grab | |
| 3204 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
| 3205 | local SFXZ = Instance.new("Sound",torso)
| |
| 3206 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 3207 | SFXZ.Volume = 1 | |
| 3208 | SFXZ.Pitch = 1 | |
| 3209 | SFXZ.Looped = false | |
| 3210 | wait(0.01) | |
| 3211 | SFXZ:Play() | |
| 3212 | ||
| 3213 | Grab.Touched:connect(function(hit) | |
| 3214 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then
| |
| 3215 | Grab:Destroy() | |
| 3216 | SFXZ:Destroy() | |
| 3217 | hit.Parent.Humanoid:TakeDamage(50) | |
| 3218 | local Cloud3 = Instance.new("Part",char)
| |
| 3219 | Cloud3.Size = Vector3.new(1,1,1) | |
| 3220 | Cloud3.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3221 | Cloud3.Anchored = true | |
| 3222 | Cloud3.Material = "Neon" | |
| 3223 | Cloud3.CanCollide = false | |
| 3224 | Cloud3.CFrame = rarm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(-1.55,0,0) | |
| 3225 | local Cloud4 = Instance.new("SpecialMesh",Cloud3)
| |
| 3226 | Cloud4.MeshId = "rbxassetid://3270017" | |
| 3227 | Cloud4.Scale = Vector3.new(1,1,0.4) | |
| 3228 | ||
| 3229 | ||
| 3230 | ||
| 3231 | coroutine.resume(coroutine.create(function() | |
| 3232 | for i = 3,650 do | |
| 3233 | ||
| 3234 | ||
| 3235 | ||
| 3236 | ||
| 3237 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
| 3238 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.2,0.2,0.2) | |
| 3239 | ||
| 3240 | ||
| 3241 | ||
| 3242 | ||
| 3243 | wait(0.00000000001) | |
| 3244 | end | |
| 3245 | end)) | |
| 3246 | local SFXZ = Instance.new("Sound",hed)
| |
| 3247 | SFXZ.SoundId = "rbxassetid://260430060" | |
| 3248 | SFXZ.Volume = 3 | |
| 3249 | SFXZ.Pitch = 1.2 | |
| 3250 | SFXZ.Looped = false | |
| 3251 | wait(0.01) | |
| 3252 | SFXZ:Play() | |
| 3253 | ||
| 3254 | end | |
| 3255 | SFXZ:Destroy() | |
| 3256 | end) | |
| 3257 | for i = 1, 5 do | |
| 3258 | wait() | |
| 3259 | ||
| 3260 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
| 3261 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
| 3262 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
| 3263 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 3264 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 3265 | end | |
| 3266 | ||
| 3267 | coroutine.resume(coroutine.create(function() | |
| 3268 | wait(0.5) | |
| 3269 | Grab:remove() | |
| 3270 | end)) | |
| 3271 | no_anim = false | |
| 3272 | Grab:Destroy() | |
| 3273 | wait(0) | |
| 3274 | D = false | |
| 3275 | end | |
| 3276 | end | |
| 3277 | ||
| 3278 | function HitFC() | |
| 3279 | if not D then D = true | |
| 3280 | animid = 5 | |
| 3281 | no_anim = true | |
| 3282 | local Grab = Instance.new("Part",larm)
| |
| 3283 | Grab.Size = Vector3.new(3,3,3) | |
| 3284 | Grab.CanCollide = false | |
| 3285 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3286 | Grab.Transparency = math.huge | |
| 3287 | local Grabo = Instance.new("Weld",Grab)
| |
| 3288 | Grabo.Part0 = larm | |
| 3289 | Grabo.Part1 = Grab | |
| 3290 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
| 3291 | local SFXZ = Instance.new("Sound",torso)
| |
| 3292 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 3293 | SFXZ.Volume = 1 | |
| 3294 | SFXZ.Pitch = 1.5 | |
| 3295 | SFXZ.Looped = false | |
| 3296 | wait(0.01) | |
| 3297 | SFXZ:Play() | |
| 3298 | ||
| 3299 | Grab.Touched:connect(function(hit) | |
| 3300 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then
| |
| 3301 | Grab:Destroy() | |
| 3302 | SFXZ:Destroy() | |
| 3303 | hit.Parent.Humanoid:TakeDamage(250) | |
| 3304 | local Cloud3 = Instance.new("Part",char)
| |
| 3305 | Cloud3.Size = Vector3.new(1,1,1) | |
| 3306 | Cloud3.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3307 | Cloud3.Anchored = true | |
| 3308 | Cloud3.Material = "Neon" | |
| 3309 | Cloud3.CanCollide = false | |
| 3310 | Cloud3.CFrame = larm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0) | |
| 3311 | local Cloud4 = Instance.new("SpecialMesh",Cloud3)
| |
| 3312 | Cloud4.MeshId = "rbxassetid://3270017" | |
| 3313 | Cloud4.Scale = Vector3.new(1.6,1.6,0.4) | |
| 3314 | ||
| 3315 | ||
| 3316 | ||
| 3317 | coroutine.resume(coroutine.create(function() | |
| 3318 | for i = 3,650 do | |
| 3319 | ||
| 3320 | ||
| 3321 | ||
| 3322 | ||
| 3323 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
| 3324 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.5,0.5,0.5) | |
| 3325 | ||
| 3326 | ||
| 3327 | ||
| 3328 | ||
| 3329 | wait(0.00000000001) | |
| 3330 | end | |
| 3331 | end)) | |
| 3332 | local SFXZ = Instance.new("Sound",hed)
| |
| 3333 | SFXZ.SoundId = "rbxassetid://260430060" | |
| 3334 | SFXZ.Volume = 3 | |
| 3335 | SFXZ.Pitch = 1 | |
| 3336 | SFXZ.Looped = false | |
| 3337 | wait(0.01) | |
| 3338 | SFXZ:Play() | |
| 3339 | ||
| 3340 | end | |
| 3341 | SFXZ:Destroy() | |
| 3342 | end) | |
| 3343 | ||
| 3344 | for i = 1, 2 do | |
| 3345 | wait() | |
| 3346 | ||
| 3347 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)), 0.8)--torso | |
| 3348 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(10)), 0.8)--rarm | |
| 3349 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.8)--larm | |
| 3350 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 3351 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 3352 | end | |
| 3353 | ||
| 3354 | coroutine.resume(coroutine.create(function() | |
| 3355 | wait(0.5) | |
| 3356 | Grab:remove() | |
| 3357 | end)) | |
| 3358 | no_anim = false | |
| 3359 | Grab:Destroy() | |
| 3360 | wait(0) | |
| 3361 | D = false | |
| 3362 | end | |
| 3363 | end | |
| 3364 | function HitFC2() | |
| 3365 | if not D then D = true | |
| 3366 | no_anim = true | |
| 3367 | local Grab = Instance.new("Part",rarm)
| |
| 3368 | Grab.Size = Vector3.new(3,3,3) | |
| 3369 | Grab.CanCollide = false | |
| 3370 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3371 | Grab.Transparency = math.huge | |
| 3372 | local Grabo = Instance.new("Weld",Grab)
| |
| 3373 | Grabo.Part0 = rarm | |
| 3374 | Grabo.Part1 = Grab | |
| 3375 | Grabo.C0 = CFrame.new(0,-1.1,0) | |
| 3376 | local SFXZ = Instance.new("Sound",torso)
| |
| 3377 | SFXZ.SoundId = "rbxassetid://169259383" | |
| 3378 | SFXZ.Volume = 1 | |
| 3379 | SFXZ.Pitch = 1 | |
| 3380 | SFXZ.Looped = false | |
| 3381 | wait(0.01) | |
| 3382 | SFXZ:Play() | |
| 3383 | ||
| 3384 | Grab.Touched:connect(function(hit) | |
| 3385 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= plr.Character.Name then
| |
| 3386 | Grab:Destroy() | |
| 3387 | SFXZ:Destroy() | |
| 3388 | hit.Parent.Humanoid:TakeDamage(250) | |
| 3389 | local Cloud3 = Instance.new("Part",char)
| |
| 3390 | Cloud3.Size = Vector3.new(1,1,1) | |
| 3391 | Cloud3.BrickColor = BrickColor.new("Medium stone grey")
| |
| 3392 | Cloud3.Anchored = true | |
| 3393 | Cloud3.Material = "Neon" | |
| 3394 | Cloud3.CanCollide = false | |
| 3395 | Cloud3.CFrame = rarm.CFrame*CFrame.new(0,0,0)*CFrame.Angles(-1.55,0,0) | |
| 3396 | local Cloud4 = Instance.new("SpecialMesh",Cloud3)
| |
| 3397 | Cloud4.MeshId = "rbxassetid://3270017" | |
| 3398 | Cloud4.Scale = Vector3.new(1.6,1.6,0.4) | |
| 3399 | ||
| 3400 | ||
| 3401 | ||
| 3402 | coroutine.resume(coroutine.create(function() | |
| 3403 | for i = 3,650 do | |
| 3404 | ||
| 3405 | ||
| 3406 | ||
| 3407 | ||
| 3408 | Cloud3.Transparency = Cloud3.Transparency + 0.03 | |
| 3409 | Cloud4.Scale = Cloud4.Scale + Vector3.new(0.5,0.5,0.2) | |
| 3410 | ||
| 3411 | ||
| 3412 | ||
| 3413 | ||
| 3414 | wait(0.00000000001) | |
| 3415 | end | |
| 3416 | end)) | |
| 3417 | local SFXZ = Instance.new("Sound",hed)
| |
| 3418 | SFXZ.SoundId = "rbxassetid://260430060" | |
| 3419 | SFXZ.Volume = 3 | |
| 3420 | SFXZ.Pitch = 1.2 | |
| 3421 | SFXZ.Looped = false | |
| 3422 | wait(0.01) | |
| 3423 | SFXZ:Play() | |
| 3424 | ||
| 3425 | end | |
| 3426 | SFXZ:Destroy() | |
| 3427 | end) | |
| 3428 | for i = 1, 2 do | |
| 3429 | wait() | |
| 3430 | ||
| 3431 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(50),math.rad(0)), 0.8)--torso | |
| 3432 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.8)--rarm | |
| 3433 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--larm | |
| 3434 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 3435 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 3436 | end | |
| 3437 | ||
| 3438 | coroutine.resume(coroutine.create(function() | |
| 3439 | wait(0.5) | |
| 3440 | Grab:remove() | |
| 3441 | end)) | |
| 3442 | no_anim = false | |
| 3443 | Grab:Destroy() | |
| 3444 | wait(0) | |
| 3445 | D = false | |
| 3446 | end | |
| 3447 | end | |
| 3448 | ||
| 3449 | ||
| 3450 | ||
| 3451 | ||
| 3452 | mouse.KeyDown:connect(function(key) | |
| 3453 | if key == '1' then | |
| 3454 | no_anim = true | |
| 3455 | local Aura = Instance.new("ParticleEmitter",Stone4)
| |
| 3456 | Aura.Texture = "rbxassetid://271370648" | |
| 3457 | Aura.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 3458 | Aura.EmissionDirection = "Top" | |
| 3459 | Aura.Speed = NumberRange.new(0) | |
| 3460 | Aura.Size = NumberSequence.new(2.5) | |
| 3461 | Aura.Transparency = NumberSequence.new(0,1) | |
| 3462 | Aura.Drag = 0.4 | |
| 3463 | Aura.LightInfluence = 0 | |
| 3464 | Aura.LockedToPart = true | |
| 3465 | Aura.Lifetime = NumberRange.new(0.9) | |
| 3466 | Aura.Rate = 60 | |
| 3467 | Aura.LightEmission = 0.6 | |
| 3468 | Aura.Rotation = NumberRange.new(-360,360) | |
| 3469 | Aura.VelocitySpread = 0 | |
| 3470 | Aura.Acceleration = Vector3.new(0,0,0) | |
| 3471 | Aura.ZOffset = 0.2 | |
| 3472 | LockOn() | |
| 3473 | for i = 1, 20 do | |
| 3474 | wait() | |
| 3475 | ||
| 3476 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 3477 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 3478 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(0)), 0.8)--larm | |
| 3479 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 3480 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 3481 | end | |
| 3482 | no_anim = false | |
| 3483 | Aura.Rate = 0 | |
| 3484 | end | |
| 3485 | end) | |
| 3486 | ||
| 3487 | mouse.KeyDown:connect(function(key) | |
| 3488 | if key == '2' then | |
| 3489 | Bring() | |
| 3490 | end | |
| 3491 | end) | |
| 3492 | ||
| 3493 | function LockOn() | |
| 3494 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 3495 | TargetSelect(mouse.Target.Parent) | |
| 3496 | Rock(mouse.Target.Parent) | |
| 3497 | end | |
| 3498 | end | |
| 3499 | ||
| 3500 | ||
| 3501 | function Bring() | |
| 3502 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 3503 | TargetSelect(mouse.Target.Parent) | |
| 3504 | ||
| 3505 | end | |
| 3506 | end | |
| 3507 | function swait(num) | |
| 3508 | if num == 0 or num == nil then | |
| 3509 | ArtificialHB.Event:wait() | |
| 3510 | else | |
| 3511 | for i = 0, num do | |
| 3512 | ArtificialHB.Event:wait() | |
| 3513 | end | |
| 3514 | end | |
| 3515 | end | |
| 3516 | ||
| 3517 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 3518 | ArtificialHB.Name = "Heartbeat" | |
| 3519 | ||
| 3520 | script:WaitForChild("Heartbeat")
| |
| 3521 | ||
| 3522 | function TargetSelect(person) | |
| 3523 | local dd=coroutine.wrap(function() | |
| 3524 | if targetted ~= person then | |
| 3525 | targetted = person | |
| 3526 | for i = 0, 2, 0.1 do | |
| 3527 | swait() | |
| 3528 | end | |
| 3529 | end | |
| 3530 | end) | |
| 3531 | dd() | |
| 3532 | end | |
| 3533 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 3534 | local Create = RbxUtility.Create | |
| 3535 | function HomingAttack() | |
| 3536 | ||
| 3537 | ||
| 3538 | ||
| 3539 | ||
| 3540 | if targetted == nil then | |
| 3541 | ||
| 3542 | end | |
| 3543 | ||
| 3544 | ||
| 3545 | targetted.Head.CFrame = root.CFrame * CFrame.new(0,1.5,-3.1) | |
| 3546 | ||
| 3547 | ||
| 3548 | ||
| 3549 | ||
| 3550 | ||
| 3551 | end | |
| 3552 | mouse.KeyDown:connect(function(key) | |
| 3553 | if key == '3' then | |
| 3554 | HomingAttack() | |
| 3555 | end | |
| 3556 | end) | |
| 3557 | ||
| 3558 | function laz0r() | |
| 3559 | ||
| 3560 | local Position = nil | |
| 3561 | if animid == 0 then | |
| 3562 | Position = NeckS.Position | |
| 3563 | else | |
| 3564 | Position = NeckS.Position | |
| 3565 | end | |
| 3566 | ||
| 3567 | local Part1 = Instance.new("Part")
| |
| 3568 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 3569 | mesh2.MeshId = "rbxassetid://559831844" | |
| 3570 | mesh2.Scale = Vector3.new(0,0,0.4) | |
| 3571 | Part1.Material = Enum.Material.Neon | |
| 3572 | Part1.CanCollide = false | |
| 3573 | Part1.BrickColor = BrickColor.new("White")
| |
| 3574 | Part1.Parent = DebrisModel | |
| 3575 | Part1.Size = Vector3.new(0,0,0) | |
| 3576 | Part1.Anchored = true | |
| 3577 | Part1.CFrame = CFrame.new(Position) | |
| 3578 | Part1.Name = "EXPLOSION3" | |
| 3579 | ||
| 3580 | local Part0 = Instance.new("Part",DebrisModel)
| |
| 3581 | Part0.Name = "Bullet" | |
| 3582 | Part0.Material = Enum.Material.Neon | |
| 3583 | Part0.BrickColor = BrickColor.new("Magenta")
| |
| 3584 | Part0.Anchored = true | |
| 3585 | local mesh = Instance.new("SpecialMesh",Part0)
| |
| 3586 | mesh.MeshType = Enum.MeshType.Sphere | |
| 3587 | Part0.CanCollide = false | |
| 3588 | local Target = mouse.Hit.p | |
| 3589 | local direction = Target - Position | |
| 3590 | local direction = computeDirection(direction) | |
| 3591 | local ray = Ray.new(Position, (Target).unit*1048) | |
| 3592 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 3593 | Part0.Size = Vector3.new(9,1,9) | |
| 3594 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
| 3595 | local pos = Position + (direction * (mesh.Scale.Y/2)) | |
| 3596 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 3597 | ||
| 3598 | clashpart = Instance.new("Part",DebrisModel)
| |
| 3599 | clashpart.Size = Vector3.new(50,50,50) | |
| 3600 | clashpart.CanCollide = false | |
| 3601 | clashpart.Anchored = true | |
| 3602 | clashpart.Transparency = 1 | |
| 3603 | clashpart.BrickColor = BrickColor.new("Magenta")
| |
| 3604 | clashpart.Name = "StarLightClash" | |
| 3605 | clashpart.CFrame = CFrame.new(endPoint, mouse.Hit.p) | |
| 3606 | ||
| 3607 | ||
| 3608 | ||
| 3609 | local z = 10 | |
| 3610 | for i = 1,100 do rs:wait() | |
| 3611 | if animid == 0 then | |
| 3612 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y, mouse.Hit.p.Z)) | |
| 3613 | Position = root.Position | |
| 3614 | else | |
| 3615 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y, mouse.Hit.p.Z)) | |
| 3616 | Position = root.Position | |
| 3617 | end | |
| 3618 | ||
| 3619 | local Target = mouse.Hit.p | |
| 3620 | local direction = Target - Position | |
| 3621 | local direction = computeDirection(direction) | |
| 3622 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 3623 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 3624 | Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5)) | |
| 3625 | mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1) | |
| 3626 | mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0) | |
| 3627 | local pos = Position + (direction * (mesh.Scale.Y/0)) | |
| 3628 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 3629 | clashpart.CFrame = CFrame.new(endPoint, root.Position) | |
| 3630 | ||
| 3631 | local Position = mouse.Hit.p | |
| 3632 | local Target = root.Position | |
| 3633 | local direction = Target - Position | |
| 3634 | local direction = computeDirection(direction) | |
| 3635 | root.Velocity = direction * 5 | |
| 3636 | ||
| 3637 | if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end | |
| 3638 | ||
| 3639 | Part1 = Part0:Clone() | |
| 3640 | Part1.Parent = DebrisModel | |
| 3641 | Part1.BrickColor = BrickColor.new("Magenta")
| |
| 3642 | Part1.Name = "SMOKE2" | |
| 3643 | ||
| 3644 | if part ~= nil then | |
| 3645 | if part.Name == "StarLightClash" then | |
| 3646 | local asdf = math.random(0,5)*20 | |
| 3647 | local Part1 = Instance.new("Part")
| |
| 3648 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 3649 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 3650 | mesh2.Scale = Vector3.new(0,0,0) | |
| 3651 | Part1.Material = Enum.Material.Neon | |
| 3652 | Part1.CanCollide = false | |
| 3653 | Part1.BrickColor = BrickColor.new("Magenta")
| |
| 3654 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 3655 | Part1.Anchored = true | |
| 3656 | local a = 1.5 | |
| 3657 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
| 3658 | Part1.Name = "EXPLOSION" | |
| 3659 | else | |
| 3660 | local asdf = math.random(0,5)*10 | |
| 3661 | local Part1 = Instance.new("Part")
| |
| 3662 | local mesh2 = Instance.new("SpecialMesh",Part1)
| |
| 3663 | mesh2.MeshType = Enum.MeshType.Sphere | |
| 3664 | mesh2.Scale = Vector3.new(0,0,0) | |
| 3665 | Part1.Material = Enum.Material.Neon | |
| 3666 | Part1.CanCollide = false | |
| 3667 | Part1.BrickColor = BrickColor.new("Magenta")
| |
| 3668 | Part1.Parent = DebrisModel | |
| 3669 | Part1.Size = Vector3.new(asdf,asdf,asdf) | |
| 3670 | Part1.Anchored = true | |
| 3671 | local a = 1.5 | |
| 3672 | Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a)) | |
| 3673 | Part1.Name = "EXPLOSION" | |
| 3674 | end | |
| 3675 | end | |
| 3676 | ||
| 3677 | for i,v in pairs(findAllNearestTorso(endPoint,50)) do | |
| 3678 | if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 100000000000000000000000000000000000 then
| |
| 3679 | v:Destroy() | |
| 3680 | else | |
| 3681 | v.Parent:BreakJoints() | |
| 3682 | end | |
| 3683 | local Position = mouse.Hit.p | |
| 3684 | local Target = v.Position | |
| 3685 | local direction = Target - Position | |
| 3686 | local direction = computeDirection(direction) | |
| 3687 | local bv = Instance.new("BodyVelocity",v)
| |
| 3688 | bv.Velocity = direction * (10 - ((Position - Target).magnitude/2)) | |
| 3689 | debris:AddItem(bv,1) | |
| 3690 | end | |
| 3691 | ||
| 3692 | end | |
| 3693 | clashpart:Destroy() | |
| 3694 | Part0:Destroy() | |
| 3695 | wait(0.3) | |
| 3696 | aiming_anim = false | |
| 3697 | delay(0.3,function() debounce = false end) | |
| 3698 | end | |
| 3699 | ||
| 3700 | ||
| 3701 | mouse.KeyDown:connect(function(k) | |
| 3702 | if k == "u" and Mode == false then | |
| 3703 | ||
| 3704 | animid = 5 | |
| 3705 | no_anim = true | |
| 3706 | hum.WalkSpeed = 0 | |
| 3707 | ||
| 3708 | ||
| 3709 | ||
| 3710 | for i = 1, 30 do | |
| 3711 | wait() | |
| 3712 | ||
| 3713 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 3714 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 3715 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(150),math.rad(-50),math.rad(0)), 0.8)--larm | |
| 3716 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 3717 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 3718 | end | |
| 3719 | wait(2) | |
| 3720 | local Grab = Instance.new("Part",hed)
| |
| 3721 | Grab.Size = Vector3.new(3.9,5,3.9) | |
| 3722 | Grab.CanCollide = false | |
| 3723 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3724 | Grab.Transparency = 1 | |
| 3725 | local Grabo = Instance.new("Weld",Grab)
| |
| 3726 | Grabo.Part0 = hed | |
| 3727 | Grabo.Part1 = Grab | |
| 3728 | Grabo.C0 = CFrame.new(0,-1.5,0) | |
| 3729 | ||
| 3730 | local AuraB = Instance.new("Part",hed)
| |
| 3731 | AuraB.Size = Vector3.new(2,1,2) | |
| 3732 | AuraB.CanCollide = false | |
| 3733 | AuraB.BrickColor = BrickColor.new("Deep orange")
| |
| 3734 | AuraB.Transparency = 1 | |
| 3735 | local AuraBo = Instance.new("Weld",AuraB)
| |
| 3736 | AuraBo.Part0 = hed | |
| 3737 | AuraBo.Part1 = AuraB | |
| 3738 | AuraBo.C0 = CFrame.new(0,-3.6,0) | |
| 3739 | ||
| 3740 | local FZcharge3 = Instance.new("ParticleEmitter",Grab)
| |
| 3741 | FZcharge3.Texture = "rbxassetid://249481494" | |
| 3742 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
| 3743 | FZcharge3.EmissionDirection = "Top" | |
| 3744 | FZcharge3.Speed = NumberRange.new(2) | |
| 3745 | FZcharge3.Size = NumberSequence.new(4,0) | |
| 3746 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 3747 | FZcharge3.Drag = 1.2 | |
| 3748 | FZcharge3.LockedToPart = true | |
| 3749 | FZcharge3.Lifetime = NumberRange.new(1) | |
| 3750 | FZcharge3.Rate = 195 | |
| 3751 | FZcharge3.LightEmission = 0.3 | |
| 3752 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 3753 | FZcharge3.VelocitySpread = 0.2 | |
| 3754 | FZcharge3.ZOffset = 2.5 | |
| 3755 | wait(1) | |
| 3756 | FZcharge3.Rate = 0 | |
| 3757 | UltimateBattle.Volume = 0 | |
| 3758 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://"
| |
| 3759 | for i,v in pairs(char:GetChildren()) do | |
| 3760 | if v ~= root then | |
| 3761 | if v:IsA("Part") then
| |
| 3762 | v.Transparency = 1 | |
| 3763 | elseif v:IsA("Accoutrement") then
| |
| 3764 | v:FindFirstChildOfClass("Part").Transparency = 1
| |
| 3765 | end | |
| 3766 | end | |
| 3767 | end | |
| 3768 | for i,v in pairs(NeckS:GetChildren()) do | |
| 3769 | if v ~= root then | |
| 3770 | if v:IsA("Part") then
| |
| 3771 | v.Transparency = 1 | |
| 3772 | elseif v:IsA("Accoutrement") then
| |
| 3773 | v:FindFirstChildOfClass("Part").Transparency = 1
| |
| 3774 | end | |
| 3775 | end | |
| 3776 | end | |
| 3777 | ||
| 3778 | wait(2.2) | |
| 3779 | FZcharge3.Rate = 195 | |
| 3780 | root.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
| 3781 | ||
| 3782 | for i,v in pairs(char:GetChildren()) do | |
| 3783 | if v ~= root then | |
| 3784 | if v:IsA("Part") then
| |
| 3785 | v.Transparency = 0 | |
| 3786 | elseif v:IsA("Accoutrement") then
| |
| 3787 | v:FindFirstChildOfClass("Part").Transparency = 0
| |
| 3788 | end | |
| 3789 | end | |
| 3790 | end | |
| 3791 | for i,v in pairs(NeckS:GetChildren()) do | |
| 3792 | if v ~= root then | |
| 3793 | if v:IsA("Part") then
| |
| 3794 | v.Transparency = 0 | |
| 3795 | elseif v:IsA("Accoutrement") then
| |
| 3796 | v:FindFirstChildOfClass("Part").Transparency = 0
| |
| 3797 | end | |
| 3798 | end | |
| 3799 | end | |
| 3800 | hed:FindFirstChildOfClass("Decal").Texture = "rbxassetid://254640655"
| |
| 3801 | wait(1) | |
| 3802 | UltimateBattle.Volume = 5 | |
| 3803 | FZcharge3.Rate = 0 | |
| 3804 | hum.WalkSpeed = 16 | |
| 3805 | wait(1) | |
| 3806 | Grab:Destroy() | |
| 3807 | no_anim = false | |
| 3808 | end | |
| 3809 | end) | |
| 3810 | mouse.KeyDown:connect(function(k) | |
| 3811 | if k == "u" and Mode == true then | |
| 3812 | ||
| 3813 | ||
| 3814 | root.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
| 3815 | ||
| 3816 | ||
| 3817 | end | |
| 3818 | end) | |
| 3819 | ------------------------------------------------------- | |
| 3820 | ||
| 3821 | mouse.KeyDown:connect(function(k) | |
| 3822 | if k == "z" then | |
| 3823 | local FZcharge3 = Instance.new("ParticleEmitter",Stone6)
| |
| 3824 | FZcharge3.Texture = "rbxassetid://165211997" | |
| 3825 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0)) | |
| 3826 | FZcharge3.EmissionDirection = "Top" | |
| 3827 | FZcharge3.Speed = NumberRange.new(8) | |
| 3828 | FZcharge3.Size = NumberSequence.new(0.5,0) | |
| 3829 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 3830 | FZcharge3.Drag = 1.2 | |
| 3831 | FZcharge3.LockedToPart = false | |
| 3832 | FZcharge3.Lifetime = NumberRange.new(0.5) | |
| 3833 | FZcharge3.Rate = 195 | |
| 3834 | FZcharge3.LightEmission = 1 | |
| 3835 | FZcharge3.VelocitySpread = 100 | |
| 3836 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 3837 | FZcharge3.VelocitySpread = 100.2 | |
| 3838 | FZcharge3.ZOffset = 1 | |
| 3839 | local CHAINLINKS = {}
| |
| 3840 | local POS = mouse.Hit.p | |
| 3841 | local CHAINS = false | |
| 3842 | local CHAINLINKS = {}
| |
| 3843 | local A = Instance.new("Attachment",NeckS)
| |
| 3844 | A.Position = Vector3.new(0.3,0,0)*Player_Size | |
| 3845 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
| 3846 | local B = Instance.new("Attachment",NeckS)
| |
| 3847 | B.Position = Vector3.new(-0.3,0,0)*Player_Size | |
| 3848 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
| 3849 | local C = Instance.new("Attachment",NeckS)
| |
| 3850 | C.Position = Vector3.new(0.3,-0.1,0)*Player_Size | |
| 3851 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
| 3852 | local D = Instance.new("Attachment",NeckS)
| |
| 3853 | D.Position = Vector3.new(-0.3,-0.3,0)*Player_Size | |
| 3854 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
| 3855 | local LIGHT = Instance.new("Attachment",NeckS)
| |
| 3856 | LIGHT.Position = Vector3.new(0.3,-0,0)*Player_Size | |
| 3857 | local LIGHT2 = Instance.new("PointLight",larm)
| |
| 3858 | LIGHT2.Range = 6 | |
| 3859 | LIGHT2.Brightness = 20 | |
| 3860 | LIGHT2.Color = Color3.new(0, 255, 0) | |
| 3861 | for i = 1, 2 do | |
| 3862 | local TWIST = -2 | |
| 3863 | local START = A | |
| 3864 | local END = B | |
| 3865 | if i == 1 then | |
| 3866 | START = B | |
| 3867 | END = A | |
| 3868 | end | |
| 3869 | local ChainLink = Instance.new("Beam",torso)
| |
| 3870 | ChainLink.Texture = "rbxassetid://165211997" | |
| 3871 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0)) | |
| 3872 | ChainLink.TextureSpeed = 5 | |
| 3873 | ChainLink.Width0 = 1 | |
| 3874 | ChainLink.Width1 = 1 | |
| 3875 | ChainLink.TextureLength = 1.5 | |
| 3876 | ChainLink.Attachment0 = START | |
| 3877 | ChainLink.Attachment1 = END | |
| 3878 | ChainLink.CurveSize0 = TWIST | |
| 3879 | ChainLink.CurveSize1 = TWIST | |
| 3880 | --ChainLink.FaceCamera = true | |
| 3881 | ChainLink.Segments = 45 | |
| 3882 | ChainLink.Transparency = NumberSequence.new(0) | |
| 3883 | table.insert(CHAINLINKS,ChainLink) | |
| 3884 | end | |
| 3885 | coroutine.resume(coroutine.create(function() | |
| 3886 | for i = 3,80000000000000000000000000000 do | |
| 3887 | hum.Health = hum.MaxHealth | |
| 3888 | ||
| 3889 | ||
| 3890 | coroutine.resume(coroutine.create(function() | |
| 3891 | for i = 1,15 do | |
| 3892 | ||
| 3893 | wait(0.00000000001) | |
| 3894 | end | |
| 3895 | ||
| 3896 | ||
| 3897 | ||
| 3898 | end)) | |
| 3899 | wait(0.06) | |
| 3900 | end | |
| 3901 | end)) | |
| 3902 | ||
| 3903 | end | |
| 3904 | end) | |
| 3905 | ||
| 3906 | mouse.KeyDown:connect(function(k) | |
| 3907 | if k == "k" then | |
| 3908 | no_anim = true | |
| 3909 | local FlyAt = Instance.new("Attachment",NeckS)FlyAt.Position = Vector3.new(0,0.5,0)
| |
| 3910 | local FlyAt2 = Instance.new("Attachment",NeckS)FlyAt2.Position = Vector3.new(0,-0.5,0)
| |
| 3911 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 3912 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3913 | Speed.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) Speed.LightEmission = 5 | |
| 3914 | for i = 1,7 do | |
| 3915 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
| 3916 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(10), math.rad(20), math.rad(0)), .5)--torso | |
| 3917 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), .5)--arm | |
| 3918 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), .5)--arm | |
| 3919 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .5)--leg | |
| 3920 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.5)--leg | |
| 3921 | wait() | |
| 3922 | end | |
| 3923 | wait(0.7) | |
| 3924 | local Grab = Instance.new("Part",NeckS)
| |
| 3925 | Grab.Size = Vector3.new(4,4,4) | |
| 3926 | Grab.CanCollide = false | |
| 3927 | Grab.BrickColor = BrickColor.new("Deep orange")
| |
| 3928 | Grab.Transparency = math.huge | |
| 3929 | local Grabo = Instance.new("Weld",Grab)
| |
| 3930 | Grabo.Part0 = larm | |
| 3931 | Grabo.Part1 = Grab | |
| 3932 | Grabo.C0 = CFrame.new(0,-0.1,0) | |
| 3933 | Grab.Touched:connect(function(hit) | |
| 3934 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= player.Character.Name then
| |
| 3935 | Grab:Destroy() | |
| 3936 | no_anim = true | |
| 3937 | local SFXZ = Instance.new("Sound",root)
| |
| 3938 | SFXZ.SoundId = "rbxassetid://1699290293" | |
| 3939 | SFXZ.Volume = 7 | |
| 3940 | SFXZ.Pitch = 1 | |
| 3941 | SFXZ.Looped = false | |
| 3942 | wait(0.01) | |
| 3943 | SFXZ:Play() | |
| 3944 | hit.Parent:BreakJoints() | |
| 3945 | Snap(hit.Parent) | |
| 3946 | ||
| 3947 | ||
| 3948 | ||
| 3949 | ||
| 3950 | end | |
| 3951 | end) | |
| 3952 | for i= 1,10 do | |
| 3953 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), .5)--head | |
| 3954 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(-70), math.rad(0)), .5)--torso | |
| 3955 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), .5)--arm | |
| 3956 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.0,0.5,-0.8)*CFrame.Angles(math.rad(160),math.rad(70),math.rad(10)), .5)--arm | |
| 3957 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)--leg | |
| 3958 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),.5)--leg | |
| 3959 | wait() | |
| 3960 | end | |
| 3961 | FlyAt:Destroy() | |
| 3962 | no_anim = false | |
| 3963 | ||
| 3964 | end | |
| 3965 | end) | |
| 3966 | ||
| 3967 | ||
| 3968 | mouse.KeyDown:connect(function(k) | |
| 3969 | if k == "y" then | |
| 3970 | instinct = false | |
| 3971 | animid = 5 | |
| 3972 | no_anim = true | |
| 3973 | ||
| 3974 | local sbs = Instance.new("BodyPosition", torso)
| |
| 3975 | sbs.P = 9000 | |
| 3976 | sbs.D = 1000 | |
| 3977 | sbs.maxForce = Vector3.new(900000, 900000000, 900000) | |
| 3978 | sbs.position = torso.CFrame.p + Vector3.new(0, 10, 0) | |
| 3979 | for i = 1, 20 do | |
| 3980 | wait() | |
| 3981 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(0)), 0.8)--head | |
| 3982 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 3983 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(-50)), 0.8)--rarm | |
| 3984 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(20),math.rad(50)), 0.8)--larm | |
| 3985 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(0)), 0.8)--lleg | |
| 3986 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--rleg | |
| 3987 | end | |
| 3988 | coroutine.resume(coroutine.create(function() | |
| 3989 | for i = 3,8 do | |
| 3990 | local Ball = Instance.new("Part",char)
| |
| 3991 | Ball.Size = Vector3.new(1,1,1) | |
| 3992 | Ball.BrickColor = BrickColor.new("Magenta")
| |
| 3993 | Ball.Material = "Neon" | |
| 3994 | Ball.Anchored = true | |
| 3995 | Ball.CanCollide = false | |
| 3996 | Ball.Transparency = 0 | |
| 3997 | Ball.CFrame = torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
| 3998 | local Ball2 = Instance.new("SpecialMesh",Ball)
| |
| 3999 | Ball2.MeshType = 3 | |
| 4000 | Ball2.Scale = Vector3.new(2,2,2) | |
| 4001 | ||
| 4002 | ||
| 4003 | ||
| 4004 | ||
| 4005 | coroutine.resume(coroutine.create(function() | |
| 4006 | for i = 1,15 do | |
| 4007 | Ball2.Scale = Ball2.Scale + Vector3.new(19.4,19.4,19.4) | |
| 4008 | Ball.Transparency = Ball.Transparency + 0.06 | |
| 4009 | wait(0.00000000001) | |
| 4010 | end | |
| 4011 | Ball:Destroy() | |
| 4012 | ||
| 4013 | ||
| 4014 | end)) | |
| 4015 | wait(0.06) | |
| 4016 | end | |
| 4017 | end)) | |
| 4018 | root.Anchored = true | |
| 4019 | g = Instance.new("Explosion")
| |
| 4020 | g.Parent = workspace | |
| 4021 | g.Position = root.Position | |
| 4022 | g.BlastRadius = 90 | |
| 4023 | g.BlastPressure = 4000200 | |
| 4024 | g.Visible = false | |
| 4025 | for i = 1, 70 do | |
| 4026 | wait() | |
| 4027 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.8)--head | |
| 4028 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4029 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1,0)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(50)), 0.8)--rarm | |
| 4030 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1,0)*CFrame.Angles(math.rad(90),math.rad(50),math.rad(-50)), 0.8)--larm | |
| 4031 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4032 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4033 | end | |
| 4034 | wait(0.2) | |
| 4035 | ||
| 4036 | sbs:Destroy() | |
| 4037 | no_anim = false | |
| 4038 | root.Anchored = false | |
| 4039 | ||
| 4040 | end | |
| 4041 | end) | |
| 4042 | local deb = false | |
| 4043 | function smooth(obj) | |
| 4044 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
| |
| 4045 | for i,v in pairs(sides) do | |
| 4046 | obj[v.."Surface"] = "SmoothNoOutlines" | |
| 4047 | end | |
| 4048 | end | |
| 4049 | local multiplier = 1000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
| 4050 | function hurt(hit, dmg) | |
| 4051 | if hit.Parent then | |
| 4052 | if hit.Parent.Name == "box" then print("bocks!11") hit.Parent:Destroy() end
| |
| 4053 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 4054 | if hum then | |
| 4055 | if hum.Parent.Name ~= plr.Name then | |
| 4056 | if dmg == "Kill" or hum.Health > 100000 then | |
| 4057 | hit.Parent:BreakJoints() | |
| 4058 | return true | |
| 4059 | else | |
| 4060 | if math.random(0, 100) == 50 then | |
| 4061 | hit.Parent:BreakJoints() | |
| 4062 | else | |
| 4063 | hit.Parent:BreakJoints() | |
| 4064 | end | |
| 4065 | return true | |
| 4066 | end | |
| 4067 | end | |
| 4068 | end | |
| 4069 | end | |
| 4070 | end | |
| 4071 | local push = 100 | |
| 4072 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
| 4073 | function gethum(obj) | |
| 4074 | if obj.Parent then | |
| 4075 | if obj.Parent:FindFirstChild("Humanoid") then
| |
| 4076 | if obj.Parent.Name ~= plr.Name then | |
| 4077 | return obj.Parent:FindFirstChildOfClass("Humanoid")
| |
| 4078 | end | |
| 4079 | end | |
| 4080 | end | |
| 4081 | end | |
| 4082 | ||
| 4083 | mouse.KeyDown:connect(function(key) | |
| 4084 | if key == "p" and not deb and not attacking then | |
| 4085 | deb = true | |
| 4086 | no_anim = true | |
| 4087 | ||
| 4088 | local Aura = Instance.new("ParticleEmitter",Stone2)
| |
| 4089 | Aura.Texture = "rbxassetid://271370648" | |
| 4090 | Aura.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
| |
| 4091 | Aura.EmissionDirection = "Top" | |
| 4092 | Aura.Speed = NumberRange.new(0) | |
| 4093 | Aura.Size = NumberSequence.new(2.5) | |
| 4094 | Aura.Transparency = NumberSequence.new(0,1) | |
| 4095 | Aura.Drag = 0.4 | |
| 4096 | Aura.LightInfluence = 0 | |
| 4097 | Aura.LockedToPart = true | |
| 4098 | Aura.Lifetime = NumberRange.new(0.9) | |
| 4099 | Aura.Rate = 60 | |
| 4100 | Aura.LightEmission = 0.6 | |
| 4101 | Aura.Rotation = NumberRange.new(-360,360) | |
| 4102 | Aura.VelocitySpread = 0 | |
| 4103 | Aura.Acceleration = Vector3.new(0,0,0) | |
| 4104 | Aura.ZOffset = 0.2 | |
| 4105 | ||
| 4106 | for i = 1, 10 do | |
| 4107 | wait() | |
| 4108 | ||
| 4109 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4110 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 4111 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(150),math.rad(-50),math.rad(0)), 0.8)--larm | |
| 4112 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4113 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4114 | end | |
| 4115 | Aura.Rate = 0 | |
| 4116 | ||
| 4117 | for i = 0, 10 do | |
| 4118 | spawn(function() | |
| 4119 | local p = Instance.new("Part")
| |
| 4120 | p.Anchored = true | |
| 4121 | p.CanCollide = false | |
| 4122 | p.CFrame = char.Torso.CFrame *CFrame.new(math.random(-12,12),-10,math.random(-12,12)) | |
| 4123 | smooth(p) | |
| 4124 | p.BrickColor = BrickColor.DarkGray() | |
| 4125 | p.Material = Enum.Material.Slate | |
| 4126 | p.Size = Vector3.new(9,9,9) | |
| 4127 | p.Transparency = 0 | |
| 4128 | ||
| 4129 | p.Parent = workspace | |
| 4130 | local FlyAt = Instance.new("Attachment",p)FlyAt.Position = Vector3.new(0,2.5,0)
| |
| 4131 | local FlyAt2 = Instance.new("Attachment",p)FlyAt2.Position = Vector3.new(0,-2.5,0)
| |
| 4132 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 4133 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4134 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
| 4135 | local endcf = p.CFrame *CFrame.new(0,30,0) | |
| 4136 | for i = 0, 20 do | |
| 4137 | p.CFrame = p.CFrame:Lerp(endcf, 0.3) | |
| 4138 | wait() | |
| 4139 | end | |
| 4140 | local z = Instance.new("Part")
| |
| 4141 | z.CFrame = p.CFrame | |
| 4142 | z.CFrame = CFrame.new(z.Position, mouse.Hit.p) | |
| 4143 | local bv = Instance.new("BodyVelocity", p)
| |
| 4144 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 4145 | bv.Velocity = z.CFrame.lookVector*140 | |
| 4146 | p.Anchored = false | |
| 4147 | z:Destroy() | |
| 4148 | p.CanCollide = false | |
| 4149 | local connection | |
| 4150 | spawn(function() | |
| 4151 | local angle = CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))) | |
| 4152 | repeat wait() | |
| 4153 | p.CFrame = p.CFrame *angle | |
| 4154 | until not p or p.CanCollide | |
| 4155 | end) | |
| 4156 | ||
| 4157 | connection = p.Touched:connect(function(hit) | |
| 4158 | hurt(hit, math.random(5,5)) | |
| 4159 | if not hit.Anchored and hit.Parent.Name ~= plr.Name and hit.Parent.ClassName ~= "Accessory" then | |
| 4160 | p.CanCollide = true | |
| 4161 | end | |
| 4162 | end) | |
| 4163 | game.Debris:AddItem(p, 5) | |
| 4164 | end) | |
| 4165 | ||
| 4166 | wait() | |
| 4167 | deb = false | |
| 4168 | no_anim = false | |
| 4169 | end | |
| 4170 | end | |
| 4171 | end) | |
| 4172 | function doBrick(parent,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts) | |
| 4173 | local p=Instance.new('Part',parent);p.BrickColor=colour;p.Material=material;p.Transparency=transparency;p.Anchored=a;p.CanCollide=cc;p.FormFactor="Custom";p.Size=size;p.BackSurface=bs;p.BottomSurface=bts;p.FrontSurface=fs;p.LeftSurface=ls;p.RightSurface=rs;p.TopSurface=ts;p.Position=pos;p.CFrame=p.CFrame*cf;
| |
| 4174 | return p | |
| 4175 | end | |
| 4176 | ||
| 4177 | function doMesh(parent,meshType,meshId,scale) | |
| 4178 | local m=Instance.new('SpecialMesh',parent);m.MeshType=meshType;m.MeshId=meshId;m.Scale=scale
| |
| 4179 | return m | |
| 4180 | end | |
| 4181 | local EP=Instance.new("Model",char)
| |
| 4182 | function magicBrick(pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts,meshType,meshId,scale,scaleAdd,loop,loopTransparency,repeatloop,repeatLoopWait,loopCFrame) | |
| 4183 | local cw1=coroutine.wrap(function() | |
| 4184 | for i=1,repeatloop do | |
| 4185 | local x=doBrick(EP,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts) | |
| 4186 | local z=doMesh(x,meshType,meshId,scale) | |
| 4187 | ||
| 4188 | local cw2=coroutine.wrap(function() | |
| 4189 | for i=1,loop do | |
| 4190 | if loopTransparency then | |
| 4191 | x.Transparency=i/loop | |
| 4192 | z.Scale=z.Scale+scaleAdd | |
| 4193 | x.CFrame=x.CFrame*loopCFrame | |
| 4194 | wait() | |
| 4195 | else | |
| 4196 | z.Scale=z.Scale+scaleAdd | |
| 4197 | x.CFrame=x.CFrame*loopCFrame | |
| 4198 | end | |
| 4199 | end | |
| 4200 | x:Destroy() | |
| 4201 | end) | |
| 4202 | cw2() | |
| 4203 | swait(repeatLoopWait) | |
| 4204 | end | |
| 4205 | end) | |
| 4206 | cw1() | |
| 4207 | end | |
| 4208 | if MUI == true then | |
| 4209 | ||
| 4210 | speed=0.15 | |
| 4211 | sound(438666277,2,1.5,torso) | |
| 4212 | coroutine.resume(coroutine.create(function() | |
| 4213 | for i=1,20 do | |
| 4214 | magicBrick(Vector3.new(0,0,0),torso.CFrame*CFrame.Angles(math.random(1,50),math.random(1,50),math.random(1,50)),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(math.random(10,15),math.random(20,30),0.2),Vector3.new(-2,-2,0),16,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0.2,0,0))
| |
| 4215 | swait(3) | |
| 4216 | end | |
| 4217 | end)) | |
| 4218 | for i=0,1,0.1*speed do | |
| 4219 | if lastAnim~=thisAnim then break end | |
| 4220 | ||
| 4221 | ||
| 4222 | ||
| 4223 | swait() | |
| 4224 | end | |
| 4225 | ||
| 4226 | doingMove=true | |
| 4227 | ||
| 4228 | coroutine.resume(coroutine.create(function() | |
| 4229 | for i=1,200 do | |
| 4230 | magicBrick(Vector3.new(0,0,0),torso.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
| |
| 4231 | swait() | |
| 4232 | end | |
| 4233 | end)) | |
| 4234 | ||
| 4235 | local beam=Instance.new("Part",char)
| |
| 4236 | beam.Anchored=true | |
| 4237 | beam.CanCollide=false | |
| 4238 | beam.BrickColor=BrickColor.new("Institutional white")
| |
| 4239 | beam.Material="Neon" | |
| 4240 | beam.Transparency=0.5 | |
| 4241 | ||
| 4242 | sound(415700134,1.75,0.85,torso) | |
| 4243 | ||
| 4244 | coroutine.resume(coroutine.create(function() | |
| 4245 | while true do | |
| 4246 | if not doingMove then break end | |
| 4247 | local dis=(torso.Position-mouse.Hit.p).magnitude | |
| 4248 | beam.Size=Vector3.new(2,2,dis) | |
| 4249 | beam.CFrame=CFrame.new(torso.CFrame.p,mouse.Hit.p)*CFrame.new(0,0,-dis/2) | |
| 4250 | swait() | |
| 4251 | end | |
| 4252 | end)) | |
| 4253 | ||
| 4254 | coroutine.resume(coroutine.create(function() | |
| 4255 | for i=1,20 do | |
| 4256 | if not doingMove then break end | |
| 4257 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(2,6,2),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
| |
| 4258 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Really red"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(3,3,3),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
| |
| 4259 | coroutine.resume(coroutine.create(function() | |
| 4260 | for i=1,7 do | |
| 4261 | magicBrick(Vector3.new(0,0,0),mouse.Hit*CFrame.new(0,0,0)*CFrame.new(math.random(1,15),math.random(1,15),math.random(1,15))*CFrame.new(-15/2,-15/2,-15/2),Vector3.new(1,1,1),BrickColor.new("Really black"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(4,4,4),Vector3.new(1,1,1),12,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
| |
| 4262 | end | |
| 4263 | end)) | |
| 4264 | for i,v in pairs(workspace:GetChildren()) do | |
| 4265 | if v:findFirstChild("Humanoid")~=nil and v~=char then
| |
| 4266 | if (v:WaitForChild("Torso").Position-mouse.Hit.p).magnitude<=10 then
| |
| 4267 | v:WaitForChild("Humanoid"):TakeDamage(v:WaitForChild("Humanoid").MaxHealth/20)
| |
| 4268 | end | |
| 4269 | end | |
| 4270 | end | |
| 4271 | swait(10) | |
| 4272 | end | |
| 4273 | end)) | |
| 4274 | ||
| 4275 | for i=0,2,0.1*speed do | |
| 4276 | if lastAnim~=thisAnim then break end | |
| 4277 | ||
| 4278 | ||
| 4279 | ||
| 4280 | swait() | |
| 4281 | end | |
| 4282 | ||
| 4283 | beam:Destroy() | |
| 4284 | lastAnim=nil | |
| 4285 | lastPriority=0 | |
| 4286 | doingMove=false | |
| 4287 | end | |
| 4288 | ||
| 4289 | function chestBeam() | |
| 4290 | ||
| 4291 | ||
| 4292 | MUI = true | |
| 4293 | ||
| 4294 | ||
| 4295 | end | |
| 4296 | mouse.KeyDown:connect(function(k) | |
| 4297 | if k == "n" then | |
| 4298 | chestBeam() | |
| 4299 | end | |
| 4300 | end) | |
| 4301 | mouse.KeyDown:connect(function(k) | |
| 4302 | if k == "v" then | |
| 4303 | UltimateBattle:Stop() | |
| 4304 | Mode = true | |
| 4305 | local SFXZ = Instance.new("Sound",torso)
| |
| 4306 | SFXZ.SoundId = "rbxassetid://316675316" | |
| 4307 | SFXZ.Volume = 8 | |
| 4308 | SFXZ.Pitch = 1 | |
| 4309 | SFXZ.Looped = true | |
| 4310 | wait(0.01) | |
| 4311 | SFXZ:Play() | |
| 4312 | local Wind = Instance.new("Sound",torso)
| |
| 4313 | Wind.SoundId = "rbxassetid://142840797" | |
| 4314 | Wind.Volume = 0.5 | |
| 4315 | Wind.Pitch = 1 | |
| 4316 | Wind.Looped = true | |
| 4317 | wait(0.01) | |
| 4318 | Wind:Play() | |
| 4319 | ||
| 4320 | ||
| 4321 | Grab.Touched:connect(function(hit) | |
| 4322 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then
| |
| 4323 | hit.Parent:BreakJoints() | |
| 4324 | wait(0.2) | |
| 4325 | hit.Parent:Destroy() | |
| 4326 | ||
| 4327 | ||
| 4328 | ||
| 4329 | end | |
| 4330 | end) | |
| 4331 | hum.WalkSpeed = 55 | |
| 4332 | ||
| 4333 | local FZcharge3 = Instance.new("ParticleEmitter",NeckS)
| |
| 4334 | FZcharge3.Texture = "rbxassetid://37329477" | |
| 4335 | FZcharge3.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) | |
| 4336 | FZcharge3.EmissionDirection = "Top" | |
| 4337 | FZcharge3.Speed = NumberRange.new(8) | |
| 4338 | FZcharge3.Size = NumberSequence.new(0.5,0) | |
| 4339 | FZcharge3.Transparency = NumberSequence.new(0,1) | |
| 4340 | FZcharge3.Drag = 1.2 | |
| 4341 | FZcharge3.LockedToPart = false | |
| 4342 | FZcharge3.Lifetime = NumberRange.new(0.5) | |
| 4343 | FZcharge3.Rate = 195 | |
| 4344 | FZcharge3.LightEmission = 1 | |
| 4345 | FZcharge3.VelocitySpread = 100 | |
| 4346 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
| 4347 | FZcharge3.VelocitySpread = 100.2 | |
| 4348 | FZcharge3.ZOffset = 1 | |
| 4349 | local StoneEf2 = Instance.new("ParticleEmitter",Stone4)
| |
| 4350 | StoneEf2.Texture = "rbxassetid://37329477" | |
| 4351 | StoneEf2.Color = ColorSequence.new(Color3.fromRGB(255, 0, 0)) | |
| 4352 | StoneEf2.EmissionDirection = "Top" | |
| 4353 | StoneEf2.Speed = NumberRange.new(8) | |
| 4354 | StoneEf2.Size = NumberSequence.new(0.5,0) | |
| 4355 | StoneEf2.Transparency = NumberSequence.new(0,1) | |
| 4356 | StoneEf2.LockedToPart = false | |
| 4357 | StoneEf2.Lifetime = NumberRange.new(0.5) | |
| 4358 | StoneEf2.Rate = 195 | |
| 4359 | StoneEf2.LightEmission = 1 | |
| 4360 | StoneEf2.VelocitySpread = 100 | |
| 4361 | StoneEf2.Rotation = NumberRange.new(-360,360) | |
| 4362 | StoneEf2.VelocitySpread = 100.2 | |
| 4363 | StoneEf2.ZOffset = 1 | |
| 4364 | local StoneEf3 = Instance.new("ParticleEmitter",Stone3)
| |
| 4365 | StoneEf3.Texture = "rbxassetid://74675986" | |
| 4366 | StoneEf3.Color = ColorSequence.new(Color3.fromRGB(9, 137, 207)) | |
| 4367 | StoneEf3.EmissionDirection = "Top" | |
| 4368 | StoneEf3.Speed = NumberRange.new(8) | |
| 4369 | StoneEf3.Size = NumberSequence.new(0.5,0) | |
| 4370 | StoneEf3.Transparency = NumberSequence.new(0,1) | |
| 4371 | StoneEf3.LockedToPart = false | |
| 4372 | StoneEf3.Lifetime = NumberRange.new(0.5) | |
| 4373 | StoneEf3.Rate = 195 | |
| 4374 | StoneEf3.LightEmission = 1 | |
| 4375 | StoneEf3.VelocitySpread = 100 | |
| 4376 | StoneEf3.Rotation = NumberRange.new(-360,360) | |
| 4377 | StoneEf3.VelocitySpread = 100.2 | |
| 4378 | StoneEf3.ZOffset = 1 | |
| 4379 | local StoneEf5 = Instance.new("ParticleEmitter",Stone5)
| |
| 4380 | StoneEf5.Texture = "rbxassetid://73229113" | |
| 4381 | StoneEf5.Color = ColorSequence.new(Color3.fromRGB(255, 176, 0)) | |
| 4382 | StoneEf5.EmissionDirection = "Top" | |
| 4383 | StoneEf5.Speed = NumberRange.new(8) | |
| 4384 | StoneEf5.Size = NumberSequence.new(0.5,0) | |
| 4385 | StoneEf5.Transparency = NumberSequence.new(0,1) | |
| 4386 | StoneEf5.LockedToPart = false | |
| 4387 | StoneEf5.Lifetime = NumberRange.new(0.5) | |
| 4388 | StoneEf5.Rate = 195 | |
| 4389 | StoneEf5.LightEmission = 1 | |
| 4390 | StoneEf5.VelocitySpread = 100 | |
| 4391 | StoneEf5.Rotation = NumberRange.new(-360,360) | |
| 4392 | StoneEf5.VelocitySpread = 100.2 | |
| 4393 | StoneEf5.ZOffset = 1 | |
| 4394 | local CHAINLINKS = {}
| |
| 4395 | local POS = mouse.Hit.p | |
| 4396 | local CHAINS = false | |
| 4397 | local CHAINLINKS = {}
| |
| 4398 | local A = Instance.new("Attachment",root)
| |
| 4399 | A.Position = Vector3.new(0.5,0,0)*Player_Size | |
| 4400 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
| 4401 | local B = Instance.new("Attachment",root)
| |
| 4402 | B.Position = Vector3.new(-0.5,0,0)*Player_Size | |
| 4403 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
| 4404 | local C = Instance.new("Attachment",root)
| |
| 4405 | C.Position = Vector3.new(0.5,-0.1,0)*Player_Size | |
| 4406 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
| 4407 | local D = Instance.new("Attachment",root)
| |
| 4408 | D.Position = Vector3.new(-0.5,-0.3,0)*Player_Size | |
| 4409 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
| 4410 | local LIGHT = Instance.new("Attachment",root)
| |
| 4411 | LIGHT.Position = Vector3.new(0.5,-0,0)*Player_Size | |
| 4412 | local LIGHT2 = Instance.new("PointLight",larm)
| |
| 4413 | LIGHT2.Range = 6 | |
| 4414 | LIGHT2.Brightness = 20 | |
| 4415 | LIGHT2.Color = Color3.new(255, 255, 0) | |
| 4416 | for i = 1, 2 do | |
| 4417 | local TWIST = -1 | |
| 4418 | local START = A | |
| 4419 | local END = B | |
| 4420 | if i == 1 then | |
| 4421 | START = B | |
| 4422 | END = A | |
| 4423 | end | |
| 4424 | local ChainLink = Instance.new("Beam",torso)
| |
| 4425 | ChainLink.Texture = "rbxassetid://37329477" | |
| 4426 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) | |
| 4427 | ChainLink.TextureSpeed = 5 | |
| 4428 | ChainLink.Width0 = 1 | |
| 4429 | ChainLink.Width1 = 1 | |
| 4430 | ChainLink.TextureLength = 2.5 | |
| 4431 | ChainLink.Attachment0 = START | |
| 4432 | ChainLink.Attachment1 = END | |
| 4433 | ChainLink.CurveSize0 = TWIST | |
| 4434 | ChainLink.CurveSize1 = TWIST | |
| 4435 | --ChainLink.FaceCamera = true | |
| 4436 | ChainLink.Segments = 85 | |
| 4437 | ChainLink.Transparency = NumberSequence.new(0) | |
| 4438 | table.insert(CHAINLINKS,ChainLink) | |
| 4439 | end | |
| 4440 | coroutine.resume(coroutine.create(function() | |
| 4441 | for i = 3,60060 do | |
| 4442 | ||
| 4443 | ||
| 4444 | local HQG = Instance.new("Part",char)
| |
| 4445 | HQG.Size = Vector3.new(1,0,1) | |
| 4446 | HQG.BrickColor = BrickColor.new("Ghost grey")
| |
| 4447 | HQG.Material = "Neon" | |
| 4448 | HQG.Anchored = true | |
| 4449 | HQG.CanCollide = false | |
| 4450 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4451 | local HQG2 = Instance.new("SpecialMesh",HQG)
| |
| 4452 | HQG2.MeshId = "rbxassetid://1726537151" | |
| 4453 | HQG2.Scale = Vector3.new(0.01,0.01,0.01) | |
| 4454 | ||
| 4455 | ||
| 4456 | coroutine.resume(coroutine.create(function() | |
| 4457 | for i = 1,200 do | |
| 4458 | ||
| 4459 | ||
| 4460 | HQG2.Scale = HQG2.Scale + Vector3.new(0.01,0.03,0.01) | |
| 4461 | HQG.Transparency = HQG.Transparency + 0.07 | |
| 4462 | HQG.CFrame = HQG.CFrame*CFrame.Angles(0,-0.3,0) | |
| 4463 | ||
| 4464 | wait(0.00000000001) | |
| 4465 | end | |
| 4466 | ||
| 4467 | HQG:Destroy() | |
| 4468 | HQG2:Destroy() | |
| 4469 | ||
| 4470 | end)) | |
| 4471 | ||
| 4472 | ||
| 4473 | wait(0.3) | |
| 4474 | end | |
| 4475 | end)) | |
| 4476 | end | |
| 4477 | end) | |
| 4478 | ||
| 4479 | ||
| 4480 | ||
| 4481 | mouse.KeyDown:connect(function(k) | |
| 4482 | if k == "j" then | |
| 4483 | ||
| 4484 | animid = 5 | |
| 4485 | no_anim = true | |
| 4486 | ||
| 4487 | ||
| 4488 | local Aura = Instance.new("ParticleEmitter",Stone2)
| |
| 4489 | Aura.Texture = "rbxassetid://271370648" | |
| 4490 | Aura.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
| |
| 4491 | Aura.EmissionDirection = "Top" | |
| 4492 | Aura.Speed = NumberRange.new(0) | |
| 4493 | Aura.Size = NumberSequence.new(2.5) | |
| 4494 | Aura.Transparency = NumberSequence.new(0,1) | |
| 4495 | Aura.Drag = 0.4 | |
| 4496 | Aura.LightInfluence = 0 | |
| 4497 | Aura.LockedToPart = true | |
| 4498 | Aura.Lifetime = NumberRange.new(0.9) | |
| 4499 | Aura.Rate = 60 | |
| 4500 | Aura.LightEmission = 0.6 | |
| 4501 | Aura.Rotation = NumberRange.new(-360,360) | |
| 4502 | Aura.VelocitySpread = 0 | |
| 4503 | Aura.Acceleration = Vector3.new(0,0,0) | |
| 4504 | Aura.ZOffset = 0.2 | |
| 4505 | ||
| 4506 | for i = 1, 30 do | |
| 4507 | wait() | |
| 4508 | ||
| 4509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4510 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 4511 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(90),math.rad(-50),math.rad(0)), 0.8)--larm | |
| 4512 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4513 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4514 | end | |
| 4515 | ||
| 4516 | ||
| 4517 | local HQ = Instance.new("Part",char)
| |
| 4518 | HQ.Size = Vector3.new(1,0,1) | |
| 4519 | HQ.BrickColor = BrickColor.new("Grey")
| |
| 4520 | HQ.Material = "Neon" | |
| 4521 | HQ.Anchored = true | |
| 4522 | HQ.CanCollide = false | |
| 4523 | HQ.Transparency = 0.7 | |
| 4524 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4525 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 4526 | HQ2.MeshId = "rbxassetid://20329976" | |
| 4527 | HQ2.Scale = Vector3.new(1,1,1) | |
| 4528 | ||
| 4529 | local HQG = Instance.new("Part",char)
| |
| 4530 | HQG.Size = Vector3.new(1,0,1) | |
| 4531 | HQG.BrickColor = BrickColor.new("Grey")
| |
| 4532 | HQG.Material = "Neon" | |
| 4533 | HQG.Anchored = true | |
| 4534 | HQG.Transparency = 0.7 | |
| 4535 | HQG.CanCollide = false | |
| 4536 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4537 | local HQG2 = Instance.new("SpecialMesh",HQG)
| |
| 4538 | HQG2.MeshId = "rbxassetid://20329976" | |
| 4539 | HQG2.Scale = Vector3.new(1,1,1) | |
| 4540 | ||
| 4541 | ||
| 4542 | coroutine.resume(coroutine.create(function() | |
| 4543 | for i = 1,200 do | |
| 4544 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
| 4545 | HQ.Transparency = HQ.Transparency + 0.01 | |
| 4546 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4547 | ||
| 4548 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
| 4549 | HQG.Transparency = HQG.Transparency + 0.01 | |
| 4550 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4551 | ||
| 4552 | wait(0.00000000001) | |
| 4553 | ||
| 4554 | ||
| 4555 | end | |
| 4556 | HQ:Destroy() | |
| 4557 | HQ2:Destroy() | |
| 4558 | HQG:Destroy() | |
| 4559 | HQG2:Destroy() | |
| 4560 | end)) | |
| 4561 | ||
| 4562 | laz0r() | |
| 4563 | wait(0.5) | |
| 4564 | no_anim = false | |
| 4565 | Aura.Rate = 0 | |
| 4566 | ||
| 4567 | instinct = true | |
| 4568 | end | |
| 4569 | end) | |
| 4570 | ||
| 4571 | ||
| 4572 | ||
| 4573 | ||
| 4574 | ||
| 4575 | mouse.KeyDown:connect(function(key) | |
| 4576 | if key == "r" then | |
| 4577 | local Aura = Instance.new('ParticleEmitter',Stone3)
| |
| 4578 | Aura.Texture = "rbxassetid://271370648" | |
| 4579 | Aura.Color = ColorSequence.new(BrickColor.new("Lapis").Color)
| |
| 4580 | Aura.EmissionDirection = "Top" | |
| 4581 | Aura.Speed = NumberRange.new(0) | |
| 4582 | Aura.Size = NumberSequence.new(2.5) | |
| 4583 | Aura.Transparency = NumberSequence.new(0,1) | |
| 4584 | Aura.Drag = 0.4 | |
| 4585 | Aura.LightInfluence = 0 | |
| 4586 | Aura.LockedToPart = true | |
| 4587 | Aura.Lifetime = NumberRange.new(0.9) | |
| 4588 | Aura.Rate = 60 | |
| 4589 | Aura.LightEmission = 0.6 | |
| 4590 | Aura.Rotation = NumberRange.new(-360,360) | |
| 4591 | Aura.VelocitySpread = 0 | |
| 4592 | Aura.Acceleration = Vector3.new(0,0,0) | |
| 4593 | Aura.ZOffset = 0.2 | |
| 4594 | no_anim = true | |
| 4595 | for i = 1, 15 do | |
| 4596 | wait() | |
| 4597 | ||
| 4598 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 4599 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) | |
| 4600 | end | |
| 4601 | ||
| 4602 | local Grab = Instance.new("Part",root)
| |
| 4603 | Grab.Size = Vector3.new(5.2,5.8,3.9) | |
| 4604 | Grab.CanCollide = true | |
| 4605 | Grab.Material = "Neon" | |
| 4606 | Grab.BrickColor = BrickColor.new("Cyan")
| |
| 4607 | Grab.Transparency = 0.5 | |
| 4608 | local Hat2 = Instance.new("SpecialMesh",Grab)
| |
| 4609 | Hat2.MeshType = 3 | |
| 4610 | Hat2.Scale = Vector3.new(3.35,3.15,0.95) | |
| 4611 | local Grabo = Instance.new("Weld",Grab)
| |
| 4612 | Grabo.Part0 = root | |
| 4613 | Grabo.Part1 = Grab | |
| 4614 | Grabo.C0 = CFrame.new(0,0.3,-6.8) | |
| 4615 | ||
| 4616 | local AuraB = Instance.new("Part",root)
| |
| 4617 | AuraB.Size = Vector3.new(2,1,2) | |
| 4618 | AuraB.CanCollide = false | |
| 4619 | AuraB.BrickColor = BrickColor.new("Deep orange")
| |
| 4620 | AuraB.Transparency = 1 | |
| 4621 | local AuraBo = Instance.new("Weld",AuraB)
| |
| 4622 | AuraBo.Part0 = root | |
| 4623 | AuraBo.Part1 = AuraB | |
| 4624 | AuraBo.C0 = CFrame.new(0,-0.6,0) | |
| 4625 | Grab.Touched:connect(function(hit) | |
| 4626 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then
| |
| 4627 | ||
| 4628 | ||
| 4629 | hit.Anchored = false | |
| 4630 | local Fl = Instance.new("BodyVelocity",hit.Parent.Head)
| |
| 4631 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 4632 | Fl.velocity = root.CFrame.lookVector*340 | |
| 4633 | wait(0.05) | |
| 4634 | Fl:remove() | |
| 4635 | ||
| 4636 | end | |
| 4637 | end) | |
| 4638 | ||
| 4639 | ||
| 4640 | end | |
| 4641 | end) | |
| 4642 | mouse.KeyUp:connect(function(key) | |
| 4643 | if key == "r" then | |
| 4644 | ||
| 4645 | for i, v in pairs(root:GetChildren()) do | |
| 4646 | if v:IsA("Part")then
| |
| 4647 | v:Remove() | |
| 4648 | end | |
| 4649 | end | |
| 4650 | for i, v in pairs(Stone3:GetChildren()) do | |
| 4651 | if v:IsA('ParticleEmitter')then
| |
| 4652 | v.Rate = 0 | |
| 4653 | end | |
| 4654 | end | |
| 4655 | ||
| 4656 | no_anim = false | |
| 4657 | end | |
| 4658 | end) | |
| 4659 | ||
| 4660 | ||
| 4661 | mouse.KeyDown:connect(function(key) | |
| 4662 | if key == "n" then | |
| 4663 | ||
| 4664 | end | |
| 4665 | end) | |
| 4666 | ||
| 4667 | ||
| 4668 | mouse.KeyDown:connect(function(key) | |
| 4669 | if key == "t" then | |
| 4670 | local Aura = Instance.new("ParticleEmitter",Stone4)
| |
| 4671 | Aura.Texture = "rbxassetid://271370648" | |
| 4672 | Aura.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 4673 | Aura.EmissionDirection = "Top" | |
| 4674 | Aura.Speed = NumberRange.new(0) | |
| 4675 | Aura.Size = NumberSequence.new(2.5) | |
| 4676 | Aura.Transparency = NumberSequence.new(0,1) | |
| 4677 | Aura.Drag = 0.4 | |
| 4678 | Aura.LightInfluence = 0 | |
| 4679 | Aura.LockedToPart = true | |
| 4680 | Aura.Lifetime = NumberRange.new(0.9) | |
| 4681 | Aura.Rate = 60 | |
| 4682 | Aura.LightEmission = 0.6 | |
| 4683 | Aura.Rotation = NumberRange.new(-360,360) | |
| 4684 | Aura.VelocitySpread = 0 | |
| 4685 | Aura.Acceleration = Vector3.new(0,0,0) | |
| 4686 | Aura.ZOffset = 0.2 | |
| 4687 | no_anim = true | |
| 4688 | for i = 1, 15 do | |
| 4689 | wait() | |
| 4690 | ||
| 4691 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 4692 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) | |
| 4693 | end | |
| 4694 | ||
| 4695 | local Grab = Instance.new("Part",root)
| |
| 4696 | Grab.Size = Vector3.new(5.2,5.8,3.9) | |
| 4697 | Grab.CanCollide = false | |
| 4698 | Grab.Material = "Neon" | |
| 4699 | Grab.BrickColor = BrickColor.new("Really red")
| |
| 4700 | Grab.Transparency = 0.5 | |
| 4701 | local Hat2 = Instance.new("SpecialMesh",Grab)
| |
| 4702 | Hat2.MeshType = 3 | |
| 4703 | Hat2.Scale = Vector3.new(3.35,3.15,0.95) | |
| 4704 | local Grabo = Instance.new("Weld",Grab)
| |
| 4705 | Grabo.Part0 = root | |
| 4706 | Grabo.Part1 = Grab | |
| 4707 | Grabo.C0 = CFrame.new(0,0.3,-6.8) | |
| 4708 | ||
| 4709 | local AuraB = Instance.new("Part",root)
| |
| 4710 | AuraB.Size = Vector3.new(2,1,2) | |
| 4711 | AuraB.CanCollide = false | |
| 4712 | AuraB.BrickColor = BrickColor.new("Deep orange")
| |
| 4713 | AuraB.Transparency = 1 | |
| 4714 | local AuraBo = Instance.new("Weld",AuraB)
| |
| 4715 | AuraBo.Part0 = root | |
| 4716 | AuraBo.Part1 = AuraB | |
| 4717 | AuraBo.C0 = CFrame.new(0,-0.6,0) | |
| 4718 | Grab.Touched:connect(function(hit) | |
| 4719 | if hit.Parent:FindFirstChildOfClass("Humanoid")and hit.Parent ~= nil and hit.Parent.Name ~= p.Character.Name then
| |
| 4720 | ||
| 4721 | ||
| 4722 | Snap(hit.Parent) | |
| 4723 | local Fl = Instance.new("BodyVelocity",hit.Parent.Head)
| |
| 4724 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 4725 | Fl.velocity = root.CFrame.lookVector*340 | |
| 4726 | wait(0.05) | |
| 4727 | Fl:remove() | |
| 4728 | ||
| 4729 | end | |
| 4730 | end) | |
| 4731 | ||
| 4732 | ||
| 4733 | end | |
| 4734 | end) | |
| 4735 | mouse.KeyUp:connect(function(key) | |
| 4736 | if key == "t" then | |
| 4737 | ||
| 4738 | for i, v in pairs(root:GetChildren()) do | |
| 4739 | if v:IsA("Part")then
| |
| 4740 | v:Remove() | |
| 4741 | end | |
| 4742 | end | |
| 4743 | for i, v in pairs(Stone4:GetChildren()) do | |
| 4744 | if v:IsA("ParticleEmitter")then
| |
| 4745 | v.Rate = 0 | |
| 4746 | end | |
| 4747 | end | |
| 4748 | ||
| 4749 | no_anim = false | |
| 4750 | end | |
| 4751 | end) | |
| 4752 | ||
| 4753 | ||
| 4754 | mouse.KeyDown:connect(function(k) | |
| 4755 | if k == "e" and MUI == false then --highjump | |
| 4756 | ||
| 4757 | animid = 5 | |
| 4758 | no_anim = true | |
| 4759 | ||
| 4760 | local sbs = Instance.new("BodyPosition", torso)
| |
| 4761 | sbs.P = 9000 | |
| 4762 | sbs.D = 1000 | |
| 4763 | sbs.maxForce = Vector3.new(900000, 9000000000, 900000) | |
| 4764 | sbs.position = torso.CFrame.p + Vector3.new(0, 150, 0) | |
| 4765 | local FlyAt = Instance.new("Attachment",NeckS)FlyAt.Position = Vector3.new(0,0.5,0)
| |
| 4766 | local FlyAt2 = Instance.new("Attachment",NeckS)FlyAt2.Position = Vector3.new(0,-0.5,0)
| |
| 4767 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 4768 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4769 | Speed.Color = ColorSequence.new(Color3.fromRGB(255, 255, 0)) Speed.LightEmission = 5 | |
| 4770 | ||
| 4771 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--head | |
| 4772 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4773 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 4774 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--larm | |
| 4775 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4776 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4777 | ||
| 4778 | ||
| 4779 | ||
| 4780 | local HQ = Instance.new("Part",char)
| |
| 4781 | HQ.Size = Vector3.new(1,0,1) | |
| 4782 | HQ.BrickColor = BrickColor.new("New Yeller")
| |
| 4783 | HQ.Material = "Neon" | |
| 4784 | HQ.Anchored = true | |
| 4785 | HQ.CanCollide = false | |
| 4786 | HQ.Transparency = 0.7 | |
| 4787 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4788 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 4789 | HQ2.MeshId = "rbxassetid://20329976" | |
| 4790 | HQ2.Scale = Vector3.new(1,50,1) | |
| 4791 | ||
| 4792 | local HQG = Instance.new("Part",char)
| |
| 4793 | HQG.Size = Vector3.new(1,0,1) | |
| 4794 | HQG.BrickColor = BrickColor.new("Grey")
| |
| 4795 | HQG.Material = "Neon" | |
| 4796 | HQG.Anchored = true | |
| 4797 | HQG.Transparency = 0.7 | |
| 4798 | HQG.CanCollide = false | |
| 4799 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4800 | local HQG2 = Instance.new("SpecialMesh",HQG)
| |
| 4801 | HQG2.MeshId = "rbxassetid://20329976" | |
| 4802 | HQG2.Scale = Vector3.new(1,1,1) | |
| 4803 | ||
| 4804 | ||
| 4805 | coroutine.resume(coroutine.create(function() | |
| 4806 | for i = 1,500 do | |
| 4807 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
| 4808 | HQ.Transparency = HQ.Transparency + 0.005 | |
| 4809 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4810 | ||
| 4811 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
| 4812 | HQG.Transparency = HQG.Transparency + 0.005 | |
| 4813 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4814 | ||
| 4815 | wait(0.00000000001) | |
| 4816 | ||
| 4817 | ||
| 4818 | end | |
| 4819 | HQ:Destroy() | |
| 4820 | HQ2:Destroy() | |
| 4821 | HQG:Destroy() | |
| 4822 | HQG2:Destroy() | |
| 4823 | end)) | |
| 4824 | ||
| 4825 | ||
| 4826 | wait(0.5) | |
| 4827 | sbs:Destroy() | |
| 4828 | ||
| 4829 | FlyAt:Destroy() | |
| 4830 | wait(0.2) | |
| 4831 | ||
| 4832 | no_anim = false | |
| 4833 | instinct = true | |
| 4834 | end | |
| 4835 | end) | |
| 4836 | ||
| 4837 | ||
| 4838 | mouse.KeyDown:connect(function(k) | |
| 4839 | if k == "e" and MUI == true then --highjump | |
| 4840 | ||
| 4841 | animid = 5 | |
| 4842 | no_anim = true | |
| 4843 | hum.WalkSpeed = 60 | |
| 4844 | local sbs = Instance.new("BodyPosition", torso)
| |
| 4845 | sbs.P = 9000 | |
| 4846 | sbs.D = 1000 | |
| 4847 | sbs.maxForce = Vector3.new(900000, 9000000000, 900000) | |
| 4848 | sbs.position = torso.CFrame.p + Vector3.new(0, 120, 0) | |
| 4849 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,2,0)
| |
| 4850 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-2.5,0)
| |
| 4851 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 4852 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4853 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
| 4854 | ||
| 4855 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--head | |
| 4856 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4857 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 4858 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.8)--larm | |
| 4859 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4860 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4861 | ||
| 4862 | ||
| 4863 | ||
| 4864 | local HQ = Instance.new("Part",char)
| |
| 4865 | HQ.Size = Vector3.new(1,0,1) | |
| 4866 | HQ.BrickColor = BrickColor.new("Grey")
| |
| 4867 | HQ.Material = "Neon" | |
| 4868 | HQ.Anchored = true | |
| 4869 | HQ.CanCollide = false | |
| 4870 | HQ.Transparency = 0.7 | |
| 4871 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4872 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 4873 | HQ2.MeshId = "rbxassetid://20329976" | |
| 4874 | HQ2.Scale = Vector3.new(1,1,1) | |
| 4875 | ||
| 4876 | local HQG = Instance.new("Part",char)
| |
| 4877 | HQG.Size = Vector3.new(1,0,1) | |
| 4878 | HQG.BrickColor = BrickColor.new("Grey")
| |
| 4879 | HQG.Material = "Neon" | |
| 4880 | HQG.Anchored = true | |
| 4881 | HQG.Transparency = 0.7 | |
| 4882 | HQG.CanCollide = false | |
| 4883 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,0,0) | |
| 4884 | local HQG2 = Instance.new("SpecialMesh",HQG)
| |
| 4885 | HQG2.MeshId = "rbxassetid://20329976" | |
| 4886 | HQG2.Scale = Vector3.new(1,1,1) | |
| 4887 | ||
| 4888 | ||
| 4889 | coroutine.resume(coroutine.create(function() | |
| 4890 | for i = 1,200 do | |
| 4891 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
| 4892 | HQ.Transparency = HQ.Transparency + 0.01 | |
| 4893 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4894 | ||
| 4895 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
| 4896 | HQG.Transparency = HQG.Transparency + 0.01 | |
| 4897 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 4898 | ||
| 4899 | wait(0.00000000001) | |
| 4900 | ||
| 4901 | ||
| 4902 | end | |
| 4903 | HQ:Destroy() | |
| 4904 | HQ2:Destroy() | |
| 4905 | HQG:Destroy() | |
| 4906 | HQG2:Destroy() | |
| 4907 | end)) | |
| 4908 | ||
| 4909 | ||
| 4910 | wait(0.5) | |
| 4911 | sbs:Destroy() | |
| 4912 | hum.WalkSpeed = 260 | |
| 4913 | FlyAt:Destroy() | |
| 4914 | wait(0.2) | |
| 4915 | hum.WalkSpeed = 16 | |
| 4916 | no_anim = false | |
| 4917 | instinct = true | |
| 4918 | end | |
| 4919 | end) | |
| 4920 | ||
| 4921 | mouse.KeyDown:connect(function(k) | |
| 4922 | if k == "q" and MUI == false then --highjump | |
| 4923 | ||
| 4924 | animid = 5 | |
| 4925 | no_anim = true | |
| 4926 | ||
| 4927 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,2,0)
| |
| 4928 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-2.5,0)
| |
| 4929 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 4930 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4931 | Speed.Color = ColorSequence.new(Color3.fromRGB(248, 248, 248)) Speed.LightEmission = 5 | |
| 4932 | local bv = Instance.new("BodyVelocity")
| |
| 4933 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 4934 | bv.velocity = root.CFrame.lookVector*200 | |
| 4935 | bv.Parent = root | |
| 4936 | ||
| 4937 | ||
| 4938 | ||
| 4939 | for i = 1, 30 do | |
| 4940 | wait() | |
| 4941 | ||
| 4942 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(0)), 0.1)--head | |
| 4943 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-80), math.rad(0), math.rad(0)), 0.1)--torso | |
| 4944 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(15)), 0.1)--arm | |
| 4945 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-15)), 0.1)--arm | |
| 4946 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.1)--leg | |
| 4947 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.1)--leg | |
| 4948 | end | |
| 4949 | ||
| 4950 | ||
| 4951 | ||
| 4952 | ||
| 4953 | ||
| 4954 | ||
| 4955 | ||
| 4956 | ||
| 4957 | ||
| 4958 | wait(0.5) | |
| 4959 | bv:Destroy() | |
| 4960 | ||
| 4961 | wait(0.2) | |
| 4962 | ||
| 4963 | ||
| 4964 | FlyAt:Destroy() | |
| 4965 | no_anim = false | |
| 4966 | end | |
| 4967 | end) | |
| 4968 | holdclick=false | |
| 4969 | ||
| 4970 | mouse.KeyDown:connect(function(k) | |
| 4971 | if k == "q" and MUI == true then --highjump | |
| 4972 | ||
| 4973 | animid = 5 | |
| 4974 | no_anim = true | |
| 4975 | hum.WalkSpeed = 60 | |
| 4976 | local bv = Instance.new("BodyVelocity")
| |
| 4977 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 4978 | bv.velocity = root.CFrame.lookVector*190 | |
| 4979 | bv.Parent = root | |
| 4980 | ||
| 4981 | local FlyAt = Instance.new("Attachment",torso)FlyAt.Position = Vector3.new(0,1,0)
| |
| 4982 | local FlyAt2 = Instance.new("Attachment",torso)FlyAt2.Position = Vector3.new(0,-1,0)
| |
| 4983 | local Speed = Instance.new("Trail",char)Speed.Attachment0 = FlyAt Speed.Attachment1 = FlyAt2
| |
| 4984 | Speed.Texture = "rbxassetid://22636887" Speed.Lifetime = 0.3 Speed.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4985 | Speed.Color = ColorSequence.new(Color3.fromRGB(4, 175, 236)) Speed.LightEmission = 5 | |
| 4986 | ||
| 4987 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), 0.8)--torso | |
| 4988 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 4989 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-85),math.rad(0),math.rad(0)), 0.8)--larm | |
| 4990 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-60),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 4991 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.3, -1) * CFrame.Angles(math.rad(-50),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 4992 | ||
| 4993 | ||
| 4994 | ||
| 4995 | local HQ = Instance.new("Part",char)
| |
| 4996 | HQ.Size = Vector3.new(1,0,1) | |
| 4997 | HQ.BrickColor = BrickColor.new("Grey")
| |
| 4998 | HQ.Material = "Neon" | |
| 4999 | HQ.Anchored = true | |
| 5000 | HQ.CanCollide = false | |
| 5001 | HQ.Transparency = 0.7 | |
| 5002 | HQ.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(1.55,0,0) | |
| 5003 | local HQ2 = Instance.new("SpecialMesh",HQ)
| |
| 5004 | HQ2.MeshId = "rbxassetid://20329976" | |
| 5005 | HQ2.Scale = Vector3.new(1,1,1) | |
| 5006 | ||
| 5007 | local HQG = Instance.new("Part",char)
| |
| 5008 | HQG.Size = Vector3.new(1,0,1) | |
| 5009 | HQG.BrickColor = BrickColor.new("Grey")
| |
| 5010 | HQG.Material = "Neon" | |
| 5011 | HQG.Anchored = true | |
| 5012 | HQG.Transparency = 0.7 | |
| 5013 | HQG.CanCollide = false | |
| 5014 | HQG.CFrame = root.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(1.55,0,0) | |
| 5015 | local HQG2 = Instance.new("SpecialMesh",HQG)
| |
| 5016 | HQG2.MeshId = "rbxassetid://20329976" | |
| 5017 | HQG2.Scale = Vector3.new(1,1,1) | |
| 5018 | ||
| 5019 | ||
| 5020 | coroutine.resume(coroutine.create(function() | |
| 5021 | for i = 1,200 do | |
| 5022 | HQ2.Scale = HQ2.Scale + Vector3.new(1.5,0.3,1.5) | |
| 5023 | HQ.Transparency = HQ.Transparency + 0.01 | |
| 5024 | HQ.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 5025 | ||
| 5026 | HQG2.Scale = HQG2.Scale + Vector3.new(1,0.5,1) | |
| 5027 | HQG.Transparency = HQG.Transparency + 0.01 | |
| 5028 | HQG.CFrame = HQ.CFrame*CFrame.Angles(0,0,0) | |
| 5029 | ||
| 5030 | wait() | |
| 5031 | ||
| 5032 | ||
| 5033 | end | |
| 5034 | HQ:Destroy() | |
| 5035 | HQ2:Destroy() | |
| 5036 | HQG:Destroy() | |
| 5037 | HQG2:Destroy() | |
| 5038 | end)) | |
| 5039 | ||
| 5040 | ||
| 5041 | wait(0.5) | |
| 5042 | bv:Destroy() | |
| 5043 | hum.WalkSpeed = 60 | |
| 5044 | wait(0.2) | |
| 5045 | hum.WalkSpeed = 16 | |
| 5046 | FlyAt:Destroy() | |
| 5047 | no_anim = false | |
| 5048 | instinct = true | |
| 5049 | end | |
| 5050 | end) | |
| 5051 | mouse.KeyDown:connect(function(k) | |
| 5052 | if k == "l" then | |
| 5053 | ||
| 5054 | animid = 5 | |
| 5055 | no_anim = true | |
| 5056 | UltimateBattle:Stop() | |
| 5057 | ||
| 5058 | ||
| 5059 | for i = 1, 10 do | |
| 5060 | wait() | |
| 5061 | ||
| 5062 | ||
| 5063 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 5064 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 5065 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(0)), 0.8)--larm | |
| 5066 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 5067 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 5068 | end | |
| 5069 | wait(2) | |
| 5070 | local SFXZ = Instance.new("Sound",char)
| |
| 5071 | SFXZ.SoundId = "rbxassetid://242076158" | |
| 5072 | SFXZ.Volume = 10 | |
| 5073 | SFXZ.Pitch = 1 | |
| 5074 | SFXZ.Looped = false | |
| 5075 | wait(0.01) | |
| 5076 | SFXZ:Play() | |
| 5077 | ||
| 5078 | for i = 1, 10 do | |
| 5079 | wait() | |
| 5080 | ||
| 5081 | ||
| 5082 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--torso | |
| 5083 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.2)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.8)--rarm | |
| 5084 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,-0.5)*CFrame.Angles(math.rad(120),math.rad(30),math.rad(0)), 0.8)--larm | |
| 5085 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), 0.8)--lleg | |
| 5086 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)), 0.8)--rleg | |
| 5087 | end | |
| 5088 | ||
| 5089 | ||
| 5090 | coroutine.resume(coroutine.create(function() | |
| 5091 | for i = 3,80 do | |
| 5092 | local Ball = Instance.new("Part",char)
| |
| 5093 | Ball.Size = Vector3.new(0,0,0) | |
| 5094 | Ball.BrickColor = BrickColor.new("White")
| |
| 5095 | Ball.Material = "Neon" | |
| 5096 | Ball.Anchored = true | |
| 5097 | Ball.CanCollide = false | |
| 5098 | Ball.Transparency = 0 | |
| 5099 | Ball.CFrame = torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0,0) | |
| 5100 | local Ball2 = Instance.new("SpecialMesh",Ball)
| |
| 5101 | Ball2.MeshType = 3 | |
| 5102 | Ball2.Scale = Vector3.new(0.4,0.4,0.4) | |
| 5103 | ||
| 5104 | ||
| 5105 | ||
| 5106 | ||
| 5107 | coroutine.resume(coroutine.create(function() | |
| 5108 | for i = 1,15 do | |
| 5109 | Ball2.Scale = Ball2.Scale + Vector3.new(1980.4,1980.4,1980.4) | |
| 5110 | Ball.Transparency = Ball.Transparency + 0.06 | |
| 5111 | ||
| 5112 | wait(0.00000000001) | |
| 5113 | end | |
| 5114 | Ball:Destroy() | |
| 5115 | ||
| 5116 | ||
| 5117 | end)) | |
| 5118 | wait(0.02) | |
| 5119 | end | |
| 5120 | end)) | |
| 5121 | ||
| 5122 | wait(5) | |
| 5123 | ||
| 5124 | ||
| 5125 | ||
| 5126 | ||
| 5127 | coroutine.wrap(function() | |
| 5128 | for i,v in next, workspace:children() do | |
| 5129 | if v:IsA"Model" or v:IsA"Part" then | |
| 5130 | if v:FindFirstChildOfClass"Humanoid" and v ~= char then | |
| 5131 | Eviscerate(v) | |
| 5132 | if v:FindFirstChildOfClass"Humanoid" then Eviscerate(v) end | |
| 5133 | wait(.15) | |
| 5134 | end | |
| 5135 | end | |
| 5136 | end | |
| 5137 | end)() | |
| 5138 | ||
| 5139 | ||
| 5140 | wait(10) | |
| 5141 | no_anim = false | |
| 5142 | ||
| 5143 | ||
| 5144 | ||
| 5145 | end | |
| 5146 | end) | |
| 5147 | ||
| 5148 | ||
| 5149 | ||
| 5150 | ||
| 5151 | ||
| 5152 | ||
| 5153 | ||
| 5154 | ||
| 5155 | ||
| 5156 | ||
| 5157 | ||
| 5158 | ||
| 5159 | ||
| 5160 | ||
| 5161 | mouse.KeyDown:connect(function(key) | |
| 5162 | if debounce == false then | |
| 5163 | if key == "=" and MUI == true then | |
| 5164 | dashasdf() | |
| 5165 | elseif key == "=" and cooldownult == false then | |
| 5166 | cooldownult = true | |
| 5167 | if animid == 0 then | |
| 5168 | animid = 1 | |
| 5169 | else | |
| 5170 | animid = 0 | |
| 5171 | end | |
| 5172 | debounce = true | |
| 5173 | holdr = true | |
| 5174 | aiming_anim = true | |
| 5175 | wait(0.2) | |
| 5176 | repeat | |
| 5177 | rs:wait() | |
| 5178 | timer = 150 | |
| 5179 | until holdr == false | |
| 5180 | nukewelpo() | |
| 5181 | ||
| 5182 | local Position = mouse.Hit.p | |
| 5183 | local Target = root.Position | |
| 5184 | local direction = Target - Position | |
| 5185 | local direction = computeDirection(direction) | |
| 5186 | root.Velocity = direction * 300 | |
| 5187 | ||
| 5188 | aiming_anim = false | |
| 5189 | delay(5,function() cooldownult = false end) | |
| 5190 | delay(1,function() debounce = false end) | |
| 5191 | ||
| 5192 | elseif key == "=" then | |
| 5193 | debounce = true | |
| 5194 | if animid == 0 then | |
| 5195 | animid = 1 | |
| 5196 | else | |
| 5197 | animid = 0 | |
| 5198 | end | |
| 5199 | holdq = true | |
| 5200 | attack = true | |
| 5201 | ||
| 5202 | ||
| 5203 | ||
| 5204 | ||
| 5205 | repeat rs:wait() timer = 150 until holdq == false | |
| 5206 | laz0r() | |
| 5207 | attack = false | |
| 5208 | ||
| 5209 | end | |
| 5210 | end | |
| 5211 | ||
| 5212 | end) | |
| 5213 | ||
| 5214 | mouse.KeyUp:connect(function(key) | |
| 5215 | if key == "=" then | |
| 5216 | holdq = false | |
| 5217 | elseif key == "=" then | |
| 5218 | holdr = false | |
| 5219 | end | |
| 5220 | end) | |
| 5221 | -- | |
| 5222 | hum.Name = 'Goku' | |
| 5223 | ---------------------------------------------------------------------------- | |
| 5224 | music(themeid,themepitch) | |
| 5225 | velocityYFall=0 | |
| 5226 | velocityYFall2=0 | |
| 5227 | velocityYFall3=0 | |
| 5228 | velocityYFall4=0 | |
| 5229 | neckrotY=0 | |
| 5230 | neckrotY2=0 | |
| 5231 | torsorotY=0 | |
| 5232 | torsorotY2=0 | |
| 5233 | torsoY=0 | |
| 5234 | torsoY2=0 | |
| 5235 | sine = 0 | |
| 5236 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 5237 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 5238 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 5239 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 5240 | newWeld(torso, hed, 0, 1.5, 0) | |
| 5241 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 5242 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 5243 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 5244 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 5245 | newWeld(root, torso, 0, -1, 0) | |
| 5246 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 5247 | ||
| 5248 | rs:connect(function() | |
| 5249 | ||
| 5250 | bg.MaxTorque = Vector3.new(0,0,0) | |
| 5251 | ||
| 5252 | for i,v in pairs(DebrisModel:GetChildren()) do | |
| 5253 | ||
| 5254 | ||
| 5255 | if v.Name == "EXPLOSION" then | |
| 5256 | local change = 0.04-(v.Transparency*0.02) | |
| 5257 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5258 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
| 5259 | v.Transparency = v.Transparency + 0.02 | |
| 5260 | if v.Transparency >= 1 then | |
| 5261 | v:Destroy() | |
| 5262 | end | |
| 5263 | ||
| 5264 | elseif v.Name == "EXPLOSION2" then | |
| 5265 | local change = 0.04-(v.Transparency*0.04) | |
| 5266 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5267 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
| 5268 | v.Transparency = v.Transparency + 0.025 | |
| 5269 | if v.Transparency >= 1 then | |
| 5270 | v:Destroy() | |
| 5271 | end | |
| 5272 | ||
| 5273 | elseif v.Name == "EXPLOSION3" then | |
| 5274 | local change = 0.5-(v.Transparency*0.5) | |
| 5275 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5276 | vm.Scale = vm.Scale + Vector3.new(change,change,0) | |
| 5277 | v.Transparency = v.Transparency + 0.1 | |
| 5278 | if v.Transparency >= 1 then | |
| 5279 | v:Destroy() | |
| 5280 | end | |
| 5281 | ||
| 5282 | elseif v.Name == "EXPLOSION4" then | |
| 5283 | local change = 0.15-(v.Transparency*0.125) | |
| 5284 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5285 | vm.Scale = vm.Scale + Vector3.new(change,change,change) | |
| 5286 | v.Transparency = v.Transparency + 0.01 | |
| 5287 | if v.Transparency >= 1 then | |
| 5288 | v:Destroy() | |
| 5289 | end | |
| 5290 | ||
| 5291 | elseif v.Name == "SMOKE" then | |
| 5292 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5293 | vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075) | |
| 5294 | if vm.Scale.X <= 0 then | |
| 5295 | v:Destroy() | |
| 5296 | end | |
| 5297 | ||
| 5298 | elseif v.Name == "SMOKE2" then | |
| 5299 | local change = 2-(v.Transparency*2) | |
| 5300 | local vm = v:FindFirstChildOfClass("SpecialMesh")
| |
| 5301 | local Position = nil | |
| 5302 | if animid == 0 then | |
| 5303 | Position = larm.Position | |
| 5304 | else | |
| 5305 | Position = rarm.Position | |
| 5306 | end | |
| 5307 | local Target = mouse.Hit.p | |
| 5308 | local direction = Target - Position | |
| 5309 | local direction = computeDirection(direction) | |
| 5310 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
| 5311 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
| 5312 | vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change) | |
| 5313 | local pos = Position + (direction * (vm.Scale.Y/2)) | |
| 5314 | v.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
| 5315 | vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0) | |
| 5316 | v.Transparency = v.Transparency + 0.1 | |
| 5317 | if v.Transparency >= 1 then | |
| 5318 | v:Destroy() | |
| 5319 | end | |
| 5320 | ||
| 5321 | ||
| 5322 | elseif v.Name == "LIGHTNING" then | |
| 5323 | local vm = v:FindFirstChildOfClass("BlockMesh")
| |
| 5324 | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) | |
| 5325 | if vm.Scale.X <= 0 then | |
| 5326 | v:Destroy() | |
| 5327 | end | |
| 5328 | ||
| 5329 | end | |
| 5330 | end | |
| 5331 | ||
| 5332 | if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then | |
| 5333 | velocityYFall = root.Velocity.Y/1.5 | |
| 5334 | end | |
| 5335 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
| 5336 | velocityYFall2 = root.Velocity.Y/180 | |
| 5337 | end | |
| 5338 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
| 5339 | velocityYFall3 = root.Velocity.Y/1.5 | |
| 5340 | end | |
| 5341 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
| 5342 | velocityYFall4 = root.Velocity.Y/1.5 | |
| 5343 | end | |
| 5344 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
| 5345 | neckrotY = root.RotVelocity.Y/6 | |
| 5346 | end | |
| 5347 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
| 5348 | neckrotY2 = root.RotVelocity.Y/8 | |
| 5349 | end | |
| 5350 | ||
| 5351 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
| 5352 | torsorotY = root.RotVelocity.Y/6 | |
| 5353 | end | |
| 5354 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
| 5355 | torsorotY2 = root.RotVelocity.Y/8 | |
| 5356 | end | |
| 5357 | ||
| 5358 | ||
| 5359 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
| 5360 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
| 5361 | ||
| 5362 | ||
| 5363 | local SINE = 0 | |
| 5364 | local jumped = false | |
| 5365 | local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
| 5366 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
| 5367 | local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0)) | |
| 5368 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
| 5369 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
| 5370 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
| 5371 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0)) | |
| 5372 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
| 5373 | ||
| 5374 | if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end | |
| 5375 | ||
| 5376 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
| 5377 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
| 5378 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 5379 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 5380 | ||
| 5381 | local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0)) | |
| 5382 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
| 5383 | local sizem = 1 | |
| 5384 | if no_anim == false then | |
| 5385 | if hum.Health > 0 then | |
| 5386 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
| 5387 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 5388 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1) | |
| 5389 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 5390 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 5391 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1) | |
| 5392 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 5393 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2) | |
| 5394 | elseif jumped == true then | |
| 5395 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 5396 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1) | |
| 5397 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2) | |
| 5398 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2) | |
| 5399 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
| 5400 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
| 5401 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
| 5402 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then | |
| 5403 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1) | |
| 5404 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1) | |
| 5405 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2) | |
| 5406 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2) | |
| 5407 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
| 5408 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2) | |
| 5409 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2) | |
| 5410 | end | |
| 5411 | for i=1,5 do | |
| 5412 | if aiming_anim == true then | |
| 5413 | bg.MaxTorque = Vector3.new(9e9,9e9,9e9) | |
| 5414 | if jumped == false then | |
| 5415 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
| 5416 | else | |
| 5417 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
| 5418 | end | |
| 5419 | if animid == 0 then | |
| 5420 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4) | |
| 5421 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 5422 | larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4) | |
| 5423 | else | |
| 5424 | if animid == 5 then | |
| 5425 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(85),math.rad(0)), 1)--head | |
| 5426 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)), 1)--torso | |
| 5427 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,0)*CFrame.Angles(math.rad(30),math.rad(-40),math.rad(-10)), 1)--rarm | |
| 5428 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.2,-0.2)*CFrame.Angles(math.rad(30),math.rad(40),math.rad(40)), 1)--larm | |
| 5429 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 1)--lleg | |
| 5430 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 1)--rleg | |
| 5431 | else | |
| 5432 | hed.Weld.C1 = Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4) | |
| 5433 | torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2) | |
| 5434 | rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4) | |
| 5435 | end | |
| 5436 | end | |
| 5437 | else | |
| 5438 | if timer <= 0 then | |
| 5439 | animid = math.random(0,1) | |
| 5440 | else | |
| 5441 | timer = timer - 1 | |
| 5442 | end | |
| 5443 | end | |
| 5444 | end | |
| 5445 | end | |
| 5446 | end | |
| 5447 | main_color = Color3.fromRGB(main.r,main.g,main.b) | |
| 5448 | pr.Value = main.r | |
| 5449 | pg.Value = main.g | |
| 5450 | pb.Value = main.b | |
| 5451 | pv.Value = main.v | |
| 5452 | idth.Value = themeid | |
| 5453 | pith.Value = themepitch | |
| 5454 | HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2) | |
| 5455 | HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v) | |
| 5456 | sine = sine + change | |
| 5457 | if hum.Health <= 0 then | |
| 5458 | debounce = true | |
| 5459 | end | |
| 5460 | end) |