SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | ||
| 7 | ||
| 8 | Player = game.Players.LocalPlayer | |
| 9 | Character = Player.Character | |
| 10 | local txt = Instance.new("BillboardGui", Character)
| |
| 11 | txt.Adornee = Character.Head | |
| 12 | txt.Name = "_status" | |
| 13 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 14 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 15 | local text = Instance.new("TextLabel", txt)
| |
| 16 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 17 | text.FontSize = "Size24" | |
| 18 | text.TextScaled = true | |
| 19 | text.TextTransparency = 0 | |
| 20 | text.BackgroundTransparency = 1 | |
| 21 | text.TextTransparency = 0 | |
| 22 | text.TextStrokeTransparency = 0 | |
| 23 | text.Font = "Antique" | |
| 24 | text.TextStrokeColor3 = Color3.new(20,50,80) | |
| 25 | - | text.Text = "KILLER" |
| 25 | + | text.Text = "LOL" |
| 26 | print("Edited by Penien23")
| |
| 27 | --//====================================================\\-- | |
| 28 | --|| CREATED BY SHACKLUSTER EDIT BY NAMECLAN | |
| 29 | --\\====================================================//-- | |
| 30 | ||
| 31 | script:ClearAllChildren() | |
| 32 | wait(0.2) | |
| 33 | ||
| 34 | Player = game:GetService("Players").LocalPlayer
| |
| 35 | PlayerGui = Player.PlayerGui | |
| 36 | Cam = workspace.CurrentCamera | |
| 37 | Backpack = Player.Backpack | |
| 38 | Character = Player.Character | |
| 39 | Humanoid = Character.Humanoid | |
| 40 | Mouse = Player:GetMouse() | |
| 41 | RootPart = Character["HumanoidRootPart"] | |
| 42 | Torso = Character["Torso"] | |
| 43 | Head = Character["Head"] | |
| 44 | RightArm = Character["Right Arm"] | |
| 45 | LeftArm = Character["Left Arm"] | |
| 46 | RightLeg = Character["Right Leg"] | |
| 47 | LeftLeg = Character["Left Leg"] | |
| 48 | RootJoint = RootPart["RootJoint"] | |
| 49 | Neck = Torso["Neck"] | |
| 50 | RightShoulder = Torso["Right Shoulder"] | |
| 51 | LeftShoulder = Torso["Left Shoulder"] | |
| 52 | RightHip = Torso["Right Hip"] | |
| 53 | LeftHip = Torso["Left Hip"] | |
| 54 | local TIME = 0 | |
| 55 | local sick = Instance.new("Sound",Torso)
| |
| 56 | ||
| 57 | IT = Instance.new | |
| 58 | CF = CFrame.new | |
| 59 | VT = Vector3.new | |
| 60 | RAD = math.rad | |
| 61 | C3 = Color3.new | |
| 62 | UD2 = UDim2.new | |
| 63 | BRICKC = BrickColor.new | |
| 64 | ANGLES = CFrame.Angles | |
| 65 | EULER = CFrame.fromEulerAnglesXYZ | |
| 66 | COS = math.cos | |
| 67 | ACOS = math.acos | |
| 68 | SIN = math.sin | |
| 69 | ASIN = math.asin | |
| 70 | ABS = math.abs | |
| 71 | MRANDOM = math.random | |
| 72 | FLOOR = math.floor | |
| 73 | ||
| 74 | --//=================================\\ | |
| 75 | --|| USEFUL VALUES | |
| 76 | --\\=================================// | |
| 77 | ||
| 78 | Animation_Speed = 5 | |
| 79 | local FORCERESET = false | |
| 80 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 81 | local Speed = 40 | |
| 82 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 83 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 84 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 85 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 86 | local DAMAGEMULTIPLIER = 1 | |
| 87 | local ANIM = "Idle" | |
| 88 | local ATTACK = false | |
| 89 | local EQUIPPED = false | |
| 90 | local HOLD = false | |
| 91 | local COMBO = 1 | |
| 92 | local Rooted = false | |
| 93 | local SINE = 0 | |
| 94 | local KEYHOLD = false | |
| 95 | local CHANGE = 2 / Animation_Speed | |
| 96 | local WALKINGANIM = false | |
| 97 | local VALUE1 = false | |
| 98 | local VALUE2 = false | |
| 99 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 100 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 101 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 102 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 103 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 104 | WEAPONGUI.Name = "BanishV3Gui" | |
| 105 | local Weapon = IT("Model")
| |
| 106 | Weapon.Name = "Adds" | |
| 107 | local Effects = IT("Folder", Weapon)
| |
| 108 | Effects.Name = "Effects" | |
| 109 | local ANIMATOR = Humanoid.Animator | |
| 110 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 111 | local UNANCHOR = true | |
| 112 | local TOBANISH = {}
| |
| 113 | script.Parent = PlayerGui | |
| 114 | ||
| 115 | --//=================================\\ | |
| 116 | --\\=================================// | |
| 117 | ||
| 118 | ||
| 119 | --//=================================\\ | |
| 120 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 121 | --\\=================================// | |
| 122 | ||
| 123 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 124 | ArtificialHB.Name = "ArtificialHB" | |
| 125 | ||
| 126 | script:WaitForChild("ArtificialHB")
| |
| 127 | ||
| 128 | frame = Frame_Speed | |
| 129 | tf = 0 | |
| 130 | allowframeloss = false | |
| 131 | tossremainder = false | |
| 132 | lastframe = tick() | |
| 133 | script.ArtificialHB:Fire() | |
| 134 | ||
| 135 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 136 | tf = tf + s | |
| 137 | if tf >= frame then | |
| 138 | if allowframeloss then | |
| 139 | script.ArtificialHB:Fire() | |
| 140 | lastframe = tick() | |
| 141 | else | |
| 142 | for i = 1, math.floor(tf / frame) do | |
| 143 | script.ArtificialHB:Fire() | |
| 144 | end | |
| 145 | lastframe = tick() | |
| 146 | end | |
| 147 | if tossremainder then | |
| 148 | tf = 0 | |
| 149 | else | |
| 150 | tf = tf - frame * math.floor(tf / frame) | |
| 151 | end | |
| 152 | end | |
| 153 | end) | |
| 154 | ||
| 155 | --//=================================\\ | |
| 156 | --\\=================================// | |
| 157 | ||
| 158 | --//=================================\\ | |
| 159 | --|| SOME FUNCTIONS | |
| 160 | --\\=================================// | |
| 161 | ||
| 162 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 163 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 164 | end | |
| 165 | ||
| 166 | function PositiveAngle(NUMBER) | |
| 167 | if NUMBER >= 0 then | |
| 168 | NUMBER = 0 | |
| 169 | end | |
| 170 | return NUMBER | |
| 171 | end | |
| 172 | ||
| 173 | function NegativeAngle(NUMBER) | |
| 174 | if NUMBER <= 0 then | |
| 175 | NUMBER = 0 | |
| 176 | end | |
| 177 | return NUMBER | |
| 178 | end | |
| 179 | ||
| 180 | function Swait(NUMBER) | |
| 181 | if NUMBER == 0 or NUMBER == nil then | |
| 182 | ArtificialHB.Event:wait() | |
| 183 | else | |
| 184 | for i = 1, NUMBER do | |
| 185 | ArtificialHB.Event:wait() | |
| 186 | end | |
| 187 | end | |
| 188 | end | |
| 189 | ||
| 190 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 191 | local NEWMESH = IT(MESH) | |
| 192 | if MESH == "SpecialMesh" then | |
| 193 | NEWMESH.MeshType = MESHTYPE | |
| 194 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 195 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 196 | end | |
| 197 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 198 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 199 | end | |
| 200 | end | |
| 201 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 202 | NEWMESH.Scale = SCALE | |
| 203 | NEWMESH.Parent = PARENT | |
| 204 | return NEWMESH | |
| 205 | end | |
| 206 | ||
| 207 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 208 | local NEWPART = IT("Part")
| |
| 209 | NEWPART.formFactor = FORMFACTOR | |
| 210 | NEWPART.Reflectance = REFLECTANCE | |
| 211 | NEWPART.Transparency = TRANSPARENCY | |
| 212 | NEWPART.CanCollide = false | |
| 213 | NEWPART.Locked = true | |
| 214 | NEWPART.Anchored = true | |
| 215 | if ANCHOR == false then | |
| 216 | NEWPART.Anchored = false | |
| 217 | end | |
| 218 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 219 | NEWPART.Name = NAME | |
| 220 | NEWPART.Size = SIZE | |
| 221 | NEWPART.Position = Torso.Position | |
| 222 | NEWPART.Material = MATERIAL | |
| 223 | NEWPART:BreakJoints() | |
| 224 | NEWPART.Parent = PARENT | |
| 225 | return NEWPART | |
| 226 | end | |
| 227 | ||
| 228 | local function weldBetween(a, b) | |
| 229 | local weldd = Instance.new("ManualWeld")
| |
| 230 | weldd.Part0 = a | |
| 231 | weldd.Part1 = b | |
| 232 | weldd.C0 = CFrame.new() | |
| 233 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 234 | weldd.Parent = a | |
| 235 | return weldd | |
| 236 | end | |
| 237 | ||
| 238 | ||
| 239 | function QuaternionFromCFrame(cf) | |
| 240 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 241 | local trace = m00 + m11 + m22 | |
| 242 | if trace > 0 then | |
| 243 | local s = math.sqrt(1 + trace) | |
| 244 | local recip = 0.5 / s | |
| 245 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 246 | else | |
| 247 | local i = 0 | |
| 248 | if m11 > m00 then | |
| 249 | i = 1 | |
| 250 | end | |
| 251 | if m22 > (i == 0 and m00 or m11) then | |
| 252 | i = 2 | |
| 253 | end | |
| 254 | if i == 0 then | |
| 255 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 256 | local recip = 0.5 / s | |
| 257 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 258 | elseif i == 1 then | |
| 259 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 260 | local recip = 0.5 / s | |
| 261 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 262 | elseif i == 2 then | |
| 263 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 264 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 265 | end | |
| 266 | end | |
| 267 | end | |
| 268 | ||
| 269 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 270 | local xs, ys, zs = x + x, y + y, z + z | |
| 271 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 272 | local xx = x * xs | |
| 273 | local xy = x * ys | |
| 274 | local xz = x * zs | |
| 275 | local yy = y * ys | |
| 276 | local yz = y * zs | |
| 277 | local zz = z * zs | |
| 278 | 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)) | |
| 279 | end | |
| 280 | ||
| 281 | function QuaternionSlerp(a, b, t) | |
| 282 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 283 | local startInterp, finishInterp; | |
| 284 | if cosTheta >= 0.0001 then | |
| 285 | if (1 - cosTheta) > 0.0001 then | |
| 286 | local theta = ACOS(cosTheta) | |
| 287 | local invSinTheta = 1 / SIN(theta) | |
| 288 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 289 | finishInterp = SIN(t * theta) * invSinTheta | |
| 290 | else | |
| 291 | startInterp = 1 - t | |
| 292 | finishInterp = t | |
| 293 | end | |
| 294 | else | |
| 295 | if (1 + cosTheta) > 0.0001 then | |
| 296 | local theta = ACOS(-cosTheta) | |
| 297 | local invSinTheta = 1 / SIN(theta) | |
| 298 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 299 | finishInterp = SIN(t * theta) * invSinTheta | |
| 300 | else | |
| 301 | startInterp = t - 1 | |
| 302 | finishInterp = t | |
| 303 | end | |
| 304 | end | |
| 305 | 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 | |
| 306 | end | |
| 307 | ||
| 308 | function Clerp(a, b, t) | |
| 309 | local qa = {QuaternionFromCFrame(a)}
| |
| 310 | local qb = {QuaternionFromCFrame(b)}
| |
| 311 | local ax, ay, az = a.x, a.y, a.z | |
| 312 | local bx, by, bz = b.x, b.y, b.z | |
| 313 | local _t = 1 - t | |
| 314 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 315 | end | |
| 316 | ||
| 317 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 318 | local frame = IT("Frame")
| |
| 319 | frame.BackgroundTransparency = TRANSPARENCY | |
| 320 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 321 | frame.Position = POSITION | |
| 322 | frame.Size = SIZE | |
| 323 | frame.BackgroundColor3 = COLOR | |
| 324 | frame.BorderColor3 = BORDERCOLOR | |
| 325 | frame.Name = NAME | |
| 326 | frame.Parent = PARENT | |
| 327 | return frame | |
| 328 | end | |
| 329 | ||
| 330 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 331 | local label = IT("TextLabel")
| |
| 332 | label.BackgroundTransparency = 1 | |
| 333 | label.Size = UD2(1, 0, 1, 0) | |
| 334 | label.Position = UD2(0, 0, 0, 0) | |
| 335 | label.TextColor3 = TEXTCOLOR | |
| 336 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 337 | label.TextTransparency = TRANSPARENCY | |
| 338 | label.FontSize = TEXTFONTSIZE | |
| 339 | label.Font = TEXTFONT | |
| 340 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 341 | label.TextScaled = false | |
| 342 | label.Text = TEXT | |
| 343 | label.Name = NAME | |
| 344 | label.Parent = PARENT | |
| 345 | return label | |
| 346 | end | |
| 347 | ||
| 348 | function NoOutlines(PART) | |
| 349 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 350 | end | |
| 351 | ||
| 352 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 353 | local NEWWELD = IT(TYPE) | |
| 354 | NEWWELD.Part0 = PART0 | |
| 355 | NEWWELD.Part1 = PART1 | |
| 356 | NEWWELD.C0 = C0 | |
| 357 | NEWWELD.C1 = C1 | |
| 358 | NEWWELD.Parent = PARENT | |
| 359 | return NEWWELD | |
| 360 | end | |
| 361 | ||
| 362 | local S = IT("Sound")
| |
| 363 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 364 | local NEWSOUND = nil | |
| 365 | coroutine.resume(coroutine.create(function() | |
| 366 | NEWSOUND = S:Clone() | |
| 367 | NEWSOUND.Parent = PARENT | |
| 368 | NEWSOUND.Volume = VOLUME | |
| 369 | NEWSOUND.Pitch = PITCH | |
| 370 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 371 | NEWSOUND:play() | |
| 372 | if DOESLOOP == true then | |
| 373 | NEWSOUND.Looped = true | |
| 374 | else | |
| 375 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 376 | NEWSOUND:remove() | |
| 377 | end | |
| 378 | end)) | |
| 379 | return NEWSOUND | |
| 380 | end | |
| 381 | ||
| 382 | function CFrameFromTopBack(at, top, back) | |
| 383 | local right = top:Cross(back) | |
| 384 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 385 | end | |
| 386 | ||
| 387 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 388 | function WACKYEFFECT(Table) | |
| 389 | local TYPE = (Table.EffectType or "Sphere") | |
| 390 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 391 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 392 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 393 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 394 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 395 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 396 | local ROTATION1 = (Table.RotationX or 0) | |
| 397 | local ROTATION2 = (Table.RotationY or 0) | |
| 398 | local ROTATION3 = (Table.RotationZ or 0) | |
| 399 | local MATERIAL = (Table.Material or "Neon") | |
| 400 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 401 | local TIME = (Table.Time or 45) | |
| 402 | local SOUNDID = (Table.SoundID or nil) | |
| 403 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 404 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 405 | coroutine.resume(coroutine.create(function() | |
| 406 | local PLAYSSOUND = false | |
| 407 | local SOUND = nil | |
| 408 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 409 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 410 | PLAYSSOUND = true | |
| 411 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 412 | end | |
| 413 | EFFECT.Color = COLOR | |
| 414 | local MSH = nil | |
| 415 | if TYPE == "Sphere" then | |
| 416 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 417 | elseif TYPE == "Block" then | |
| 418 | MSH = IT("BlockMesh",EFFECT)
| |
| 419 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 420 | elseif TYPE == "Wave" then | |
| 421 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 422 | elseif TYPE == "Ring" then | |
| 423 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 424 | elseif TYPE == "Slash" then | |
| 425 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 426 | elseif TYPE == "Round Slash" then | |
| 427 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 428 | elseif TYPE == "Swirl" then | |
| 429 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 430 | elseif TYPE == "Skull" then | |
| 431 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 432 | elseif TYPE == "Crystal" then | |
| 433 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 434 | end | |
| 435 | if MSH ~= nil then | |
| 436 | local MOVESPEED = nil | |
| 437 | if MOVEDIRECTION ~= nil then | |
| 438 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 439 | end | |
| 440 | local GROWTH = SIZE - ENDSIZE | |
| 441 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 442 | if TYPE == "Block" then | |
| 443 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 444 | else | |
| 445 | EFFECT.CFrame = CFRAME | |
| 446 | end | |
| 447 | for LOOP = 1, TIME+1 do | |
| 448 | Swait() | |
| 449 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 450 | if TYPE == "Wave" then | |
| 451 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 452 | end | |
| 453 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 454 | if TYPE == "Block" then | |
| 455 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 456 | else | |
| 457 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 458 | end | |
| 459 | if MOVEDIRECTION ~= nil then | |
| 460 | local ORI = EFFECT.Orientation | |
| 461 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 462 | EFFECT.Orientation = ORI | |
| 463 | end | |
| 464 | end | |
| 465 | if PLAYSSOUND == false then | |
| 466 | EFFECT:remove() | |
| 467 | else | |
| 468 | SOUND.Stopped:Connect(function() | |
| 469 | EFFECT:remove() | |
| 470 | end) | |
| 471 | end | |
| 472 | else | |
| 473 | if PLAYSSOUND == false then | |
| 474 | EFFECT:remove() | |
| 475 | else | |
| 476 | repeat Swait() until SOUND.Playing == false | |
| 477 | EFFECT:remove() | |
| 478 | end | |
| 479 | end | |
| 480 | end)) | |
| 481 | end | |
| 482 | ||
| 483 | function MakeForm(PART,TYPE) | |
| 484 | if TYPE == "Cyl" then | |
| 485 | local MSH = IT("CylinderMesh",PART)
| |
| 486 | elseif TYPE == "Ball" then | |
| 487 | local MSH = IT("SpecialMesh",PART)
| |
| 488 | MSH.MeshType = "Sphere" | |
| 489 | elseif TYPE == "Wedge" then | |
| 490 | local MSH = IT("SpecialMesh",PART)
| |
| 491 | MSH.MeshType = "Wedge" | |
| 492 | end | |
| 493 | end | |
| 494 | ||
| 495 | function SpawnTrail(FROM,TO,BIG) | |
| 496 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0)) |
| 496 | + | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) |
| 497 | MakeForm(TRAIL,"Cyl") | |
| 498 | local DIST = (FROM - TO).Magnitude | |
| 499 | if BIG == true then | |
| 500 | TRAIL.Size = VT(5,DIST,5) | |
| 501 | else | |
| 502 | TRAIL.Size = VT(5,DIST,5) | |
| 503 | end | |
| 504 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 505 | coroutine.resume(coroutine.create(function() | |
| 506 | for i = 1, 5 do | |
| 507 | Swait() | |
| 508 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 509 | end | |
| 510 | TRAIL:remove() | |
| 511 | end)) | |
| 512 | end | |
| 513 | ||
| 514 | Debris = game:GetService("Debris")
| |
| 515 | ||
| 516 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 517 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 518 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 519 | end | |
| 520 | ||
| 521 | function turnto(position) | |
| 522 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 523 | end | |
| 524 | local asd = Instance.new("ParticleEmitter")
| |
| 525 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
| 526 | asd.LightEmission = .1 | |
| 527 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 528 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
| |
| 529 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 530 | asd.Transparency = bbb | |
| 531 | asd.Size = aaa | |
| 532 | asd.ZOffset = .9 | |
| 533 | asd.Acceleration = Vector3.new(0, -15, 0) | |
| 534 | asd.LockedToPart = false | |
| 535 | asd.EmissionDirection = "Back" | |
| 536 | asd.Lifetime = NumberRange.new(1, 2) | |
| 537 | asd.Rotation = NumberRange.new(-100, 100) | |
| 538 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 539 | asd.Speed = NumberRange.new(10) | |
| 540 | asd.Enabled = false | |
| 541 | asd.VelocitySpread = 999 | |
| 542 | ||
| 543 | function getbloody(victim,amount) | |
| 544 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
| 545 | PART.CFrame = victim.CFrame | |
| 546 | local HITPLAYERSOUNDS = {"356551938","264486467"}
| |
| 547 | Debris:AddItem(PART,5) | |
| 548 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 549 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 550 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 551 | local prtcl = asd:Clone() | |
| 552 | prtcl.Parent = PART | |
| 553 | prtcl:Emit(amount*10) | |
| 554 | end | |
| 555 | ||
| 556 | local Particle = IT("ParticleEmitter",nil)
| |
| 557 | Particle.Enabled = false | |
| 558 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
| |
| 559 | Particle.LightEmission = 0.5 | |
| 560 | Particle.Rate = 150 | |
| 561 | Particle.ZOffset = 1 | |
| 562 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 563 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 564 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 565 | Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0)) | |
| 566 | ||
| 567 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 568 | function ParticleEmitter(Table) | |
| 569 | local PRTCL = Particle:Clone() | |
| 570 | local Speed = Table.Speed or 5 | |
| 571 | local Drag = Table.Drag or 0 | |
| 572 | local Size1 = Table.Size1 or 1 | |
| 573 | local Size2 = Table.Size2 or 5 | |
| 574 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 575 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 576 | local Parent = Table.Parent or Torso | |
| 577 | local Emit = Table.Emit or 100 | |
| 578 | local Offset = Table.Offset or 360 | |
| 579 | local Acel = Table.Acel or VT(0,0,0) | |
| 580 | local Enabled = Table.Enabled or false | |
| 581 | PRTCL.Parent = Parent | |
| 582 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 583 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 584 | PRTCL.Speed = NumberRange.new(Speed) | |
| 585 | PRTCL.VelocitySpread = Offset | |
| 586 | PRTCL.Drag = Drag | |
| 587 | PRTCL.Acceleration = Acel | |
| 588 | if Enabled == false then | |
| 589 | PRTCL:Emit(Emit) | |
| 590 | Debris:AddItem(PRTCL,Lifetime2) | |
| 591 | else | |
| 592 | PRTCL.Enabled = true | |
| 593 | end | |
| 594 | return PRTCL | |
| 595 | end | |
| 596 | ||
| 597 | function R_RANDOM(CFRAME,DIST) | |
| 598 | return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST) | |
| 599 | end | |
| 600 | ||
| 601 | function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT) | |
| 602 | coroutine.resume(coroutine.create(function() | |
| 603 | local FADE = IT("Model",Effects)
| |
| 604 | if PARENT ~= nil then | |
| 605 | FADE.Parent = PARENT | |
| 606 | end | |
| 607 | FADE.Name = "FadingEffect" | |
| 608 | for _, c in pairs(Character:GetChildren()) do | |
| 609 | if c.ClassName == "Part" then | |
| 610 | c.CanCollide = false | |
| 611 | - | local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Lime green"), c.Name, c.Size, true)
|
| 611 | + | local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Really red"), c.Name, c.Size, true)
|
| 612 | FADER.CFrame = c.CFrame | |
| 613 | FADER.Color = COLOR | |
| 614 | if FADER.Name == "Head" then | |
| 615 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
| |
| 616 | elseif FADER.Name == "HumanoidRootPart" then | |
| 617 | FADE.PrimaryPart = FADER | |
| 618 | FADER.Transparency = 1 | |
| 619 | end | |
| 620 | end | |
| 621 | end | |
| 622 | local TRANS = 0.25/TIMER | |
| 623 | local DIST = nil | |
| 624 | if MOVEDIRECTION ~= nil then | |
| 625 | DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude | |
| 626 | end | |
| 627 | for i = 1, TIMER do | |
| 628 | Swait() | |
| 629 | for _, c in pairs(FADE:GetChildren()) do | |
| 630 | if c.ClassName == "Part" then | |
| 631 | c.Transparency = c.Transparency + TRANS | |
| 632 | end | |
| 633 | end | |
| 634 | if MOVEDIRECTION ~= nil then | |
| 635 | local ORI = FADE.PrimaryPart.Orientation | |
| 636 | FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z))) | |
| 637 | end | |
| 638 | end | |
| 639 | FADE:remove() | |
| 640 | end)) | |
| 641 | end | |
| 642 | ||
| 643 | ||
| 644 | --//=================================\\ | |
| 645 | --|| WEAPON CREATION | |
| 646 | --\\=================================// | |
| 647 | ||
| 648 | local SIZE = 1.25 | |
| 649 | ||
| 650 | local Particle = IT("ParticleEmitter",nil)
| |
| 651 | Particle.Enabled = false | |
| 652 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 653 | Particle.LightEmission = 0.5 | |
| 654 | Particle.Rate = 150 | |
| 655 | Particle.ZOffset = 0.2 | |
| 656 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 657 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 658 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 659 | Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0)) | |
| 660 | ||
| 661 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 662 | function ParticleEmitter(Table) | |
| 663 | local PRTCL = Particle:Clone() | |
| 664 | local Speed = Table.Speed or 5 | |
| 665 | local Drag = Table.Drag or 0 | |
| 666 | local Size1 = Table.Size1 or 1 | |
| 667 | local Size2 = Table.Size2 or 5 | |
| 668 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 669 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 670 | local Parent = Table.Parent or Torso | |
| 671 | local Emit = Table.Emit or 100 | |
| 672 | local Offset = Table.Offset or 360 | |
| 673 | local Acel = Table.Acel or VT(0,0,0) | |
| 674 | local Enabled = Table.Enabled or false | |
| 675 | PRTCL.Parent = Parent | |
| 676 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 677 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 678 | PRTCL.Speed = NumberRange.new(Speed) | |
| 679 | PRTCL.VelocitySpread = Offset | |
| 680 | PRTCL.Drag = Drag | |
| 681 | PRTCL.Acceleration = Acel | |
| 682 | if Enabled == false then | |
| 683 | PRTCL:Emit(Emit) | |
| 684 | Debris:AddItem(PRTCL,Lifetime2) | |
| 685 | else | |
| 686 | PRTCL.Enabled = true | |
| 687 | end | |
| 688 | return PRTCL | |
| 689 | end | |
| 690 | ||
| 691 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
| 692 | PRT.Color = C3(1,1,1) | |
| 693 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
| |
| 694 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "15724132", VT(1,1,1)*SIZE, VT(0,0,0))
| |
| 695 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false) | |
| 696 | PRT.Color = C3(0, 111, 0) | |
| 697 | MakeForm(PRT,"Ball") | |
| 698 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
| |
| 699 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false) | |
| 700 | PRT.Color = C3(0, 111, 0) | |
| 701 | MakeForm(PRT,"Ball") | |
| 702 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
| |
| 703 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
| 704 | PRT.Color = C3(0, 111, 0) | |
| 705 | MakeForm(PRT,"Ball") | |
| 706 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
| |
| 707 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
| 708 | PRT.Color = C3(0, 111, 0) | |
| 709 | MakeForm(PRT,"Ball") | |
| 710 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
| |
| 711 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
| 712 | PRT.Color = C3(0, 111, 0) | |
| 713 | MakeForm(PRT,"Ball") | |
| 714 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
| |
| 715 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
| 716 | PRT.Color = C3(0, 111, 0) | |
| 717 | MakeForm(PRT,"Ball") | |
| 718 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
| |
| 719 | ||
| 720 | ||
| 721 | ||
| 722 | ||
| 723 | local LASTPART = Head | |
| 724 | for i = 1, 20 do | |
| 725 | local MATH = (1-(i/25)) | |
| 726 | if LASTPART == Head then | |
| 727 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 728 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
| |
| 729 | LASTPART = Horn | |
| 730 | Horn.Color = C3((i*3-3)/0,0,0) | |
| 731 | else | |
| 732 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 733 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
| |
| 734 | LASTPART = Horn | |
| 735 | Horn.Color = C3((i*3-3)/0,127,0) | |
| 736 | end | |
| 737 | end | |
| 738 | local LASTPART = Head | |
| 739 | for i = 1, 20 do | |
| 740 | local MATH = (1-(i/25)) | |
| 741 | if LASTPART == Head then | |
| 742 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 743 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
| |
| 744 | LASTPART = Horn | |
| 745 | Horn.Color = C3((i*3-3)/0,0,0) | |
| 746 | else | |
| 747 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 748 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
| |
| 749 | LASTPART = Horn | |
| 750 | Horn.Color = C3((i*3-3)/0,127,0) | |
| 751 | end | |
| 752 | end | |
| 753 | ||
| 754 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 755 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 756 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 757 | MakeForm(Part,"Wedge") | |
| 758 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 759 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 760 | MakeForm(Part,"Wedge") | |
| 761 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 762 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 763 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 764 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 765 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 766 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 767 | MakeForm(Part,"Cyl") | |
| 768 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 769 | for i = 1, 8 do | |
| 770 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 771 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 772 | end | |
| 773 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 774 | MakeForm(Part,"Cyl") | |
| 775 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 776 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 777 | MakeForm(Part,"Ball") | |
| 778 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 779 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 780 | MakeForm(Part,"Wedge") | |
| 781 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 782 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 783 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 784 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 785 | MakeForm(Part,"Cyl") | |
| 786 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 787 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 788 | MakeForm(Part,"Cyl") | |
| 789 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 790 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 791 | MakeForm(Part,"Cyl") | |
| 792 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 793 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 794 | MakeForm(Part,"Wedge") | |
| 795 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 796 | local LASTPART = Handle | |
| 797 | for i = 1, 10 do | |
| 798 | if LASTPART == Handle then | |
| 799 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 800 | LASTPART = Part | |
| 801 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 802 | else | |
| 803 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 804 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 805 | LASTPART = Part | |
| 806 | end | |
| 807 | end | |
| 808 | ||
| 809 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 810 | MakeForm(Barrel,"Cyl") | |
| 811 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 812 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 813 | MakeForm(Part,"Cyl") | |
| 814 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 815 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 816 | MakeForm(Part,"Wedge") | |
| 817 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 818 | local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 819 | MakeForm(Hole2,"Cyl") | |
| 820 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 821 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 822 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 823 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 824 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 825 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 826 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 827 | coroutine.resume(coroutine.create(function() | |
| 828 | while wait() do | |
| 829 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 830 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 831 | end | |
| 832 | end)) | |
| 833 | ||
| 834 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 835 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 836 | ||
| 837 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 838 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 839 | c.Material = "Glass" | |
| 840 | c.Color = C3(0,0,0) | |
| 841 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 842 | c.Color = C3(0,1,0) | |
| 843 | c.Material = "Neon" | |
| 844 | end | |
| 845 | end | |
| 846 | ||
| 847 | Weapon.Parent = Character | |
| 848 | for _, c in pairs(Weapon:GetChildren()) do | |
| 849 | if c.ClassName == "Part" then | |
| 850 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 851 | end | |
| 852 | end | |
| 853 | ||
| 854 | - | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) |
| 854 | + | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Lime green", "Hood", VT(1,1,1),false) |
| 855 | PRT.Color = C3(0,0,0) | |
| 856 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
| |
| 857 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
| |
| 858 | end | |
| 859 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 859 | + | |
| 860 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 860 | + | |
| 861 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 861 | + | |
| 862 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 862 | + | |
| 863 | local Drag = Table.Drag or 0 | |
| 864 | - | if Head:FindFirstChild("face") then
|
| 864 | + | |
| 865 | - | Head.face.Texture = "rbxassetid://403870689" |
| 865 | + | |
| 866 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 866 | + | |
| 867 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 867 | + | |
| 868 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 868 | + | |
| 869 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 869 | + | |
| 870 | local Offset = Table.Offset or 360 | |
| 871 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 871 | + | |
| 872 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 872 | + | |
| 873 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 873 | + | |
| 874 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 874 | + | |
| 875 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 876 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 876 | + | |
| 877 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 877 | + | |
| 878 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 878 | + | |
| 879 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 879 | + | |
| 880 | if Enabled == false then | |
| 881 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 881 | + | |
| 882 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 882 | + | |
| 883 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 883 | + | |
| 884 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 884 | + | |
| 885 | end | |
| 886 | - | if Character:FindFirstChildOfClass("Accessory") then
|
| 886 | + | |
| 887 | - | Character:FindFirstChildOfClass("Accessory"):remove()
|
| 887 | + | |
| 888 | - | elseif Character:FindFirstChildOfClass("Hat") then
|
| 888 | + | |
| 889 | - | Character:FindFirstChildOfClass("Hat"):remove()
|
| 889 | + | |
| 890 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 891 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 892 | MakeForm(Part,"Wedge") | |
| 893 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 894 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 895 | MakeForm(Part,"Wedge") | |
| 896 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 897 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 898 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 899 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 900 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 901 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 902 | MakeForm(Part,"Cyl") | |
| 903 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 904 | for i = 1, 8 do | |
| 905 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 906 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 907 | end | |
| 908 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 909 | MakeForm(Part,"Cyl") | |
| 910 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 911 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 912 | MakeForm(Part,"Ball") | |
| 913 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 914 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 915 | MakeForm(Part,"Wedge") | |
| 916 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 917 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 918 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 919 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 920 | MakeForm(Part,"Cyl") | |
| 921 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 922 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 923 | MakeForm(Part,"Cyl") | |
| 924 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 925 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 926 | MakeForm(Part,"Cyl") | |
| 927 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 928 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 929 | MakeForm(Part,"Wedge") | |
| 930 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 931 | local LASTPART = Handle | |
| 932 | for i = 1, 10 do | |
| 933 | if LASTPART == Handle then | |
| 934 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 935 | LASTPART = Part | |
| 936 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 937 | else | |
| 938 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 939 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 940 | LASTPART = Part | |
| 941 | end | |
| 942 | end | |
| 943 | ||
| 944 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 945 | MakeForm(Barrel,"Cyl") | |
| 946 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 947 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 948 | MakeForm(Part,"Cyl") | |
| 949 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 950 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 951 | MakeForm(Part,"Wedge") | |
| 952 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 953 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 954 | MakeForm(Hole,"Cyl") | |
| 955 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 956 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 957 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 958 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 959 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 960 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 961 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 962 | coroutine.resume(coroutine.create(function() | |
| 963 | while wait() do | |
| 964 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 965 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 966 | end | |
| 967 | end)) | |
| 968 | ||
| 969 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 970 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 971 | ||
| 972 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 973 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 974 | c.Material = "Glass" | |
| 975 | c.Color = C3(0.05,0.05,0.05) | |
| 976 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 977 | c.Color = C3(0,1,0) | |
| 978 | c.Material = "Neon" | |
| 979 | end | |
| 980 | end | |
| 981 | ||
| 982 | Weapon.Parent = Character | |
| 983 | for _, c in pairs(Weapon:GetChildren()) do | |
| 984 | if c.ClassName == "Part" then | |
| 985 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 986 | end | |
| 987 | end | |
| 988 | ||
| 989 | local SKILLTEXTCOLOR = C3(0,1,0) | |
| 990 | local SKILLFONT = "Antique" | |
| 991 | local SKILLTEXTSIZE = 7 | |
| 992 | ||
| 993 | Humanoid.Died:connect(function() | |
| 994 | ATTACK = true | |
| 995 | end) | |
| 996 | ||
| 997 | ||
| 998 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.0, 1, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 999 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 1000 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 1001 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 1002 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 1003 | ]] | |
| 1004 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 1005 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 1006 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 1007 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 1008 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 1009 | ]] | |
| 1010 | function printbye(Name) | |
| 1011 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 1012 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 1013 | end | |
| 1014 | ||
| 1015 | workspace.ChildAdded:connect(function(instance) | |
| 1016 | for BANISH = 1, #TOBANISH do | |
| 1017 | if TOBANISH[BANISH] ~= nil then | |
| 1018 | if instance.Name == TOBANISH[BANISH] then | |
| 1019 | coroutine.resume(coroutine.create(function() | |
| 1020 | printbye(instance.Name) | |
| 1021 | instance:ClearAllChildren() | |
| 1022 | Debris:AddItem(instance,0.0005) | |
| 1023 | end)) | |
| 1024 | end | |
| 1025 | end | |
| 1026 | end | |
| 1027 | end) | |
| 1028 | ||
| 1029 | --//=================================\\ | |
| 1030 | --|| DAMAGING | |
| 1031 | --\\=================================// | |
| 1032 | ||
| 1033 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 1034 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1035 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 1036 | wave.CFrame = CFRAME | |
| 1037 | coroutine.resume(coroutine.create(function(PART) | |
| 1038 | for i = 1, WAIT do | |
| 1039 | Swait() | |
| 1040 | mesh.Scale = mesh.Scale + GROW | |
| 1041 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1042 | if DOESROT == true then | |
| 1043 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1044 | end | |
| 1045 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1046 | if wave.Transparency > 0.99 then | |
| 1047 | wave:remove() | |
| 1048 | end | |
| 1049 | end | |
| 1050 | end)) | |
| 1051 | end | |
| 1052 | ||
| 1053 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
| 1054 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1055 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
| |
| 1056 | wave.CFrame = CFRAME | |
| 1057 | coroutine.resume(coroutine.create(function(PART) | |
| 1058 | for i = 1, WAIT do | |
| 1059 | Swait() | |
| 1060 | mesh.Scale = mesh.Scale + GROW | |
| 1061 | if DOESROT == true then | |
| 1062 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1063 | end | |
| 1064 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1065 | if wave.Transparency > 0.99 then | |
| 1066 | wave:remove() | |
| 1067 | end | |
| 1068 | end | |
| 1069 | end)) | |
| 1070 | end | |
| 1071 | ||
| 1072 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 1073 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 1074 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 1075 | wave.CFrame = CFRAME | |
| 1076 | coroutine.resume(coroutine.create(function(PART) | |
| 1077 | for i = 1, WAIT do | |
| 1078 | Swait() | |
| 1079 | mesh.Scale = mesh.Scale + GROW | |
| 1080 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 1081 | if wave.Transparency > 0.99 then | |
| 1082 | wave:remove() | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end)) | |
| 1086 | end | |
| 1087 | ||
| 1088 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 1089 | local mesh = nil | |
| 1090 | if KIND == "Base" then | |
| 1091 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
| |
| 1092 | elseif KIND == "Thin" then | |
| 1093 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
| |
| 1094 | elseif KIND == "Round" then | |
| 1095 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
| |
| 1096 | end | |
| 1097 | wave.CFrame = CFRAME | |
| 1098 | coroutine.resume(coroutine.create(function(PART) | |
| 1099 | for i = 1, WAIT do | |
| 1100 | Swait() | |
| 1101 | mesh.Scale = mesh.Scale + GROW/10 | |
| 1102 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1103 | if wave.Transparency > 0.99 then | |
| 1104 | wave:remove() | |
| 1105 | end | |
| 1106 | end | |
| 1107 | end)) | |
| 1108 | end | |
| 1109 | ||
| 1110 | function Ragdoll(Character2, CharTorso, Headless, Velocity) | |
| 1111 | local svch = Character2 | |
| 1112 | Character2:BreakJoints() | |
| 1113 | local hum = Character2:findFirstChild("Humanoid")
| |
| 1114 | local q = Character2:GetChildren() | |
| 1115 | local CLONE = IT("Model", Effects)
| |
| 1116 | for i = 1, #q do | |
| 1117 | if q[i].ClassName == "Accessory" and Headless == true then | |
| 1118 | q[i]:remove() | |
| 1119 | elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then | |
| 1120 | q[i].Parent = CLONE | |
| 1121 | elseif q[i].ClassName ~= "Humanoid" then | |
| 1122 | q[i]:remove() | |
| 1123 | end | |
| 1124 | end | |
| 1125 | local chrclone = CLONE | |
| 1126 | local ch = chrclone:GetChildren() | |
| 1127 | local i | |
| 1128 | for i = 1, #ch do | |
| 1129 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
| 1130 | ch[i]:remove() | |
| 1131 | end | |
| 1132 | end | |
| 1133 | local function Scan(ch) | |
| 1134 | local e | |
| 1135 | for e = 1, #ch do | |
| 1136 | Scan(ch[e]:GetChildren()) | |
| 1137 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
| 1138 | ch[e]:remove() | |
| 1139 | end | |
| 1140 | end | |
| 1141 | end | |
| 1142 | Character2:remove() | |
| 1143 | local NEWHUM = IT("Humanoid")
| |
| 1144 | NEWHUM.Name = "Corpse" | |
| 1145 | NEWHUM.Health = 0 | |
| 1146 | NEWHUM.MaxHealth = 0 | |
| 1147 | NEWHUM.PlatformStand = true | |
| 1148 | NEWHUM.Parent = CLONE | |
| 1149 | NEWHUM.DisplayDistanceType = "None" | |
| 1150 | Scan(chrclone:GetChildren()) | |
| 1151 | local ch = Character2:GetChildren() | |
| 1152 | local i | |
| 1153 | for i = 1, #ch do | |
| 1154 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 1155 | ch[i]:remove() | |
| 1156 | end | |
| 1157 | end | |
| 1158 | local ch = Character2:GetChildren() | |
| 1159 | local i | |
| 1160 | for i = 1, #ch do | |
| 1161 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 1162 | ch[i]:remove() | |
| 1163 | end | |
| 1164 | end | |
| 1165 | Character2 = chrclone | |
| 1166 | local Torso2 = Character2.Torso | |
| 1167 | local movevector = Vector3.new() | |
| 1168 | if Torso2 then | |
| 1169 | movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector | |
| 1170 | local Head = Character2:FindFirstChild("Head")
| |
| 1171 | if Head then | |
| 1172 | local Neck = Instance.new("Weld")
| |
| 1173 | Neck.Name = "Neck" | |
| 1174 | Neck.Part0 = Torso2 | |
| 1175 | Neck.Part1 = Head | |
| 1176 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 1177 | Neck.C1 = CFrame.new() | |
| 1178 | Neck.Parent = Torso2 | |
| 1179 | if Headless == true then | |
| 1180 | Head.Transparency = 1 | |
| 1181 | Head:ClearAllChildren() | |
| 1182 | end | |
| 1183 | end | |
| 1184 | local Limb = Character2:FindFirstChild("Right Arm")
| |
| 1185 | if Limb then | |
| 1186 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
| 1187 | local Joint = Instance.new("Glue")
| |
| 1188 | Joint.Name = "RightShoulder" | |
| 1189 | Joint.Part0 = Torso2 | |
| 1190 | Joint.Part1 = Limb | |
| 1191 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1192 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1193 | Joint.Parent = Torso2 | |
| 1194 | local B = Instance.new("Part")
| |
| 1195 | B.TopSurface = 0 | |
| 1196 | B.BottomSurface = 0 | |
| 1197 | B.formFactor = "Symmetric" | |
| 1198 | B.Size = Vector3.new(1, 1, 1) | |
| 1199 | B.Transparency = 1 | |
| 1200 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1201 | B.Parent = Character2 | |
| 1202 | local W = Instance.new("Weld")
| |
| 1203 | W.Part0 = Limb | |
| 1204 | W.Part1 = B | |
| 1205 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1206 | W.Parent = Limb | |
| 1207 | end | |
| 1208 | local Limb = Character2:FindFirstChild("Left Arm")
| |
| 1209 | if Limb then | |
| 1210 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
| 1211 | local Joint = Instance.new("Glue")
| |
| 1212 | Joint.Name = "LeftShoulder" | |
| 1213 | Joint.Part0 = Torso2 | |
| 1214 | Joint.Part1 = Limb | |
| 1215 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1216 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1217 | Joint.Parent = Torso2 | |
| 1218 | local B = Instance.new("Part")
| |
| 1219 | B.TopSurface = 0 | |
| 1220 | B.BottomSurface = 0 | |
| 1221 | B.formFactor = "Symmetric" | |
| 1222 | B.Size = Vector3.new(1, 1, 1) | |
| 1223 | B.Transparency = 1 | |
| 1224 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1225 | B.Parent = Character2 | |
| 1226 | local W = Instance.new("Weld")
| |
| 1227 | W.Part0 = Limb | |
| 1228 | W.Part1 = B | |
| 1229 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1230 | W.Parent = Limb | |
| 1231 | end | |
| 1232 | local Limb = Character2:FindFirstChild("Right Leg")
| |
| 1233 | if Limb then | |
| 1234 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
| 1235 | local Joint = Instance.new("Glue")
| |
| 1236 | Joint.Name = "RightHip" | |
| 1237 | Joint.Part0 = Torso2 | |
| 1238 | Joint.Part1 = Limb | |
| 1239 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1240 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1241 | Joint.Parent = Torso2 | |
| 1242 | local B = Instance.new("Part")
| |
| 1243 | B.TopSurface = 0 | |
| 1244 | B.BottomSurface = 0 | |
| 1245 | B.formFactor = "Symmetric" | |
| 1246 | B.Size = Vector3.new(1, 1, 1) | |
| 1247 | B.Transparency = 1 | |
| 1248 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1249 | B.Parent = Character2 | |
| 1250 | local W = Instance.new("Weld")
| |
| 1251 | W.Part0 = Limb | |
| 1252 | W.Part1 = B | |
| 1253 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1254 | W.Parent = Limb | |
| 1255 | end | |
| 1256 | local Limb = Character2:FindFirstChild("Left Leg")
| |
| 1257 | if Limb then | |
| 1258 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
| 1259 | local Joint = Instance.new("Glue")
| |
| 1260 | Joint.Name = "LeftHip" | |
| 1261 | Joint.Part0 = Torso2 | |
| 1262 | Joint.Part1 = Limb | |
| 1263 | Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1264 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1265 | Joint.Parent = Torso2 | |
| 1266 | local B = Instance.new("Part")
| |
| 1267 | B.TopSurface = 0 | |
| 1268 | B.BottomSurface = 0 | |
| 1269 | B.formFactor = "Symmetric" | |
| 1270 | B.Size = Vector3.new(1, 1, 1) | |
| 1271 | B.Transparency = 1 | |
| 1272 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1273 | B.Parent = Character2 | |
| 1274 | local W = Instance.new("Weld")
| |
| 1275 | W.Part0 = Limb | |
| 1276 | W.Part1 = B | |
| 1277 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1278 | W.Parent = Limb | |
| 1279 | end | |
| 1280 | local Bar = Instance.new("Part")
| |
| 1281 | Bar.TopSurface = 0 | |
| 1282 | Bar.BottomSurface = 0 | |
| 1283 | Bar.formFactor = "Symmetric" | |
| 1284 | Bar.Size = Vector3.new(1, 1, 1) | |
| 1285 | Bar.Transparency = 1 | |
| 1286 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
| 1287 | Bar.Parent = Character2 | |
| 1288 | local Weld = Instance.new("Weld")
| |
| 1289 | Weld.Part0 = Torso2 | |
| 1290 | Weld.Part1 = Bar | |
| 1291 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 1292 | Weld.Parent = Torso2 | |
| 1293 | end | |
| 1294 | Character2.Parent = Weapon | |
| 1295 | if movevector ~= Vector3.new() then | |
| 1296 | for i = 1, 10 do | |
| 1297 | Torso2.Velocity = movevector * Velocity | |
| 1298 | end | |
| 1299 | end | |
| 1300 | Character2.Name = "Corpse" | |
| 1301 | return Character2, Torso2 | |
| 1302 | end | |
| 1303 | ||
| 1304 | function Banish(Foe) | |
| 1305 | if Foe then | |
| 1306 | coroutine.resume(coroutine.create(function() | |
| 1307 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 1308 | table.insert(TOBANISH,Foe.Name) | |
| 1309 | printbye(Foe.Name) | |
| 1310 | --end | |
| 1311 | Foe.Archivable = true | |
| 1312 | local CLONE = Foe:Clone() | |
| 1313 | Foe:Destroy() | |
| 1314 | CLONE.Parent = Effects | |
| 1315 | CLONE:BreakJoints() | |
| 1316 | local MATERIALS = {"Glass","Neon"}
| |
| 1317 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1318 | if c:IsA("BasePart") then
| |
| 1319 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 1320 | CreateSound(340722848, c, 10, 1, false) | |
| 1321 | end | |
| 1322 | c.Anchored = true | |
| 1323 | c.Transparency = c.Transparency + 0.2 | |
| 1324 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1325 | c.Color = C3(0,1,0) | |
| 1326 | if c.ClassName == "MeshPart" then | |
| 1327 | c.TextureID = "" | |
| 1328 | end | |
| 1329 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1330 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1331 | end | |
| 1332 | if c:FindFirstChildOfClass("Decal") then
| |
| 1333 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 1334 | end | |
| 1335 | c.Name = "Banished" | |
| 1336 | c.CanCollide = false | |
| 1337 | else | |
| 1338 | c:remove() | |
| 1339 | end | |
| 1340 | end | |
| 1341 | local A = false | |
| 1342 | for i = 1, 35 do | |
| 1343 | if A == false then | |
| 1344 | A = true | |
| 1345 | elseif A == true then | |
| 1346 | A = false | |
| 1347 | end | |
| 1348 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1349 | if c:IsA("BasePart") then
| |
| 1350 | c.Anchored = true | |
| 1351 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1352 | c.Transparency = c.Transparency + 0.8/35 | |
| 1353 | if A == false then | |
| 1354 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1355 | elseif A == true then | |
| 1356 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1357 | end | |
| 1358 | end | |
| 1359 | end | |
| 1360 | Swait() | |
| 1361 | end | |
| 1362 | CLONE:remove() | |
| 1363 | end)) | |
| 1364 | end | |
| 1365 | end | |
| 1366 | ||
| 1367 | function PuddleOfBlood(Position, MaxDrop, Model, MaxSize) | |
| 1368 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model) | |
| 1369 | if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
| 1370 | if HITFLOOR.Name == "BloodPuddle" then | |
| 1371 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
| 1372 | if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then | |
| 1373 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1) | |
| 1374 | end | |
| 1375 | elseif HITFLOOR.Anchored == true then | |
| 1376 | do | |
| 1377 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Really red", "BloodPuddle", VT(2, 0, 2)) | |
| 1378 | BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 1379 | MakeForm(BLOOD, "Cyl") | |
| 1380 | coroutine.resume(coroutine.create(function() | |
| 1381 | Swait(75) | |
| 1382 | while true do | |
| 1383 | Swait() | |
| 1384 | BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02) | |
| 1385 | if BLOOD.Size.Z < 0.051 then | |
| 1386 | BLOOD:remove() | |
| 1387 | break | |
| 1388 | end | |
| 1389 | end | |
| 1390 | end)) | |
| 1391 | end | |
| 1392 | end | |
| 1393 | end | |
| 1394 | end | |
| 1395 | ||
| 1396 | function SprayBlood(POSITION, DIRECTION, BloodSize) | |
| 1397 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Really red", "BloodPuddle", VT(1, 1, 1), false) | |
| 1398 | BLOOD.CFrame = CF(POSITION) | |
| 1399 | MakeForm(BLOOD, "Ball") | |
| 1400 | local bv = Instance.new("BodyVelocity", BLOOD)
| |
| 1401 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1402 | bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25 | |
| 1403 | bv.Name = "MOVE" | |
| 1404 | Debris:AddItem(bv, 0.05) | |
| 1405 | coroutine.resume(coroutine.create(function() | |
| 1406 | local HASTOUCHEDGROUND = false | |
| 1407 | local HIT = BLOOD.Touched:Connect(function(hit) | |
| 1408 | if hit.Anchored == true then | |
| 1409 | HASTOUCHEDGROUND = true | |
| 1410 | - | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Lime green", "BloodPuddle", VT(2, 0, 2)) |
| 1410 | + | |
| 1411 | end | |
| 1412 | end) | |
| 1413 | wait(5) | |
| 1414 | if HASTOUCHEDGROUND == false then | |
| 1415 | BLOOD:remove() | |
| 1416 | end | |
| 1417 | end)) | |
| 1418 | end | |
| 1419 | function ApplyDamage(Humanoid, Damage, TorsoPart) | |
| 1420 | local defence = Instance.new("BoolValue", Humanoid.Parent)
| |
| 1421 | defence.Name = "HitBy" .. Player.Name | |
| 1422 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 1423 | Damage = Damage * DAMAGEMULTIPLIER | |
| 1424 | if Humanoid.Health ~= 0 then | |
| 1425 | local CritChance = MRANDOM(1, 100) | |
| 1426 | if Damage > Humanoid.Health then | |
| 1427 | Damage = math.ceil(Humanoid.Health) | |
| 1428 | if Damage == 0 then | |
| 1429 | Damage = 0.1 | |
| 1430 | - | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Lime green", "BloodPuddle", VT(1, 1, 1), false) |
| 1430 | + | |
| 1431 | end | |
| 1432 | Humanoid.Health = Humanoid.Health - Damage | |
| 1433 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
| 1434 | end | |
| 1435 | end | |
| 1436 | ||
| 1437 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 1438 | local CHILDREN = workspace:GetDescendants() | |
| 1439 | for index, CHILD in pairs(CHILDREN) do | |
| 1440 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1441 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1442 | if HUM then | |
| 1443 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1444 | if TORSO then | |
| 1445 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1446 | if ISBANISH == true then | |
| 1447 | Banish(CHILD) | |
| 1448 | else | |
| 1449 | if ISBANISH == "Gravity" then | |
| 1450 | HUM.PlatformStand = true | |
| 1451 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1452 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 1453 | grav.D = 15 | |
| 1454 | grav.P = 20000 | |
| 1455 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1456 | grav.position = TORSO.Position | |
| 1457 | grav.Name = "V3BanishForce"..Player.Name | |
| 1458 | else | |
| 1459 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 1460 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 1461 | end | |
| 1462 | else | |
| 1463 | HUM.PlatformStand = false | |
| 1464 | end | |
| 1465 | end | |
| 1466 | elseif ISBANISH == "Gravity" then | |
| 1467 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1468 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 1469 | HUM.PlatformStand = false | |
| 1470 | end | |
| 1471 | end | |
| 1472 | end | |
| 1473 | end | |
| 1474 | end | |
| 1475 | end | |
| 1476 | end | |
| 1477 | ||
| 1478 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping) | |
| 1479 | local dmg = math.random(min,max) | |
| 1480 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1481 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1482 | local body = v:GetChildren() | |
| 1483 | for part = 1, #body do | |
| 1484 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 1485 | if(body[part].Position - position).Magnitude < radius then | |
| 1486 | if v.ClassName == "Model" then | |
| 1487 | if v:FindFirstChildOfClass("Humanoid") then
| |
| 1488 | if CanBeDodgedByJumping == true then | |
| 1489 | if body[part].Position.Y < position.Y+5 then | |
| 1490 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
| |
| 1491 | end | |
| 1492 | else | |
| 1493 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
| |
| 1494 | end | |
| 1495 | local bv = Instance.new("BodyVelocity")
| |
| 1496 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1497 | bv.velocity = RootPart.CFrame.lookVector*maxstrength | |
| 1498 | bv.Parent = body[part] | |
| 1499 | Debris:AddItem(bv,0.2) | |
| 1500 | end | |
| 1501 | end | |
| 1502 | end | |
| 1503 | end | |
| 1504 | end | |
| 1505 | end | |
| 1506 | if v:FindFirstChild("HitBy"..Player.Name) then
| |
| 1507 | v:FindFirstChild("HitBy"..Player.Name):remove()
| |
| 1508 | end | |
| 1509 | end | |
| 1510 | end | |
| 1511 | ||
| 1512 | ||
| 1513 | --//=================================\\ | |
| 1514 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1515 | --\\=================================// | |
| 1516 | ||
| 1517 | function ShadowCloak() | |
| 1518 | if ANIM ~= "Fall" and ANIM ~= "Jump" then | |
| 1519 | ATTACK = true | |
| 1520 | Rooted = false | |
| 1521 | UNANCHOR = false | |
| 1522 | FADERS = false | |
| 1523 | coroutine.resume(coroutine.create(function() | |
| 1524 | coroutine.resume(coroutine.create(function() | |
| 1525 | for i=1, 25 do | |
| 1526 | Swait() | |
| 1527 | RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0) | |
| 1528 | end | |
| 1529 | end)) | |
| 1530 | repeat | |
| 1531 | Swait() | |
| 1532 | BLADE.Transparency = Torso.Transparency | |
| 1533 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1534 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed) | |
| 1535 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1536 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1537 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed) | |
| 1538 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed) | |
| 1539 | until ATTACK == false | |
| 1540 | end)) | |
| 1541 | WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
| |
| 1542 | WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
| |
| 1543 | for i = 1, 50 do | |
| 1544 | Swait() | |
| 1545 | CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
| 1546 | for index, CHILD in pairs(Character:GetChildren()) do | |
| 1547 | if CHILD:IsA("BasePart") then
| |
| 1548 | CHILD.Transparency = CHILD.Transparency + 1/50 | |
| 1549 | elseif CHILD:IsA("Accessory") then
| |
| 1550 | CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50 | |
| 1551 | end | |
| 1552 | end | |
| 1553 | end | |
| 1554 | for i = 1, 25 do | |
| 1555 | Swait() | |
| 1556 | CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
| 1557 | end | |
| 1558 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0)) | |
| 1559 | for i = 1, 5 do | |
| 1560 | WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
| |
| 1561 | end | |
| 1562 | ApplyAoE(Torso.Position,15,12,22,150,false) | |
| 1563 | CreateSound(331666014,Torso,5,1,false) | |
| 1564 | for i = 1, 12 do | |
| 1565 | Swait() | |
| 1566 | CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
| 1567 | end | |
| 1568 | for i = 1, 50 do | |
| 1569 | Swait() | |
| 1570 | CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
| 1571 | for index, CHILD in pairs(Character:GetChildren()) do | |
| 1572 | if CHILD:IsA("BasePart") then
| |
| 1573 | CHILD.Transparency = CHILD.Transparency - 1/50 | |
| 1574 | elseif CHILD:IsA("Accessory") then
| |
| 1575 | CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50 | |
| 1576 | end | |
| 1577 | end | |
| 1578 | end | |
| 1579 | UNANCHOR = true | |
| 1580 | ATTACK = false | |
| 1581 | Rooted = false | |
| 1582 | FADERS = true | |
| 1583 | end | |
| 1584 | end | |
| 1585 | ||
| 1586 | function Neck_Snap() | |
| 1587 | ATTACK = true | |
| 1588 | Rooted = false | |
| 1589 | local TARGET, HUM, WLD | |
| 1590 | local HIT = RightArm.Touched:Connect(function(hit) | |
| 1591 | if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1592 | local H = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1593 | if H.Health > 0 then | |
| 1594 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1595 | if TORSO then | |
| 1596 | HUM = H | |
| 1597 | TARGET = TORSO | |
| 1598 | H.PlatformStand = true | |
| 1599 | CreateSound("260411131", TORSO, 10, 1)
| |
| 1600 | WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1601 | end | |
| 1602 | end | |
| 1603 | end | |
| 1604 | end) | |
| 1605 | for i = 0, 1, 0.1 / Animation_Speed do | |
| 1606 | Swait() | |
| 1607 | if TARGET ~= nil then | |
| 1608 | break | |
| 1609 | end | |
| 1610 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
| 1611 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
| 1612 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1613 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1614 | if ANIM == "Idle" then | |
| 1615 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1616 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1617 | elseif ANIM == "Walk" then | |
| 1618 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1619 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1620 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1621 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1622 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1623 | end | |
| 1624 | end | |
| 1625 | HIT:disconnect() | |
| 1626 | if TARGET ~= nil then | |
| 1627 | if TARGET.Name == "Torso" then | |
| 1628 | for i = 0, 2, 0.1 / Animation_Speed do | |
| 1629 | Swait() | |
| 1630 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1631 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1632 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1633 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1634 | if ANIM == "Idle" then | |
| 1635 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1636 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1637 | elseif ANIM == "Walk" then | |
| 1638 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1639 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1640 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1641 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1642 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1643 | end | |
| 1644 | end | |
| 1645 | WLD:remove() | |
| 1646 | local HEAD = TARGET.Parent:FindFirstChild("Head")
| |
| 1647 | if HEAD then | |
| 1648 | UNANCHOR = false | |
| 1649 | RootPart.Anchored = true | |
| 1650 | local HD = HEAD:Clone() | |
| 1651 | HD.Name = "FakeHead" | |
| 1652 | for i = 1, 7 do | |
| 1653 | SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15) | |
| 1654 | end | |
| 1655 | local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0) | |
| 1656 | local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1657 | HD.Parent = RAGDOLL | |
| 1658 | CreateSound("264486467", RAGTORSO, 10, 1)
| |
| 1659 | local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1660 | for i = 0, 2, 0.1 / Animation_Speed do | |
| 1661 | Swait() | |
| 1662 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1663 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1664 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1665 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1666 | if ANIM == "Idle" then | |
| 1667 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1668 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1669 | elseif ANIM == "Walk" then | |
| 1670 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1671 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1672 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1673 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1674 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1675 | end | |
| 1676 | end | |
| 1677 | HEADWELD:remove() | |
| 1678 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
| 1679 | Swait() | |
| 1680 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1681 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1682 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1683 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1684 | if ANIM == "Idle" then | |
| 1685 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1686 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1687 | elseif ANIM == "Walk" then | |
| 1688 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1689 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1690 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1691 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1692 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1693 | end | |
| 1694 | end | |
| 1695 | CreateSound("907333406", Torso, 10, 1)
| |
| 1696 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
| 1697 | Swait() | |
| 1698 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1699 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1700 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1701 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1702 | if ANIM == "Idle" then | |
| 1703 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1704 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1705 | elseif ANIM == "Walk" then | |
| 1706 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1707 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1708 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1709 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1710 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1711 | end | |
| 1712 | end | |
| 1713 | RAGWELD:remove() | |
| 1714 | local bv = Instance.new("BodyVelocity")
| |
| 1715 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1716 | bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75 | |
| 1717 | bv.Parent = RAGTORSO | |
| 1718 | Debris:AddItem(bv, 0.05) | |
| 1719 | Debris:AddItem(RAGDOLL, 5) | |
| 1720 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
| 1721 | Swait() | |
| 1722 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1723 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1724 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1725 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1726 | if ANIM == "Idle" then | |
| 1727 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1728 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1729 | elseif ANIM == "Walk" then | |
| 1730 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1731 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1732 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1733 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1734 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1735 | end | |
| 1736 | end | |
| 1737 | UNANCHOR = true | |
| 1738 | RootPart.Anchored = false | |
| 1739 | end | |
| 1740 | else | |
| 1741 | UNANCHOR = false | |
| 1742 | RootPart.Anchored = true | |
| 1743 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
| 1744 | Swait() | |
| 1745 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1746 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1747 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1748 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1749 | if ANIM == "Idle" then | |
| 1750 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1751 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1752 | elseif ANIM == "Walk" then | |
| 1753 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1754 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1755 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1756 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1757 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1758 | end | |
| 1759 | end | |
| 1760 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
| 1761 | Swait() | |
| 1762 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1763 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1766 | if ANIM == "Idle" then | |
| 1767 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1768 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1769 | elseif ANIM == "Walk" then | |
| 1770 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1771 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1772 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1773 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1774 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1775 | end | |
| 1776 | end | |
| 1777 | WLD:remove() | |
| 1778 | TARGET.Parent:BreakJoints() | |
| 1779 | for _, c in pairs(TARGET.Parent:GetChildren()) do | |
| 1780 | if c:IsA("BasePart") then
| |
| 1781 | local bv = Instance.new("BodyVelocity")
| |
| 1782 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1783 | bv.velocity = CF(Torso.Position, c.Position).lookVector * 75 | |
| 1784 | bv.Parent = c | |
| 1785 | Debris:AddItem(bv, 0.05) | |
| 1786 | end | |
| 1787 | end | |
| 1788 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
| 1789 | Swait() | |
| 1790 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1791 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1792 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1793 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1794 | if ANIM == "Idle" then | |
| 1795 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1796 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1797 | elseif ANIM == "Walk" then | |
| 1798 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1799 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1800 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
| 1801 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1802 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1803 | end | |
| 1804 | end | |
| 1805 | UNANCHOR = true | |
| 1806 | RootPart.Anchored = false | |
| 1807 | end | |
| 1808 | end | |
| 1809 | ATTACK = false | |
| 1810 | Rooted = false | |
| 1811 | end | |
| 1812 | ||
| 1813 | function Banisher_Bullet() | |
| 1814 | ATTACK = true | |
| 1815 | Rooted = false | |
| 1816 | for i=0, 0.4, 0.1 / Animation_Speed do | |
| 1817 | Swait() | |
| 1818 | turnto(Mouse.Hit.p) | |
| 1819 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 1820 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1821 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1822 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1823 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1824 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1825 | end | |
| 1826 | repeat | |
| 1827 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 1828 | Swait() | |
| 1829 | turnto(Mouse.Hit.p) | |
| 1830 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 1831 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1832 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1833 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1834 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1835 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1836 | end | |
| 1837 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
| 1838 | SpawnTrail(Hole2.Position,POS) | |
| 1839 | if HIT ~= nil then | |
| 1840 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1841 | Banish(HIT.Parent) | |
| 1842 | end | |
| 1843 | end | |
| 1844 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 1845 | SpawnTrail(Hole.Position,POS) | |
| 1846 | if HIT ~= nil then | |
| 1847 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1848 | Banish(HIT.Parent) | |
| 1849 | end | |
| 1850 | end | |
| 1851 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1852 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1853 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1854 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1855 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1856 | Swait() | |
| 1857 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 1858 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1859 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1860 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1861 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1862 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1863 | end | |
| 1864 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(5,5,5).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1865 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1866 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1867 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 1868 | until KEYHOLD == false | |
| 1869 | ATTACK = false | |
| 1870 | Rooted = false | |
| 1871 | end | |
| 1872 | ||
| 1873 | function AttackTemplate() | |
| 1874 | ATTACK = true | |
| 1875 | Rooted = false | |
| 1876 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1877 | Swait() | |
| 1878 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1879 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1880 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1881 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1882 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1883 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1884 | end | |
| 1885 | ATTACK = false | |
| 1886 | Rooted = false | |
| 1887 | end | |
| 1888 | ||
| 1889 | --//=================================\\ | |
| 1890 | --|| ASSIGN THINGS TO KEYS | |
| 1891 | --\\=================================// | |
| 1892 | ||
| 1893 | function MouseDown(Mouse) | |
| 1894 | if ATTACK == false then | |
| 1895 | end | |
| 1896 | end | |
| 1897 | ||
| 1898 | function MouseUp(Mouse) | |
| 1899 | HOLD = false | |
| 1900 | end | |
| 1901 | ||
| 1902 | function KeyDown(Key) | |
| 1903 | KEYHOLD = true | |
| 1904 | if Key == "z" and ATTACK == false then | |
| 1905 | Banisher_Bullet() | |
| 1906 | end | |
| 1907 | ||
| 1908 | if Key == "b" and ATTACK == false then | |
| 1909 | Neck_Snap() | |
| 1910 | end | |
| 1911 | ||
| 1912 | if Key == "c" and ATTACK == false then | |
| 1913 | ShadowCloak() | |
| 1914 | end | |
| 1915 | ||
| 1916 | if Key == "v" and ATTACK == false then | |
| 1917 | end | |
| 1918 | ||
| 1919 | if Key == "x" and ATTACK == false then | |
| 1920 | end | |
| 1921 | end | |
| 1922 | ||
| 1923 | function KeyUp(Key) | |
| 1924 | KEYHOLD = false | |
| 1925 | end | |
| 1926 | ||
| 1927 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1928 | MouseDown(NEWKEY) | |
| 1929 | end) | |
| 1930 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1931 | MouseUp(NEWKEY) | |
| 1932 | end) | |
| 1933 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1934 | KeyDown(NEWKEY) | |
| 1935 | end) | |
| 1936 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1937 | KeyUp(NEWKEY) | |
| 1938 | end) | |
| 1939 | ||
| 1940 | --//=================================\\ | |
| 1941 | --\\=================================// | |
| 1942 | ||
| 1943 | ||
| 1944 | function unanchor() | |
| 1945 | if UNANCHOR == true then | |
| 1946 | g = Character:GetChildren() | |
| 1947 | for i = 1, #g do | |
| 1948 | if g[i].ClassName == "Part" then | |
| 1949 | g[i].Anchored = false | |
| 1950 | end | |
| 1951 | end | |
| 1952 | end | |
| 1953 | end | |
| 1954 | ||
| 1955 | ||
| 1956 | --//=================================\\ | |
| 1957 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1958 | --\\=================================// | |
| 1959 | ||
| 1960 | Humanoid.Changed:connect(function(Jump) | |
| 1961 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1962 | Humanoid.Jump = false | |
| 1963 | end | |
| 1964 | end) | |
| 1965 | ||
| 1966 | local CONNECT = nil | |
| 1967 | ||
| 1968 | while true do | |
| 1969 | Swait() | |
| 1970 | ANIMATE.Parent = nil | |
| 1971 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 1972 | Humanoid = IT("Humanoid",Character)
| |
| 1973 | end | |
| 1974 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1975 | v:Stop(); | |
| 1976 | end | |
| 1977 | SINE = SINE + CHANGE | |
| 1978 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1979 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1980 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1981 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1982 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1983 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1984 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1985 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1986 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1987 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1988 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1989 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1990 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1991 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1992 | end | |
| 1993 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1994 | ANIM = "Jump" | |
| 1995 | if ATTACK == false then | |
| 1996 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 1997 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1998 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1999 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2000 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 2001 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 2002 | end | |
| 2003 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2004 | ANIM = "Fall" | |
| 2005 | if ATTACK == false then | |
| 2006 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 2007 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2008 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2009 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2010 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 2011 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 2012 | end | |
| 2013 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2014 | ANIM = "Idle" | |
| 2015 | if ATTACK == false then | |
| 2016 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 2017 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2018 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2019 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2020 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2021 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2022 | end | |
| 2023 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2024 | ANIM = "Walk" | |
| 2025 | if ATTACK == false then | |
| 2026 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
| 2027 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2028 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2029 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2030 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 2031 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 2032 | end | |
| 2033 | end | |
| 2034 | unanchor() | |
| 2035 | Humanoid.MaxHealth = "inf" | |
| 2036 | Humanoid.Health = "inf" | |
| 2037 | if Rooted == false then | |
| 2038 | Disable_Jump = false | |
| 2039 | Humanoid.WalkSpeed = Speed | |
| 2040 | elseif Rooted == true then | |
| 2041 | Disable_Jump = true | |
| 2042 | Humanoid.WalkSpeed = 0 | |
| 2043 | end | |
| 2044 | sick.Parent = Torso | |
| 2045 | sick:resume() | |
| 2046 | sick.Volume = 5 | |
| 2047 | sick.Pitch = 1 | |
| 2048 | sick.SoundId = "rbxassetid://933032912" | |
| 2049 | sick.Name = "BanishV3Music" | |
| 2050 | end | |
| 2051 | ||
| 2052 | --//=================================\\ | |
| 2053 | --\\=================================// | |
| 2054 | ||
| 2055 | ||
| 2056 | ||
| 2057 | ||
| 2058 | ||
| 2059 | --//====================================================\\-- | |
| 2060 | --|| END OF SCRIPT | |
| 2061 | --\\====================================================//-- |