SHOW:
|
|
- or go back to the newest paste.
| 1 | --------------- | |
| 2 | --StarzoZero's Jevil-- | |
| 3 | ---------------------------------------------------------------- | |
| 4 | print([[ | |
| 5 | --made by Makhail07 | |
| 6 | --FE code by Mokiros | |
| 7 | --Edited by StarzoZero-- | |
| 8 | --Discord: StarzoZero#0778 | |
| 9 | -------------------------------- | |
| 10 | DEEZ BISCUITS | |
| 11 | I would say don't leak but it's already leaked | |
| 12 | Enjoy my edit | |
| 13 | -------------------------------- | |
| 14 | ]]) | |
| 15 | ||
| 16 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 17 | local Player,game,owner = owner,game | |
| 18 | local RealPlayer = Player | |
| 19 | do | |
| 20 | local rp = RealPlayer | |
| 21 | script.Parent = rp.Character | |
| 22 | ||
| 23 | --RemoteEvent for communicating | |
| 24 | local Event = Instance.new("RemoteEvent")
| |
| 25 | Event.Name = "UserInput_Event" | |
| 26 | ||
| 27 | --Fake event to make stuff like Mouse.KeyDown work | |
| 28 | local function fakeEvent() | |
| 29 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 30 | t.connect = t.Connect | |
| 31 | return t | |
| 32 | end | |
| 33 | ||
| 34 | --Creating fake input objects with fake variables | |
| 35 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 36 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 37 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 38 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 39 | end} | |
| 40 | --Merged 2 functions into one by checking amount of arguments | |
| 41 | CAS.UnbindAction = CAS.BindAction | |
| 42 | ||
| 43 | --This function will trigger the events that have been :Connect()'ed | |
| 44 | local function te(self,ev,...) | |
| 45 | local t = m[ev] | |
| 46 | if t and t._fakeEvent then | |
| 47 | for _,f in pairs(t.Functions) do | |
| 48 | f(...) | |
| 49 | end | |
| 50 | end | |
| 51 | end | |
| 52 | m.TrigEvent = te | |
| 53 | UIS.TrigEvent = te | |
| 54 | ||
| 55 | Event.OnServerEvent:Connect(function(plr,io) | |
| 56 | if plr~=rp then return end | |
| 57 | m.Target = io.Target | |
| 58 | m.Hit = io.Hit | |
| 59 | if not io.isMouse then | |
| 60 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 61 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 62 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 63 | end | |
| 64 | for _,t in pairs(CAS.Actions) do | |
| 65 | for _,k in pairs(t.Keys) do | |
| 66 | if k==io.KeyCode then | |
| 67 | t.Function(t.Name,io.UserInputState,io) | |
| 68 | end | |
| 69 | end | |
| 70 | end | |
| 71 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 72 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 73 | end | |
| 74 | end) | |
| 75 | Event.Parent = NLS([==[ | |
| 76 | local Player = game:GetService("Players").LocalPlayer
| |
| 77 | local Event = script:WaitForChild("UserInput_Event")
| |
| 78 | ||
| 79 | local Mouse = Player:GetMouse() | |
| 80 | local UIS = game:GetService("UserInputService")
| |
| 81 | local input = function(io,a) | |
| 82 | if a then return end | |
| 83 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 84 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 85 | end | |
| 86 | UIS.InputBegan:Connect(input) | |
| 87 | UIS.InputEnded:Connect(input) | |
| 88 | ||
| 89 | local h,t | |
| 90 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 91 | --If player is not moving their mouse, client won't fire events | |
| 92 | while wait(1/30) do | |
| 93 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 94 | h,t=Mouse.Hit,Mouse.Target | |
| 95 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 96 | end | |
| 97 | end]==],Player.Character) | |
| 98 | ||
| 99 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 100 | --Real game object | |
| 101 | local _rg = game | |
| 102 | ||
| 103 | --Metatable for fake service | |
| 104 | local fsmt = {
| |
| 105 | __index = function(self,k) | |
| 106 | local s = rawget(self,"_RealService") | |
| 107 | if s then return s[k] end | |
| 108 | end, | |
| 109 | __newindex = function(self,k,v) | |
| 110 | local s = rawget(self,"_RealService") | |
| 111 | if s then s[k]=v end | |
| 112 | end, | |
| 113 | __call = function(self,...) | |
| 114 | local s = rawget(self,"_RealService") | |
| 115 | if s then return s(...) end | |
| 116 | end | |
| 117 | } | |
| 118 | local function FakeService(t,RealService) | |
| 119 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 120 | return setmetatable(t,fsmt) | |
| 121 | end | |
| 122 | ||
| 123 | --Fake game object | |
| 124 | local g = {
| |
| 125 | GetService = function(self,s) | |
| 126 | return self[s] | |
| 127 | end, | |
| 128 | Players = FakeService({
| |
| 129 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 130 | },"Players"), | |
| 131 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 132 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 133 | } | |
| 134 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 135 | g.service = g.GetService | |
| 136 | ||
| 137 | g.RunService = FakeService({
| |
| 138 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 139 | BindToRenderStep = function(self,name,_,fun) | |
| 140 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 141 | end, | |
| 142 | UnbindFromRenderStep = function(self,name) | |
| 143 | self._btrs[name]:Disconnect() | |
| 144 | end, | |
| 145 | },"RunService") | |
| 146 | ||
| 147 | setmetatable(g,{
| |
| 148 | __index=function(self,s) | |
| 149 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 150 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 151 | end, | |
| 152 | __newindex = fsmt.__newindex, | |
| 153 | __call = fsmt.__call | |
| 154 | }) | |
| 155 | --Changing owner to fake player object to support owner:GetMouse() | |
| 156 | game,owner = g,g.Players.LocalPlayer | |
| 157 | end | |
| 158 | ||
| 159 | Player = owner | |
| 160 | PlayerGui = Player.PlayerGui | |
| 161 | Cam = workspace.CurrentCamera | |
| 162 | Backpack = Player.Backpack | |
| 163 | Character = Player.Character | |
| 164 | Humanoid = Character.Humanoid | |
| 165 | Mouse = Player:GetMouse() | |
| 166 | RootPart = Character["HumanoidRootPart"] | |
| 167 | Torso = Character["Torso"] | |
| 168 | Head = Character["Head"] | |
| 169 | RightArm = Character["Right Arm"] | |
| 170 | LeftArm = Character["Left Arm"] | |
| 171 | RightLeg = Character["Right Leg"] | |
| 172 | LeftLeg = Character["Left Leg"] | |
| 173 | RootJoint = RootPart["RootJoint"] | |
| 174 | Neck = Torso["Neck"] | |
| 175 | RightShoulder = Torso["Right Shoulder"] | |
| 176 | LeftShoulder = Torso["Left Shoulder"] | |
| 177 | RightHip = Torso["Right Hip"] | |
| 178 | LeftHip = Torso["Left Hip"] | |
| 179 | ||
| 180 | Character = Player.Character | |
| 181 | Humanoid = Character.Humanoid | |
| 182 | ||
| 183 | --------- | |
| 184 | plr = game.Players.LocalPlayer | |
| 185 | chara = plr.Character | |
| 186 | mouse = plr:GetMouse() | |
| 187 | Create = Instance.new | |
| 188 | Huge = math.huge | |
| 189 | ||
| 190 | ||
| 191 | local shadowhead = Create("Part",chara.Head)
| |
| 192 | shadowhead.BrickColor = BrickColor.new("Black")
| |
| 193 | shadowhead.Size = Vector3.new(1.2, 0.6, 1) | |
| 194 | shadowhead.CanCollide = false | |
| 195 | local shadowheadmesh = Create("SpecialMesh",shadowhead)
| |
| 196 | shadowheadmesh.MeshType = "Head" | |
| 197 | shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26) | |
| 198 | local weld2 = Create("Weld",shadowhead)
| |
| 199 | weld2.Part0 = shadowhead | |
| 200 | weld2.Part1 = chara.Head | |
| 201 | weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 202 | ||
| 203 | Player = game:GetService("Players").LocalPlayer
| |
| 204 | PlayerGui = Player.PlayerGui | |
| 205 | Cam = workspace.CurrentCamera | |
| 206 | Backpack = Player.Backpack | |
| 207 | Character = Player.Character | |
| 208 | char = Player.Character | |
| 209 | Humanoid = Character.Humanoid | |
| 210 | Mouse = Player:GetMouse() | |
| 211 | RootPart = Character["HumanoidRootPart"] | |
| 212 | Torso = Character["Torso"] | |
| 213 | Head = Character["Head"] | |
| 214 | RightArm = Character["Right Arm"] | |
| 215 | LeftArm = Character["Left Arm"] | |
| 216 | RightLeg = Character["Right Leg"] | |
| 217 | LeftLeg = Character["Left Leg"] | |
| 218 | RootJoint = RootPart["RootJoint"] | |
| 219 | Neck = Torso["Neck"] | |
| 220 | RightShoulder = Torso["Right Shoulder"] | |
| 221 | LeftShoulder = Torso["Left Shoulder"] | |
| 222 | RightHip = Torso["Right Hip"] | |
| 223 | LeftHip = Torso["Left Hip"] | |
| 224 | ||
| 225 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
| 226 | Head.face.Texture = Orin | |
| 227 | function weld(a, b, acf) | |
| 228 | local w = Instance.new("Weld", a)
| |
| 229 | w.Part0 = a | |
| 230 | w.Part1 = b | |
| 231 | w.C0 = acf | |
| 232 | end | |
| 233 | ||
| 234 | local righteyebrickcolor = "Institutional white" | |
| 235 | local reye = Instance.new("Part", char)
| |
| 236 | reye.CanCollide = false | |
| 237 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 238 | reye.Material = "Neon" | |
| 239 | reye.Size = Vector3.new(.25,.35,.25) | |
| 240 | weld(reye, char.Head, CFrame.new(-0.12,-0.2,0.55), CFrame.new(1,0,0)) | |
| 241 | m1 = Instance.new("SpecialMesh", reye)
| |
| 242 | m1.MeshType = "Sphere" | |
| 243 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 244 | reye.Locked = true | |
| 245 | reye.Name = "re" | |
| 246 | ||
| 247 | ||
| 248 | local righteyebrickcolor = "Institutional white" | |
| 249 | local reye = Instance.new("Part", char)
| |
| 250 | reye.CanCollide = false | |
| 251 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 252 | reye.Material = "Neon" | |
| 253 | reye.Size = Vector3.new(.25,.35,.15) | |
| 254 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
| 255 | m1 = Instance.new("SpecialMesh", reye)
| |
| 256 | m1.MeshType = "Sphere" | |
| 257 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 258 | reye.Locked = true | |
| 259 | reye.Name = "re" | |
| 260 | -------------------------------- | |
| 261 | char.Head.face.Texture = "rbxassetid://241553801" | |
| 262 | -------------------------------- | |
| 263 | ||
| 264 | ------------------------------------------------------- | |
| 265 | ||
| 266 | local FavIDs = {
| |
| 267 | 340106355, --Nefl Crystals | |
| 268 | 927529620, --Dimension | |
| 269 | 876981900, --Fantasy | |
| 270 | 398987889, --Ordinary Days | |
| 271 | 1117396305, --Oh wait, it's you. | |
| 272 | 885996042, --Action Winter Journey | |
| 273 | 919231299, --Sprawling Idiot Effigy | |
| 274 | 743466274, --Good Day Sunshine | |
| 275 | 727411183, --Knife Fight | |
| 276 | 1402748531, --The Earth Is Counting On You! | |
| 277 | 595230126 --Robot Language | |
| 278 | } | |
| 279 | ||
| 280 | ||
| 281 | ||
| 282 | --The reality of my life isn't real but a Universe -makhail07 | |
| 283 | wait(0.2) | |
| 284 | local plr = game:service'Players'.LocalPlayer | |
| 285 | print('Local User is '..plr.Name)
| |
| 286 | print('SCRIPTNAME Loaded')
| |
| 287 | print('SCRIPT DESCRIPTION')
| |
| 288 | local char = plr.Character | |
| 289 | local hum = char.Humanoid | |
| 290 | local hed = char.Head | |
| 291 | local root = char.HumanoidRootPart | |
| 292 | local rootj = root.RootJoint | |
| 293 | local tors = char.Torso | |
| 294 | local ra = char["Right Arm"] | |
| 295 | local la = char["Left Arm"] | |
| 296 | local rl = char["Right Leg"] | |
| 297 | local ll = char["Left Leg"] | |
| 298 | local neck = tors["Neck"] | |
| 299 | local mouse = plr:GetMouse() | |
| 300 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 301 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 302 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 303 | local maincolor = BrickColor.new("Storm blue")
| |
| 304 | ||
| 305 | ------------------------------------------------------- | |
| 306 | --Start Good Stuff-- | |
| 307 | ------------------------------------------------------- | |
| 308 | cam = game.Workspace.CurrentCamera | |
| 309 | CF = CFrame.new | |
| 310 | angles = CFrame.Angles | |
| 311 | attack = false | |
| 312 | Euler = CFrame.fromEulerAnglesXYZ | |
| 313 | Rad = math.rad | |
| 314 | IT = Instance.new | |
| 315 | BrickC = BrickColor.new | |
| 316 | Cos = math.cos | |
| 317 | Acos = math.acos | |
| 318 | Sin = math.sin | |
| 319 | Asin = math.asin | |
| 320 | Abs = math.abs | |
| 321 | Mrandom = math.random | |
| 322 | Floor = math.floor | |
| 323 | ------------------------------------------------------- | |
| 324 | --End Good Stuff-- | |
| 325 | ------------------------------------------------------- | |
| 326 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 327 | RSH, LSH = nil, nil | |
| 328 | RW = Instance.new("Weld")
| |
| 329 | LW = Instance.new("Weld")
| |
| 330 | RH = tors["Right Hip"] | |
| 331 | LH = tors["Left Hip"] | |
| 332 | RSH = tors["Right Shoulder"] | |
| 333 | LSH = tors["Left Shoulder"] | |
| 334 | RSH.Parent = nil | |
| 335 | LSH.Parent = nil | |
| 336 | RW.Name = "RW" | |
| 337 | RW.Part0 = tors | |
| 338 | RW.C0 = CF(1.5, 0.5, 0) | |
| 339 | RW.C1 = CF(0, 0.5, 0) | |
| 340 | RW.Part1 = ra | |
| 341 | RW.Parent = tors | |
| 342 | LW.Name = "LW" | |
| 343 | LW.Part0 = tors | |
| 344 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 345 | LW.C1 = CF(0, 0.5, 0) | |
| 346 | LW.Part1 = la | |
| 347 | LW.Parent = tors | |
| 348 | Effects = {}
| |
| 349 | ------------------------------------------------------- | |
| 350 | --Start HeartBeat-- | |
| 351 | ------------------------------------------------------- | |
| 352 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 353 | ArtificialHB.Name = "Heartbeat" | |
| 354 | script:WaitForChild("Heartbeat")
| |
| 355 | ||
| 356 | frame = 1 / 60 | |
| 357 | tf = 0 | |
| 358 | allowframeloss = false | |
| 359 | tossremainder = false | |
| 360 | ||
| 361 | ||
| 362 | lastframe = tick() | |
| 363 | script.Heartbeat:Fire() | |
| 364 | ||
| 365 | ||
| 366 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 367 | tf = tf + s | |
| 368 | if tf >= frame then | |
| 369 | if allowframeloss then | |
| 370 | script.Heartbeat:Fire() | |
| 371 | lastframe = tick() | |
| 372 | else | |
| 373 | for i = 1, math.floor(tf / frame) do | |
| 374 | script.Heartbeat:Fire() | |
| 375 | end | |
| 376 | lastframe = tick() | |
| 377 | end | |
| 378 | if tossremainder then | |
| 379 | tf = 0 | |
| 380 | else | |
| 381 | tf = tf - frame * math.floor(tf / frame) | |
| 382 | end | |
| 383 | end | |
| 384 | end) | |
| 385 | ------------------------------------------------------- | |
| 386 | --End HeartBeat-- | |
| 387 | ------------------------------------------------------- | |
| 388 | ||
| 389 | ------------------------------------------------------- | |
| 390 | --Start Important Functions-- | |
| 391 | ------------------------------------------------------- | |
| 392 | function swait(num) | |
| 393 | if num == 0 or num == nil then | |
| 394 | game:service("RunService").Stepped:wait(0)
| |
| 395 | else | |
| 396 | for i = 0, num do | |
| 397 | game:service("RunService").Stepped:wait(0)
| |
| 398 | end | |
| 399 | end | |
| 400 | end | |
| 401 | function thread(f) | |
| 402 | coroutine.resume(coroutine.create(f)) | |
| 403 | end | |
| 404 | function clerp(a, b, t) | |
| 405 | local qa = {
| |
| 406 | QuaternionFromCFrame(a) | |
| 407 | } | |
| 408 | local qb = {
| |
| 409 | QuaternionFromCFrame(b) | |
| 410 | } | |
| 411 | local ax, ay, az = a.x, a.y, a.z | |
| 412 | local bx, by, bz = b.x, b.y, b.z | |
| 413 | local _t = 1 - t | |
| 414 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 415 | end | |
| 416 | function QuaternionFromCFrame(cf) | |
| 417 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 418 | local trace = m00 + m11 + m22 | |
| 419 | if trace > 0 then | |
| 420 | local s = math.sqrt(1 + trace) | |
| 421 | local recip = 0.5 / s | |
| 422 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 423 | else | |
| 424 | local i = 0 | |
| 425 | if m00 < m11 then | |
| 426 | i = 1 | |
| 427 | end | |
| 428 | if m22 > (i == 0 and m00 or m11) then | |
| 429 | i = 2 | |
| 430 | end | |
| 431 | if i == 0 then | |
| 432 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 433 | local recip = 0.5 / s | |
| 434 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 435 | elseif i == 1 then | |
| 436 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 437 | local recip = 0.5 / s | |
| 438 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 439 | elseif i == 2 then | |
| 440 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 441 | local recip = 0.5 / s | |
| 442 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 443 | end | |
| 444 | end | |
| 445 | end | |
| 446 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 447 | local xs, ys, zs = x + x, y + y, z + z | |
| 448 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 449 | local xx = x * xs | |
| 450 | local xy = x * ys | |
| 451 | local xz = x * zs | |
| 452 | local yy = y * ys | |
| 453 | local yz = y * zs | |
| 454 | local zz = z * zs | |
| 455 | 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)) | |
| 456 | end | |
| 457 | function QuaternionSlerp(a, b, t) | |
| 458 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 459 | local startInterp, finishInterp | |
| 460 | if cosTheta >= 1.0E-4 then | |
| 461 | if 1 - cosTheta > 1.0E-4 then | |
| 462 | local theta = math.acos(cosTheta) | |
| 463 | local invSinTheta = 1 / Sin(theta) | |
| 464 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 465 | finishInterp = Sin(t * theta) * invSinTheta | |
| 466 | else | |
| 467 | startInterp = 1 - t | |
| 468 | finishInterp = t | |
| 469 | end | |
| 470 | elseif 1 + cosTheta > 1.0E-4 then | |
| 471 | local theta = math.acos(-cosTheta) | |
| 472 | local invSinTheta = 1 / Sin(theta) | |
| 473 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 474 | finishInterp = Sin(t * theta) * invSinTheta | |
| 475 | else | |
| 476 | startInterp = t - 1 | |
| 477 | finishInterp = t | |
| 478 | end | |
| 479 | 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 | |
| 480 | end | |
| 481 | function rayCast(Position, Direction, Range, Ignore) | |
| 482 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 483 | end | |
| 484 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 485 | local Create = RbxUtility.Create | |
| 486 | ||
| 487 | ------------------------------------------------------- | |
| 488 | --Start Damage Function-- | |
| 489 | ------------------------------------------------------- | |
| 490 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 491 | if hit.Parent == nil then | |
| 492 | return | |
| 493 | end | |
| 494 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 495 | for _, v in pairs(hit.Parent:children()) do | |
| 496 | if v:IsA("Humanoid") then
| |
| 497 | h = v | |
| 498 | end | |
| 499 | end | |
| 500 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 501 | ||
| 502 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 503 | end | |
| 504 | ||
| 505 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 506 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 507 | if hit.Parent.DebounceHit.Value == true then | |
| 508 | return | |
| 509 | end | |
| 510 | end | |
| 511 | if insta == true then | |
| 512 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 513 | end | |
| 514 | local c = Create("ObjectValue"){
| |
| 515 | Name = "creator", | |
| 516 | Value = game:service("Players").LocalPlayer,
| |
| 517 | Parent = h, | |
| 518 | } | |
| 519 | game:GetService("Debris"):AddItem(c, .5)
| |
| 520 | if HitSound ~= nil and HitPitch ~= nil then | |
| 521 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 522 | end | |
| 523 | local Damage = math.random(minim, maxim) | |
| 524 | local blocked = false | |
| 525 | local block = hit.Parent:findFirstChild("Block")
| |
| 526 | if block ~= nil then | |
| 527 | if block.className == "IntValue" then | |
| 528 | if block.Value > 0 then | |
| 529 | blocked = true | |
| 530 | block.Value = block.Value - 1 | |
| 531 | print(block.Value) | |
| 532 | end | |
| 533 | end | |
| 534 | end | |
| 535 | if blocked == false then | |
| 536 | h.Health = h.Health - Damage | |
| 537 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 538 | else | |
| 539 | h.Health = h.Health - (Damage / 2) | |
| 540 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 541 | end | |
| 542 | if Type == "Knockdown" then | |
| 543 | local hum = hit.Parent.Humanoid | |
| 544 | hum.PlatformStand = true | |
| 545 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 546 | swait(1) | |
| 547 | HHumanoid.PlatformStand = false | |
| 548 | end), hum) | |
| 549 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 550 | local bodvol = Create("BodyVelocity"){
| |
| 551 | velocity = angle * knockback, | |
| 552 | P = 5000, | |
| 553 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 554 | Parent = hit, | |
| 555 | } | |
| 556 | local rl = Create("BodyAngularVelocity"){
| |
| 557 | P = 3000, | |
| 558 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 559 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 560 | Parent = hit, | |
| 561 | } | |
| 562 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 563 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 564 | elseif Type == "Normal" then | |
| 565 | local vp = Create("BodyVelocity"){
| |
| 566 | P = 500, | |
| 567 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 568 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 569 | } | |
| 570 | if knockback > 0 then | |
| 571 | vp.Parent = hit.Parent.Torso | |
| 572 | end | |
| 573 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 574 | elseif Type == "Up" then | |
| 575 | local bodyVelocity = Create("BodyVelocity"){
| |
| 576 | velocity = Vector3.new(0, 20, 0), | |
| 577 | P = 5000, | |
| 578 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 579 | Parent = hit, | |
| 580 | } | |
| 581 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 582 | elseif Type == "DarkUp" then | |
| 583 | coroutine.resume(coroutine.create(function() | |
| 584 | for i = 0, 1, 0.1 do | |
| 585 | swait() | |
| 586 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 587 | end | |
| 588 | end)) | |
| 589 | local bodyVelocity = Create("BodyVelocity"){
| |
| 590 | velocity = Vector3.new(0, 20, 0), | |
| 591 | P = 5000, | |
| 592 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 593 | Parent = hit, | |
| 594 | } | |
| 595 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 596 | elseif Type == "Snare" then | |
| 597 | local bp = Create("BodyPosition"){
| |
| 598 | P = 2000, | |
| 599 | D = 100, | |
| 600 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 601 | position = hit.Parent.Torso.Position, | |
| 602 | Parent = hit.Parent.Torso, | |
| 603 | } | |
| 604 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 605 | elseif Type == "Freeze" then | |
| 606 | local BodPos = Create("BodyPosition"){
| |
| 607 | P = 50000, | |
| 608 | D = 1000, | |
| 609 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 610 | position = hit.Parent.Torso.Position, | |
| 611 | Parent = hit.Parent.Torso, | |
| 612 | } | |
| 613 | local BodGy = Create("BodyGyro") {
| |
| 614 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 615 | P = 20e+003, | |
| 616 | Parent = hit.Parent.Torso, | |
| 617 | cframe = hit.Parent.Torso.CFrame, | |
| 618 | } | |
| 619 | hit.Parent.Torso.Anchored = true | |
| 620 | coroutine.resume(coroutine.create(function(Part) | |
| 621 | swait(1.5) | |
| 622 | Part.Anchored = false | |
| 623 | end), hit.Parent.Torso) | |
| 624 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 625 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 626 | end | |
| 627 | local debounce = Create("BoolValue"){
| |
| 628 | Name = "DebounceHit", | |
| 629 | Parent = hit.Parent, | |
| 630 | Value = true, | |
| 631 | } | |
| 632 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 633 | c = Create("ObjectValue"){
| |
| 634 | Name = "creator", | |
| 635 | Value = Player, | |
| 636 | Parent = h, | |
| 637 | } | |
| 638 | game:GetService("Debris"):AddItem(c, .5)
| |
| 639 | end | |
| 640 | end | |
| 641 | ------------------------------------------------------- | |
| 642 | --End Damage Function-- | |
| 643 | ------------------------------------------------------- | |
| 644 | ||
| 645 | ------------------------------------------------------- | |
| 646 | --Start Damage Function Customization-- | |
| 647 | ------------------------------------------------------- | |
| 648 | function ShowDamage(Pos, Text, Time, Color) | |
| 649 | local Rate = (1 / 30) | |
| 650 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 651 | local Text = (Text or "") | |
| 652 | local Time = (Time or 2) | |
| 653 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 654 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 655 | EffectPart.Anchored = true | |
| 656 | local BillboardGui = Create("BillboardGui"){
| |
| 657 | Size = UDim2.new(3, 0, 3, 0), | |
| 658 | Adornee = EffectPart, | |
| 659 | Parent = EffectPart, | |
| 660 | } | |
| 661 | local TextLabel = Create("TextLabel"){
| |
| 662 | BackgroundTransparency = 1, | |
| 663 | Size = UDim2.new(1, 0, 1, 0), | |
| 664 | Text = Text, | |
| 665 | Font = "Bodoni", | |
| 666 | TextColor3 = Color, | |
| 667 | TextScaled = true, | |
| 668 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
| 669 | Parent = BillboardGui, | |
| 670 | } | |
| 671 | game.Debris:AddItem(EffectPart, (Time)) | |
| 672 | EffectPart.Parent = game:GetService("Workspace")
| |
| 673 | delay(0, function() | |
| 674 | local Frames = (Time / Rate) | |
| 675 | for Frame = 1, Frames do | |
| 676 | wait(Rate) | |
| 677 | local Percent = (Frame / Frames) | |
| 678 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 679 | TextLabel.TextTransparency = Percent | |
| 680 | end | |
| 681 | if EffectPart and EffectPart.Parent then | |
| 682 | EffectPart:Destroy() | |
| 683 | end | |
| 684 | end) | |
| 685 | end | |
| 686 | ------------------------------------------------------- | |
| 687 | --End Damage Function Customization-- | |
| 688 | ------------------------------------------------------- | |
| 689 | ||
| 690 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 691 | for _, c in pairs(workspace:children()) do | |
| 692 | local hum = c:findFirstChild("Humanoid")
| |
| 693 | if hum ~= nil then | |
| 694 | local head = c:findFirstChild("Head")
| |
| 695 | if head ~= nil then | |
| 696 | local targ = head.Position - Part.Position | |
| 697 | local mag = targ.magnitude | |
| 698 | if magni >= mag and c.Name ~= plr.Name then | |
| 699 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 700 | end | |
| 701 | end | |
| 702 | end | |
| 703 | end | |
| 704 | end | |
| 705 | ||
| 706 | ||
| 707 | CFuncs = {
| |
| 708 | Part = {
| |
| 709 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 710 | local Part = Create("Part")({
| |
| 711 | Parent = Parent, | |
| 712 | Reflectance = Reflectance, | |
| 713 | Transparency = Transparency, | |
| 714 | CanCollide = false, | |
| 715 | Locked = true, | |
| 716 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 717 | Name = Name, | |
| 718 | Size = Size, | |
| 719 | Material = Material | |
| 720 | }) | |
| 721 | RemoveOutlines(Part) | |
| 722 | return Part | |
| 723 | end | |
| 724 | }, | |
| 725 | Mesh = {
| |
| 726 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 727 | local Msh = Create(Mesh)({
| |
| 728 | Parent = Part, | |
| 729 | Offset = OffSet, | |
| 730 | Scale = Scale | |
| 731 | }) | |
| 732 | if Mesh == "SpecialMesh" then | |
| 733 | Msh.MeshType = MeshType | |
| 734 | Msh.MeshId = MeshId | |
| 735 | end | |
| 736 | return Msh | |
| 737 | end | |
| 738 | }, | |
| 739 | Mesh = {
| |
| 740 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 741 | local Msh = Create(Mesh)({
| |
| 742 | Parent = Part, | |
| 743 | Offset = OffSet, | |
| 744 | Scale = Scale | |
| 745 | }) | |
| 746 | if Mesh == "SpecialMesh" then | |
| 747 | Msh.MeshType = MeshType | |
| 748 | Msh.MeshId = MeshId | |
| 749 | end | |
| 750 | return Msh | |
| 751 | end | |
| 752 | }, | |
| 753 | Weld = {
| |
| 754 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 755 | local Weld = Create("Weld")({
| |
| 756 | Parent = Parent, | |
| 757 | Part0 = Part0, | |
| 758 | Part1 = Part1, | |
| 759 | C0 = C0, | |
| 760 | C1 = C1 | |
| 761 | }) | |
| 762 | return Weld | |
| 763 | end | |
| 764 | }, | |
| 765 | Sound = {
| |
| 766 | Create = function(id, par, vol, pit) | |
| 767 | coroutine.resume(coroutine.create(function() | |
| 768 | local S = Create("Sound")({
| |
| 769 | Volume = vol, | |
| 770 | Pitch = pit or 1, | |
| 771 | SoundId = id, | |
| 772 | Parent = par or workspace | |
| 773 | }) | |
| 774 | wait() | |
| 775 | S:play() | |
| 776 | game:GetService("Debris"):AddItem(S, 6)
| |
| 777 | end)) | |
| 778 | end | |
| 779 | }, | |
| 780 | ParticleEmitter = {
| |
| 781 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 782 | local fp = Create("ParticleEmitter")({
| |
| 783 | Parent = Parent, | |
| 784 | Color = ColorSequence.new(Color1, Color2), | |
| 785 | LightEmission = LightEmission, | |
| 786 | Size = Size, | |
| 787 | Texture = Texture, | |
| 788 | Transparency = Transparency, | |
| 789 | ZOffset = ZOffset, | |
| 790 | Acceleration = Accel, | |
| 791 | Drag = Drag, | |
| 792 | LockedToPart = LockedToPart, | |
| 793 | VelocityInheritance = VelocityInheritance, | |
| 794 | EmissionDirection = EmissionDirection, | |
| 795 | Enabled = Enabled, | |
| 796 | Lifetime = LifeTime, | |
| 797 | Rate = Rate, | |
| 798 | Rotation = Rotation, | |
| 799 | RotSpeed = RotSpeed, | |
| 800 | Speed = Speed, | |
| 801 | VelocitySpread = VelocitySpread | |
| 802 | }) | |
| 803 | return fp | |
| 804 | end | |
| 805 | } | |
| 806 | } | |
| 807 | function RemoveOutlines(part) | |
| 808 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 809 | end | |
| 810 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 811 | local Part = Create("Part")({
| |
| 812 | formFactor = FormFactor, | |
| 813 | Parent = Parent, | |
| 814 | Reflectance = Reflectance, | |
| 815 | Transparency = Transparency, | |
| 816 | CanCollide = false, | |
| 817 | Locked = true, | |
| 818 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 819 | Name = Name, | |
| 820 | Size = Size, | |
| 821 | Material = Material | |
| 822 | }) | |
| 823 | RemoveOutlines(Part) | |
| 824 | return Part | |
| 825 | end | |
| 826 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 827 | local Msh = Create(Mesh)({
| |
| 828 | Parent = Part, | |
| 829 | Offset = OffSet, | |
| 830 | Scale = Scale | |
| 831 | }) | |
| 832 | if Mesh == "SpecialMesh" then | |
| 833 | Msh.MeshType = MeshType | |
| 834 | Msh.MeshId = MeshId | |
| 835 | end | |
| 836 | return Msh | |
| 837 | end | |
| 838 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 839 | local Weld = Create("Weld")({
| |
| 840 | Parent = Parent, | |
| 841 | Part0 = Part0, | |
| 842 | Part1 = Part1, | |
| 843 | C0 = C0, | |
| 844 | C1 = C1 | |
| 845 | }) | |
| 846 | return Weld | |
| 847 | end | |
| 848 | ||
| 849 | ||
| 850 | ------------------------------------------------------- | |
| 851 | --Start Effect Function-- | |
| 852 | ------------------------------------------------------- | |
| 853 | EffectModel = Instance.new("Model", char)
| |
| 854 | Effects = {
| |
| 855 | Block = {
| |
| 856 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 857 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 858 | prt.Anchored = true | |
| 859 | prt.CFrame = cframe | |
| 860 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 861 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 862 | if Type == 1 or Type == nil then | |
| 863 | table.insert(Effects, {
| |
| 864 | prt, | |
| 865 | "Block1", | |
| 866 | delay, | |
| 867 | x3, | |
| 868 | y3, | |
| 869 | z3, | |
| 870 | msh | |
| 871 | }) | |
| 872 | elseif Type == 2 then | |
| 873 | table.insert(Effects, {
| |
| 874 | prt, | |
| 875 | "Block2", | |
| 876 | delay, | |
| 877 | x3, | |
| 878 | y3, | |
| 879 | z3, | |
| 880 | msh | |
| 881 | }) | |
| 882 | else | |
| 883 | table.insert(Effects, {
| |
| 884 | prt, | |
| 885 | "Block3", | |
| 886 | delay, | |
| 887 | x3, | |
| 888 | y3, | |
| 889 | z3, | |
| 890 | msh | |
| 891 | }) | |
| 892 | end | |
| 893 | end | |
| 894 | }, | |
| 895 | Sphere = {
| |
| 896 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 897 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 898 | prt.Anchored = true | |
| 899 | prt.CFrame = cframe | |
| 900 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 901 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 902 | table.insert(Effects, {
| |
| 903 | prt, | |
| 904 | "Cylinder", | |
| 905 | delay, | |
| 906 | x3, | |
| 907 | y3, | |
| 908 | z3, | |
| 909 | msh | |
| 910 | }) | |
| 911 | end | |
| 912 | }, | |
| 913 | Cylinder = {
| |
| 914 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 915 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 916 | prt.Anchored = true | |
| 917 | prt.CFrame = cframe | |
| 918 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 919 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 920 | table.insert(Effects, {
| |
| 921 | prt, | |
| 922 | "Cylinder", | |
| 923 | delay, | |
| 924 | x3, | |
| 925 | y3, | |
| 926 | z3, | |
| 927 | msh | |
| 928 | }) | |
| 929 | end | |
| 930 | }, | |
| 931 | Wave = {
| |
| 932 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 933 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 934 | prt.Anchored = true | |
| 935 | prt.CFrame = cframe | |
| 936 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 937 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 938 | table.insert(Effects, {
| |
| 939 | prt, | |
| 940 | "Cylinder", | |
| 941 | delay, | |
| 942 | x3 / 60, | |
| 943 | y3 / 60, | |
| 944 | z3 / 60, | |
| 945 | msh | |
| 946 | }) | |
| 947 | end | |
| 948 | }, | |
| 949 | Ring = {
| |
| 950 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 951 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 952 | prt.Anchored = true | |
| 953 | prt.CFrame = cframe | |
| 954 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 955 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 956 | table.insert(Effects, {
| |
| 957 | prt, | |
| 958 | "Cylinder", | |
| 959 | delay, | |
| 960 | x3, | |
| 961 | y3, | |
| 962 | z3, | |
| 963 | msh | |
| 964 | }) | |
| 965 | end | |
| 966 | }, | |
| 967 | Break = {
| |
| 968 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 969 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 970 | prt.Anchored = true | |
| 971 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 972 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 973 | local num = math.random(10, 50) / 1000 | |
| 974 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 975 | table.insert(Effects, {
| |
| 976 | prt, | |
| 977 | "Shatter", | |
| 978 | num, | |
| 979 | prt.CFrame, | |
| 980 | math.random() - math.random(), | |
| 981 | 0, | |
| 982 | math.random(50, 100) / 100 | |
| 983 | }) | |
| 984 | end | |
| 985 | }, | |
| 986 | Spiral = {
| |
| 987 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 988 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 989 | prt.Anchored = true | |
| 990 | prt.CFrame = cframe | |
| 991 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 992 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 993 | table.insert(Effects, {
| |
| 994 | prt, | |
| 995 | "Cylinder", | |
| 996 | delay, | |
| 997 | x3, | |
| 998 | y3, | |
| 999 | z3, | |
| 1000 | msh | |
| 1001 | }) | |
| 1002 | end | |
| 1003 | }, | |
| 1004 | Push = {
| |
| 1005 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1006 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1007 | prt.Anchored = true | |
| 1008 | prt.CFrame = cframe | |
| 1009 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1010 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1011 | table.insert(Effects, {
| |
| 1012 | prt, | |
| 1013 | "Cylinder", | |
| 1014 | delay, | |
| 1015 | x3, | |
| 1016 | y3, | |
| 1017 | z3, | |
| 1018 | msh | |
| 1019 | }) | |
| 1020 | end | |
| 1021 | } | |
| 1022 | } | |
| 1023 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
| 1024 | local fp = IT("Part")
| |
| 1025 | fp.formFactor = formfactor | |
| 1026 | fp.Parent = parent | |
| 1027 | fp.Reflectance = reflectance | |
| 1028 | fp.Transparency = transparency | |
| 1029 | fp.CanCollide = false | |
| 1030 | fp.Locked = true | |
| 1031 | fp.BrickColor = brickcolor | |
| 1032 | fp.Name = name | |
| 1033 | fp.Size = size | |
| 1034 | fp.Position = tors.Position | |
| 1035 | RemoveOutlines(fp) | |
| 1036 | fp.Material = "SmoothPlastic" | |
| 1037 | fp:BreakJoints() | |
| 1038 | return fp | |
| 1039 | end | |
| 1040 | ||
| 1041 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1042 | local mesh = IT(Mesh) | |
| 1043 | mesh.Parent = part | |
| 1044 | if Mesh == "SpecialMesh" then | |
| 1045 | mesh.MeshType = meshtype | |
| 1046 | if meshid ~= "nil" then | |
| 1047 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
| 1048 | end | |
| 1049 | end | |
| 1050 | mesh.Offset = offset | |
| 1051 | mesh.Scale = scale | |
| 1052 | return mesh | |
| 1053 | end | |
| 1054 | ||
| 1055 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 1056 | local type = type | |
| 1057 | local rng = Instance.new("Part", char)
| |
| 1058 | rng.Anchored = true | |
| 1059 | rng.BrickColor = color | |
| 1060 | rng.CanCollide = false | |
| 1061 | rng.FormFactor = 3 | |
| 1062 | rng.Name = "Ring" | |
| 1063 | rng.Material = "Neon" | |
| 1064 | rng.Size = Vector3.new(1, 1, 1) | |
| 1065 | rng.Transparency = 0 | |
| 1066 | rng.TopSurface = 0 | |
| 1067 | rng.BottomSurface = 0 | |
| 1068 | rng.CFrame = pos | |
| 1069 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1070 | rngm.MeshType = MType | |
| 1071 | rngm.Scale = scale | |
| 1072 | local scaler2 = 1 | |
| 1073 | if type == "Add" then | |
| 1074 | scaler2 = 1 * value | |
| 1075 | elseif type == "Divide" then | |
| 1076 | scaler2 = 1 / value | |
| 1077 | end | |
| 1078 | coroutine.resume(coroutine.create(function() | |
| 1079 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1080 | swait() | |
| 1081 | if type == "Add" then | |
| 1082 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1083 | elseif type == "Divide" then | |
| 1084 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1085 | end | |
| 1086 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1087 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1088 | end | |
| 1089 | rng:Destroy() | |
| 1090 | end)) | |
| 1091 | end | |
| 1092 | ||
| 1093 | function Eviscerate(dude) | |
| 1094 | if dude.Name ~= char then | |
| 1095 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1096 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1097 | local val = IT("BoolValue", dude)
| |
| 1098 | val.Name = "IsHit" | |
| 1099 | local ds = coroutine.wrap(function() | |
| 1100 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1101 | wait(0.5) | |
| 1102 | target = nil | |
| 1103 | coroutine.resume(coroutine.create(function() | |
| 1104 | for i, v in pairs(dude:GetChildren()) do | |
| 1105 | if v:IsA("Accessory") then
| |
| 1106 | v:Destroy() | |
| 1107 | end | |
| 1108 | if v:IsA("Humanoid") then
| |
| 1109 | v:Destroy() | |
| 1110 | end | |
| 1111 | if v:IsA("CharacterMesh") then
| |
| 1112 | v:Destroy() | |
| 1113 | end | |
| 1114 | if v:IsA("Model") then
| |
| 1115 | v:Destroy() | |
| 1116 | end | |
| 1117 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1118 | for x, o in pairs(v:GetChildren()) do | |
| 1119 | if o:IsA("Decal") then
| |
| 1120 | o:Destroy() | |
| 1121 | end | |
| 1122 | end | |
| 1123 | coroutine.resume(coroutine.create(function() | |
| 1124 | v.Material = "Neon" | |
| 1125 | v.CanCollide = false | |
| 1126 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1127 | PartEmmit1.LightEmission = 1 | |
| 1128 | PartEmmit1.Texture = "rbxassetid://284205403" | |
| 1129 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1130 | PartEmmit1.Rate = 150 | |
| 1131 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1132 | PartEmmit1.Size = NumberSequence.new({
| |
| 1133 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1134 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1135 | }) | |
| 1136 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1137 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1138 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1139 | }) | |
| 1140 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1141 | PartEmmit1.VelocitySpread = 30000 | |
| 1142 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1143 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1144 | local BodPoss = IT("BodyPosition", v)
| |
| 1145 | BodPoss.P = 3000 | |
| 1146 | BodPoss.D = 1000 | |
| 1147 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1148 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1149 | v.Color = maincolor.Color | |
| 1150 | coroutine.resume(coroutine.create(function() | |
| 1151 | for i = 0, 49 do | |
| 1152 | swait(1) | |
| 1153 | v.Transparency = v.Transparency + 0.08 | |
| 1154 | end | |
| 1155 | wait(0.5) | |
| 1156 | PartEmmit1.Enabled = false | |
| 1157 | wait(3) | |
| 1158 | v:Destroy() | |
| 1159 | dude:Destroy() | |
| 1160 | end)) | |
| 1161 | end)) | |
| 1162 | end | |
| 1163 | end | |
| 1164 | end)) | |
| 1165 | end) | |
| 1166 | ds() | |
| 1167 | end | |
| 1168 | end | |
| 1169 | ||
| 1170 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1171 | if SinglePlayer then | |
| 1172 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1173 | end | |
| 1174 | local List = {}
| |
| 1175 | for i, v in pairs(workspace:GetChildren()) do | |
| 1176 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1177 | table.insert(List, v) | |
| 1178 | end | |
| 1179 | end | |
| 1180 | return List | |
| 1181 | end | |
| 1182 | ||
| 1183 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
| 1184 | local type = type | |
| 1185 | local rng = Instance.new("Part", char)
| |
| 1186 | rng.Anchored = true | |
| 1187 | rng.BrickColor = color | |
| 1188 | rng.CanCollide = false | |
| 1189 | rng.FormFactor = 3 | |
| 1190 | rng.Name = "Ring" | |
| 1191 | rng.Material = "Neon" | |
| 1192 | rng.Size = Vector3.new(1, 1, 1) | |
| 1193 | rng.Transparency = 0 | |
| 1194 | rng.TopSurface = 0 | |
| 1195 | rng.BottomSurface = 0 | |
| 1196 | rng.CFrame = pos | |
| 1197 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 1198 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1199 | rngm.MeshType = MType | |
| 1200 | rngm.Scale = Vector3.new(x1, y1, z1) | |
| 1201 | local scaler2 = 1 | |
| 1202 | local speeder = FastSpeed | |
| 1203 | if type == "Add" then | |
| 1204 | scaler2 = 1 * value | |
| 1205 | elseif type == "Divide" then | |
| 1206 | scaler2 = 1 / value | |
| 1207 | end | |
| 1208 | coroutine.resume(coroutine.create(function() | |
| 1209 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1210 | swait() | |
| 1211 | if type == "Add" then | |
| 1212 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1213 | elseif type == "Divide" then | |
| 1214 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1215 | end | |
| 1216 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 1217 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 1218 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1219 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 1220 | end | |
| 1221 | rng:Destroy() | |
| 1222 | end)) | |
| 1223 | end | |
| 1224 | ||
| 1225 | function SoulSteal(dude) | |
| 1226 | if dude.Name ~= char then | |
| 1227 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1228 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1229 | local val = IT("BoolValue", dude)
| |
| 1230 | val.Name = "IsHit" | |
| 1231 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
| 1232 | local soulst = coroutine.wrap(function() | |
| 1233 | local soul = Instance.new("Part",dude)
| |
| 1234 | soul.Size = Vector3.new(1,1,1) | |
| 1235 | soul.CanCollide = false | |
| 1236 | soul.Anchored = false | |
| 1237 | soul.Position = torso.Position | |
| 1238 | soul.Transparency = 1 | |
| 1239 | local PartEmmit1 = IT("ParticleEmitter", soul)
| |
| 1240 | PartEmmit1.LightEmission = 1 | |
| 1241 | PartEmmit1.Texture = "rbxassetid://569507414" | |
| 1242 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1243 | PartEmmit1.Rate = 250 | |
| 1244 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
| 1245 | PartEmmit1.Size = NumberSequence.new({
| |
| 1246 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 1247 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1248 | }) | |
| 1249 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1250 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1251 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1252 | }) | |
| 1253 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1254 | PartEmmit1.VelocitySpread = 30000 | |
| 1255 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
| 1256 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
| 1257 | local BodPoss = IT("BodyPosition", soul)
| |
| 1258 | BodPoss.P = 3000 | |
| 1259 | BodPoss.D = 1000 | |
| 1260 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1261 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1262 | wait(1.6) | |
| 1263 | soul.Touched:connect(function(hit) | |
| 1264 | if hit.Parent == char then | |
| 1265 | soul:Destroy() | |
| 1266 | end | |
| 1267 | end) | |
| 1268 | wait(1.2) | |
| 1269 | while soul do | |
| 1270 | swait() | |
| 1271 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1272 | BodPoss.Position = tors.Position | |
| 1273 | end | |
| 1274 | end) | |
| 1275 | soulst() | |
| 1276 | end | |
| 1277 | end | |
| 1278 | function FaceMouse() | |
| 1279 | local Cam = workspace.CurrentCamera | |
| 1280 | return {
| |
| 1281 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 1282 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 1283 | } | |
| 1284 | end | |
| 1285 | ||
| 1286 | BTAUNT = Instance.new("Sound", tors)
| |
| 1287 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2627723972" | |
| 1288 | BTAUNT.Volume = 4 | |
| 1289 | BTAUNT.Pitch = 1 | |
| 1290 | BTAUNT.Looped = true | |
| 1291 | BTAUNT.TimePosition = 0 | |
| 1292 | ||
| 1293 | BTAUNT3 = Instance.new("Sound", tors)
| |
| 1294 | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=157016540" | |
| 1295 | BTAUNT3.Volume = 10 | |
| 1296 | BTAUNT3.Pitch = 1 | |
| 1297 | BTAUNT3.Looped = false | |
| 1298 | BTAUNT3.TimePosition = 0 | |
| 1299 | ||
| 1300 | TEST = Instance.new("Sound", tors)
| |
| 1301 | TEST.SoundId = "http://www.roblox.com/asset/?id=2545011398" | |
| 1302 | TEST.Volume = 25 | |
| 1303 | TEST.Pitch = 1 | |
| 1304 | TEST.Looped = false | |
| 1305 | TEST.TimePosition = 0 | |
| 1306 | ------------------------------------------------------- | |
| 1307 | --End Effect Function-- | |
| 1308 | ------------------------------------------------------- | |
| 1309 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 1310 | local NSound = nil | |
| 1311 | coroutine.resume(coroutine.create(function() | |
| 1312 | NSound = IT("Sound", PARENT)
| |
| 1313 | NSound.Volume = VOLUME | |
| 1314 | NSound.Pitch = PITCH | |
| 1315 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1316 | swait() | |
| 1317 | NSound:play() | |
| 1318 | game:GetService("Debris"):AddItem(NSound, 50)
| |
| 1319 | end)) | |
| 1320 | return NSound | |
| 1321 | end | |
| 1322 | function CameraEnshaking(Length, Intensity) | |
| 1323 | coroutine.resume(coroutine.create(function() | |
| 1324 | local intensity = 1 * Intensity | |
| 1325 | local rotM = 0.01 * Intensity | |
| 1326 | for i = 0, Length, 0.1 do | |
| 1327 | swait() | |
| 1328 | intensity = intensity - 0.05 * Intensity / Length | |
| 1329 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1330 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 1331 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
| 1332 | end | |
| 1333 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 1334 | end)) | |
| 1335 | end | |
| 1336 | ------------------------------------------------------- | |
| 1337 | --End Important Functions-- | |
| 1338 | ------------------------------------------------------- | |
| 1339 | ||
| 1340 | ||
| 1341 | ------------------------------------------------------- | |
| 1342 | --Start Customization-- | |
| 1343 | ------------------------------------------------------- | |
| 1344 | local Player_Size = 1 | |
| 1345 | if Player_Size ~= 1 then | |
| 1346 | root.Size = root.Size * Player_Size | |
| 1347 | tors.Size = tors.Size * Player_Size | |
| 1348 | hed.Size = hed.Size * Player_Size | |
| 1349 | ra.Size = ra.Size * Player_Size | |
| 1350 | la.Size = la.Size * Player_Size | |
| 1351 | rl.Size = rl.Size * Player_Size | |
| 1352 | ll.Size = ll.Size * Player_Size | |
| 1353 | ---------------------------------------------------------------------------------- | |
| 1354 | rootj.Parent = root | |
| 1355 | neck.Parent = tors | |
| 1356 | RW.Parent = tors | |
| 1357 | LW.Parent = tors | |
| 1358 | RH.Parent = tors | |
| 1359 | LH.Parent = tors | |
| 1360 | ---------------------------------------------------------------------------------- | |
| 1361 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1362 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1363 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1364 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
| 1365 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
| 1366 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
| 1367 | ---------------------------------------------------------------------------------- | |
| 1368 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1369 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1370 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1371 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1372 | --hat.Parent = Character | |
| 1373 | end | |
| 1374 | ---------------------------------------------------------------------------------- | |
| 1375 | ---------------------------------------------------------------------------------- | |
| 1376 | local equipped = false | |
| 1377 | local idle = 0 | |
| 1378 | local change = 1 | |
| 1379 | local val = 0 | |
| 1380 | local toim = 0 | |
| 1381 | local idleanim = 0.4 | |
| 1382 | local sine = 0 | |
| 1383 | local Sit = 1 | |
| 1384 | ---------------------------------------------------------------------------------- | |
| 1385 | hum.WalkSpeed = 8 | |
| 1386 | hum.JumpPower = 57 | |
| 1387 | hum.Animator.Parent = nil | |
| 1388 | ---------------------------------------------------------------------------------- | |
| 1389 | wait(1) | |
| 1390 | player = game.Players.LocalPlayer | |
| 1391 | torso = player.Character:WaitForChild("Torso")
| |
| 1392 | mouse = player:GetMouse() | |
| 1393 | ||
| 1394 | mouse.KeyDown:connect(function(key) | |
| 1395 | if key == "t" then | |
| 1396 | Cso("2545012765", hed, 3.5, 1)
| |
| 1397 | dist = (torso.Position - mouse.Hit.p).magnitude | |
| 1398 | if dist <= 10000 then | |
| 1399 | torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) | |
| 1400 | end | |
| 1401 | end | |
| 1402 | end) | |
| 1403 | ------------------------------------------------------- | |
| 1404 | --End Customization-- | |
| 1405 | ------------------------------------------------------- | |
| 1406 | local Blobby = Instance.new("Part", char)
| |
| 1407 | Blobby.Name = "Blob" | |
| 1408 | Blobby.CanCollide = false | |
| 1409 | Blobby.BrickColor = BrickColor.new("Really black")
| |
| 1410 | Blobby.Transparency = 0 | |
| 1411 | Blobby.Material = "Plastic" | |
| 1412 | Blobby.Size = Vector3.new(1, 1, 2) | |
| 1413 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
| 1414 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
| 1415 | ||
| 1416 | local Weld = Instance.new("Weld", Blobby)
| |
| 1417 | Weld.Part0 = ra | |
| 1418 | Weld.Part1 = Blobby | |
| 1419 | Weld.C1 = CFrame.new(0, 0.8, 0) | |
| 1420 | Weld.C0 = CFrame.Angles(Rad(-180),0,135) | |
| 1421 | ||
| 1422 | local M2 = Instance.new("SpecialMesh")
| |
| 1423 | M2.Parent = Blobby | |
| 1424 | M2.MeshId = "rbxassetid://28140935" | |
| 1425 | M2.TextureId = "rbxassetid://26884682" | |
| 1426 | M2.Scale = Vector3.new(1, 0.8, 1) | |
| 1427 | ||
| 1428 | --[[local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1429 | naeeym2.AlwaysOnTop = true | |
| 1430 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 1431 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
| 1432 | naeeym2.Adornee = hed | |
| 1433 | - | naeeym2.Name = "StarzoZero's J evil" |
| 1433 | + | naeeym2.Name = "Jester" |
| 1434 | --naeeym2.PlayerToHideFrom = Player | |
| 1435 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1436 | tecks2.BackgroundTransparency = 1 | |
| 1437 | tecks2.TextScaled = true | |
| 1438 | tecks2.BorderSizePixel = 0 | |
| 1439 | tecks2.Text = "Fight Me" | |
| 1440 | tecks2.Font = Enum.Font.Bodoni | |
| 1441 | tecks2.TextSize = 30 | |
| 1442 | tecks2.TextStrokeTransparency = 0 | |
| 1443 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
| 1444 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
| 1445 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1446 | tecks2.Parent = naeeym2]] | |
| 1447 | ---------------------------------------------------------------------------------- | |
| 1448 | local AddInstance = function(Object, ...) | |
| 1449 | local Obj = Instance.new(Object) | |
| 1450 | for i,v in next,(...) do | |
| 1451 | Obj[i] = v | |
| 1452 | end | |
| 1453 | return Obj | |
| 1454 | end | |
| 1455 | ---------------------------------------------------- | |
| 1456 | local Reaper = AddInstance("Part",{
| |
| 1457 | Parent = hed, | |
| 1458 | CFrame = hed.CFrame, | |
| 1459 | formFactor = "Symmetric", | |
| 1460 | Size = Vector3.new(1, 1, 1), | |
| 1461 | CanCollide = false, | |
| 1462 | TopSurface = "Smooth", | |
| 1463 | BottomSurface = "Smooth", | |
| 1464 | Locked = true, | |
| 1465 | }) | |
| 1466 | local Weld = AddInstance("Weld",{
| |
| 1467 | Parent = Reaper, | |
| 1468 | Part0 = hed, | |
| 1469 | C0 = CFrame.new(0, 0.8, 0.4)*CFrame.Angles(0, 0, 0), | |
| 1470 | Part1 = Reaper, | |
| 1471 | }) | |
| 1472 | local Mesh = AddInstance("SpecialMesh",{
| |
| 1473 | Parent = Reaper, | |
| 1474 | MeshId = "rbxassetid://193760002", | |
| 1475 | TextureId = "rbxassetid://89867215", | |
| 1476 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
| 1477 | VertexColor = Vector3.new(0.5, 0.5, 0.5), | |
| 1478 | }) | |
| 1479 | ------------------------------------------------------- | |
| 1480 | wait(1) | |
| 1481 | plr = game.Players.LocalPlayer | |
| 1482 | char = plr.Character | |
| 1483 | mouse = plr:GetMouse() | |
| 1484 | whitecolor = Color3.new(1,1,1) | |
| 1485 | epicmode = false | |
| 1486 | normal = true | |
| 1487 | for i,v in pairs(char:GetChildren()) do | |
| 1488 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
| 1489 | v:Destroy() | |
| 1490 | end | |
| 1491 | end | |
| 1492 | local shirt = Instance.new("Shirt",char)
| |
| 1493 | shirt.ShirtTemplate = "rbxassetid://2544612637" | |
| 1494 | local pants = Instance.new("Pants",char)
| |
| 1495 | pants.PantsTemplate = "rbxassetid://2544611861" | |
| 1496 | local bdycolors = char["Body Colors"] | |
| 1497 | bdycolors.HeadColor3 = whitecolor | |
| 1498 | bdycolors.LeftArmColor3 = whitecolor | |
| 1499 | bdycolors.LeftLegColor3 = whitecolor | |
| 1500 | bdycolors.RightArmColor3 = whitecolor | |
| 1501 | bdycolors.RightLegColor3 = whitecolor | |
| 1502 | bdycolors.TorsoColor3 = whitecolor | |
| 1503 | for i,v in pairs(char:GetChildren()) do | |
| 1504 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 1505 | v:Destroy() | |
| 1506 | end | |
| 1507 | end | |
| 1508 | ||
| 1509 | ------------------------------------------------------- | |
| 1510 | --Start Attacks N Stuff-- | |
| 1511 | ------------------------------------------------------- | |
| 1512 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1513 | naeeym2.AlwaysOnTop = true | |
| 1514 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 1515 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 1516 | naeeym2.Adornee = hed | |
| 1517 | naeeym2.Name = "Name" | |
| 1518 | ||
| 1519 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1520 | tecks2.BackgroundTransparency = 1 | |
| 1521 | tecks2.TextScaled = true | |
| 1522 | tecks2.BorderSizePixel = 0 | |
| 1523 | - | tecks2.Text = "StarzoZero's J evil" |
| 1523 | + | tecks2.Text = "Jester" |
| 1524 | tecks2.Font = "Fantasy" | |
| 1525 | tecks2.TextSize = 50 | |
| 1526 | tecks2.TextStrokeTransparency = 0 | |
| 1527 | tecks2.TextColor3 = BrickColor.new('Really black').Color
| |
| 1528 | tecks2.TextStrokeColor3 = BrickColor.new('Bright blue').Color
| |
| 1529 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1530 | tecks2.Parent = naeeym2 | |
| 1531 | textfag = tecks2 | |
| 1532 | - | tecks2.Text = "StarzoZero's J evil" |
| 1532 | + | tecks2.Text = "Jester" |
| 1533 | BTAUNT:Play() | |
| 1534 | coroutine.resume(coroutine.create(function() | |
| 1535 | while textfag ~= nil do | |
| 1536 | swait() | |
| 1537 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 1538 | textfag.Rotation = math.random(-3,3) | |
| 1539 | end | |
| 1540 | end)) | |
| 1541 | ||
| 1542 | function get_out() | |
| 1543 | BTAUNT:Stop() | |
| 1544 | attack = true | |
| 1545 | BTAUNT3:Remove() | |
| 1546 | BTAUNT3:Play() | |
| 1547 | repeat | |
| 1548 | hum.WalkSpeed = 10 | |
| 1549 | for i = 0,0.37,0.03 do | |
| 1550 | swait() | |
| 1551 | BTAUNT3.Parent = tors | |
| 1552 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1553 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1554 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
| 1555 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 1556 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
| 1557 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
| 1558 | end | |
| 1559 | for i = 0,0.37,0.03 do | |
| 1560 | swait() | |
| 1561 | BTAUNT3.Parent = tors | |
| 1562 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1563 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1564 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
| 1565 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 1566 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
| 1567 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
| 1568 | end | |
| 1569 | until BTAUNT3.Playing == false | |
| 1570 | BTAUNT3:Stop() | |
| 1571 | BTAUNT3:Play() | |
| 1572 | BTAUNT3:Remove() | |
| 1573 | BTAUNT:Play() | |
| 1574 | attack = false | |
| 1575 | hum.WalkSpeed = 20 | |
| 1576 | BTAUNT:Play() | |
| 1577 | end | |
| 1578 | function Taunt2() | |
| 1579 | attack = true | |
| 1580 | hum.WalkSpeed = 0 | |
| 1581 | CFuncs.Sound.Create("rbxassetid://2545211765", head, 100, 1)
| |
| 1582 | for i = 0, 2, 0.1 do | |
| 1583 | swait() | |
| 1584 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 1585 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 1586 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1587 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1588 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1589 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1590 | end | |
| 1591 | for i = 0, 6, 0.1 do | |
| 1592 | swait() | |
| 1593 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 1594 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15) | |
| 1595 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1596 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1597 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1598 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1599 | end | |
| 1600 | for i = 0, 2, 0.1 do | |
| 1601 | swait() | |
| 1602 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 1603 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 1604 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1605 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 1606 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1607 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1608 | end | |
| 1609 | attack = false | |
| 1610 | hum.WalkSpeed = 20 | |
| 1611 | end | |
| 1612 | function icando() | |
| 1613 | print('>:3')
| |
| 1614 | attack = true | |
| 1615 | hum.WalkSpeed = 0 | |
| 1616 | TEST:Remove() | |
| 1617 | TEST:Play() | |
| 1618 | repeat | |
| 1619 | for i = 0,4,0.1 do | |
| 1620 | swait() | |
| 1621 | TEST.Parent = tors | |
| 1622 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15) | |
| 1623 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3) | |
| 1624 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 1625 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 1626 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1) | |
| 1627 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1) | |
| 1628 | end | |
| 1629 | until TEST.Playing == false | |
| 1630 | TEST:Stop() | |
| 1631 | TEST:Play() | |
| 1632 | TEST:Remove() | |
| 1633 | print('METAMORPHOSIS!')
| |
| 1634 | attack = false | |
| 1635 | hum.WalkSpeed = 20 | |
| 1636 | end | |
| 1637 | function Blood_ball() | |
| 1638 | local orb = Instance.new("Part", char)
| |
| 1639 | orb.Anchored = true | |
| 1640 | orb.BrickColor = BrickC("Royal Purple")
| |
| 1641 | orb.CanCollide = false | |
| 1642 | orb.FormFactor = 3 | |
| 1643 | orb.Name = "Ring" | |
| 1644 | orb.Material = "Neon" | |
| 1645 | orb.Size = Vector3.new(1, 1, 1) | |
| 1646 | orb.Transparency = 0 | |
| 1647 | orb.TopSurface = 0 | |
| 1648 | orb.BottomSurface = 0 | |
| 1649 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 1650 | orbm.MeshType = "Sphere" | |
| 1651 | orbm.Name = "SizeMesh" | |
| 1652 | orbm.Scale = Vector3.new(0, 0, 0) | |
| 1653 | local scaled = 0.1 | |
| 1654 | local posid = 0 | |
| 1655 | for i = 0, 109, 0.1 do | |
| 1656 | swait() | |
| 1657 | scaled = scaled + 0.001 | |
| 1658 | posid = posid - scaled | |
| 1659 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
| 1660 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
| 1661 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1662 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1663 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 1664 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 1665 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 1666 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 1667 | end | |
| 1668 | coroutine.resume(coroutine.create(function() | |
| 1669 | orb.Anchored = false | |
| 1670 | --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
| |
| 1671 | mes("CALAMITY ORB COMING IN EVERYTHING WILL BE DESTROYED",0.05)
| |
| 1672 | local a = Instance.new("Part", workspace)
| |
| 1673 | a.Name = "Direction" | |
| 1674 | a.Anchored = true | |
| 1675 | a.BrickColor = BrickC("Crimson")
| |
| 1676 | a.Material = "Neon" | |
| 1677 | a.Transparency = 1 | |
| 1678 | a.CanCollide = false | |
| 1679 | local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500) | |
| 1680 | local ignore = orb | |
| 1681 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 1682 | a.BottomSurface = 10 | |
| 1683 | a.TopSurface = 10 | |
| 1684 | local distance = (orb.CFrame.p - position).magnitude | |
| 1685 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 1686 | a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0) | |
| 1687 | orb.CFrame = a.CFrame | |
| 1688 | a:Destroy() | |
| 1689 | local bv = Instance.new("BodyVelocity")
| |
| 1690 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1691 | bv.velocity = orb.CFrame.lookVector * 125 | |
| 1692 | bv.Parent = orb | |
| 1693 | local hitted = false | |
| 1694 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 1695 | wait() | |
| 1696 | local hit = orb.Touched:connect(function(hit) | |
| 1697 | if hitted == false then | |
| 1698 | hitted = true | |
| 1699 | coroutine.resume(coroutine.create(function() | |
| 1700 | for i = 0,1.8,0.1 do | |
| 1701 | swait() | |
| 1702 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
| 1703 | end | |
| 1704 | for i = 0,1.8,0.1 do | |
| 1705 | swait() | |
| 1706 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 1707 | end | |
| 1708 | end)) | |
| 1709 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
| |
| 1710 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do | |
| 1711 | if v:FindFirstChild("Head") then
| |
| 1712 | Eviscerate(v) | |
| 1713 | end | |
| 1714 | end | |
| 1715 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Royal Purple"), "Sphere")
| |
| 1716 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Royal Purple"), "Sphere")
| |
| 1717 | for i = 0, 9 do | |
| 1718 | --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
| |
| 1719 | --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
| |
| 1720 | end | |
| 1721 | orb.Anchored = true | |
| 1722 | orb.Transparency = 1 | |
| 1723 | wait(8) | |
| 1724 | orb:Destroy() | |
| 1725 | end | |
| 1726 | end) | |
| 1727 | end)) | |
| 1728 | for i = 0, 2, 0.1 do | |
| 1729 | swait() | |
| 1730 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1731 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1732 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 1733 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 1734 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 1735 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 1736 | end | |
| 1737 | attack = false | |
| 1738 | end | |
| 1739 | function Blood_ball() | |
| 1740 | attack = true | |
| 1741 | local orb = Instance.new("Part", char)
| |
| 1742 | orb.Anchored = true | |
| 1743 | orb.BrickColor = BrickC("Royal Purple")
| |
| 1744 | orb.CanCollide = false | |
| 1745 | orb.FormFactor = 3 | |
| 1746 | orb.Name = "Ring" | |
| 1747 | orb.Material = "Neon" | |
| 1748 | orb.Size = Vector3.new(1, 1, 1) | |
| 1749 | orb.Transparency = 0 | |
| 1750 | orb.TopSurface = 0 | |
| 1751 | orb.BottomSurface = 0 | |
| 1752 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 1753 | orbm.MeshType = "Sphere" | |
| 1754 | orbm.Name = "SizeMesh" | |
| 1755 | orbm.Scale = Vector3.new(0, 0, 0) | |
| 1756 | local scaled = 0.1 | |
| 1757 | local posid = 0 | |
| 1758 | for i = 0, 12, 0.1 do | |
| 1759 | swait() | |
| 1760 | scaled = scaled + 0.001 | |
| 1761 | posid = posid - scaled | |
| 1762 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
| 1763 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
| 1764 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1765 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1766 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
| 1767 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 1768 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1769 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1770 | end | |
| 1771 | coroutine.resume(coroutine.create(function() | |
| 1772 | orb.Anchored = false | |
| 1773 | local a = Instance.new("Part", workspace)
| |
| 1774 | a.Name = "Direction" | |
| 1775 | a.Anchored = true | |
| 1776 | a.BrickColor = BrickC("Royal purple")
| |
| 1777 | a.Material = "Neon" | |
| 1778 | a.Transparency = 1 | |
| 1779 | a.CanCollide = false | |
| 1780 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
| 1781 | local ignore = orb | |
| 1782 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 1783 | a.BottomSurface = 10 | |
| 1784 | a.TopSurface = 10 | |
| 1785 | local distance = (orb.CFrame.p - position).magnitude | |
| 1786 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 1787 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 1788 | orb.CFrame = a.CFrame | |
| 1789 | a:Destroy() | |
| 1790 | local bv = Instance.new("BodyVelocity")
| |
| 1791 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 1792 | bv.velocity = orb.CFrame.lookVector * 125 | |
| 1793 | bv.Parent = orb | |
| 1794 | local hitted = false | |
| 1795 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 1796 | swait() | |
| 1797 | local hit = orb.Touched:connect(function(hit) | |
| 1798 | if hitted == false then | |
| 1799 | hitted = true | |
| 1800 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
| |
| 1801 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 25)) do | |
| 1802 | if v:FindFirstChild("Head") then
| |
| 1803 | Eviscerate(v) | |
| 1804 | end | |
| 1805 | end | |
| 1806 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Royal Purple"), "Sphere")
| |
| 1807 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Royal Purple"), "Sphere")
| |
| 1808 | for i = 0, 9 do | |
| 1809 | Aura(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Royal Purple"), 0, "Sphere")
| |
| 1810 | Aura(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Royal Purple"), 0, "Sphere")
| |
| 1811 | end | |
| 1812 | orb.Anchored = true | |
| 1813 | orb.Transparency = 1 | |
| 1814 | wait(8) | |
| 1815 | orb:Destroy() | |
| 1816 | end | |
| 1817 | end) | |
| 1818 | end)) | |
| 1819 | for i = 0, 1, 0.1 do | |
| 1820 | swait() | |
| 1821 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(30)), 0.3) | |
| 1822 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(-30)), 0.3) | |
| 1823 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(6)), 0.3) | |
| 1824 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-6)), 0.3) | |
| 1825 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.3) | |
| 1826 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(6), Rad(Mrandom(-15, 15)), Rad(-5 + 4.5 * Sin(sine / 20))), 0.3) | |
| 1827 | end | |
| 1828 | attack = false | |
| 1829 | end | |
| 1830 | function blast() | |
| 1831 | attack = true | |
| 1832 | hum.WalkSpeed = 0 | |
| 1833 | for i = 0,1.2,0.1 do | |
| 1834 | swait() | |
| 1835 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
| 1836 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 1837 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
| 1838 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
| 1839 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
| 1840 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1) | |
| 1841 | end | |
| 1842 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1843 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1844 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01)
| |
| 1845 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
| 1846 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere")
| |
| 1847 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Royal Purple"), "Sphere")
| |
| 1848 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal Purple"), "Sphere")
| |
| 1849 | ||
| 1850 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
| 1851 | if v:FindFirstChild("Head") then
| |
| 1852 | Eviscerate(v) | |
| 1853 | end | |
| 1854 | end | |
| 1855 | ||
| 1856 | for i = 1,4.7,0.1 do | |
| 1857 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
| 1858 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
| 1859 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
| 1860 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
| 1861 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
| 1862 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
| 1863 | end | |
| 1864 | wait(.6) | |
| 1865 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1866 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1867 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01)
| |
| 1868 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
| 1869 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere")
| |
| 1870 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright blue"), "Sphere")
| |
| 1871 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01,BrickColor.new("Royal Purple"), "Sphere")
| |
| 1872 | ||
| 1873 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
| 1874 | if v:FindFirstChild("Head") then
| |
| 1875 | Eviscerate(v) | |
| 1876 | end | |
| 1877 | end | |
| 1878 | ||
| 1879 | for i = 1,4.7,0.1 do | |
| 1880 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
| 1881 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
| 1882 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
| 1883 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
| 1884 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
| 1885 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
| 1886 | end | |
| 1887 | wait(.6) | |
| 1888 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1889 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1890 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01)
| |
| 1891 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
| 1892 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere")
| |
| 1893 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Royal purple"), "Sphere")
| |
| 1894 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal purple"), "Sphere")
| |
| 1895 | ||
| 1896 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
| 1897 | if v:FindFirstChild("Head") then
| |
| 1898 | Eviscerate(v) | |
| 1899 | end | |
| 1900 | end | |
| 1901 | ||
| 1902 | for i = 1,4.7,0.1 do | |
| 1903 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
| 1904 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
| 1905 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
| 1906 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
| 1907 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
| 1908 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
| 1909 | end | |
| 1910 | wait(.6) | |
| 1911 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1912 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
| 1913 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01)
| |
| 1914 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
| 1915 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere")
| |
| 1916 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright blue"), "Sphere")
| |
| 1917 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal purple"), "Sphere")
| |
| 1918 | ||
| 1919 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
| 1920 | if v:FindFirstChild("Head") then
| |
| 1921 | Eviscerate(v) | |
| 1922 | end | |
| 1923 | end | |
| 1924 | ||
| 1925 | for i = 1,4.7,0.1 do | |
| 1926 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
| 1927 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
| 1928 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
| 1929 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
| 1930 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
| 1931 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
| 1932 | end | |
| 1933 | wait(.6) | |
| 1934 | attack = false | |
| 1935 | hum.WalkSpeed = 8 | |
| 1936 | end | |
| 1937 | function dejzrXD() | |
| 1938 | attack = true | |
| 1939 | hum.WalkSpeed = 20 | |
| 1940 | for i = 0, 4, 0.1 do | |
| 1941 | swait() | |
| 1942 | Cso("2545012765", char, 10, 1)
| |
| 1943 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
| 1944 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2) | |
| 1945 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
| 1946 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 1947 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 1948 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 1949 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 1950 | end | |
| 1951 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
| 1952 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
| 1953 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
| 1954 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
| 1955 | CameraEnshaking(4, 5) | |
| 1956 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
| 1957 | if v:FindFirstChild("Head") then
| |
| 1958 | Eviscerate(v) | |
| 1959 | end | |
| 1960 | end | |
| 1961 | for i = 0, 2, 0.1 do | |
| 1962 | swait() | |
| 1963 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
| 1964 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2) | |
| 1965 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
| 1966 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 1967 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 1968 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 1969 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 1970 | end | |
| 1971 | attack = false | |
| 1972 | Speed = 20 | |
| 1973 | end | |
| 1974 | ||
| 1975 | function Attack() | |
| 1976 | attack = true | |
| 1977 | for i = 0, 2.6, 0.1 do | |
| 1978 | swait() | |
| 1979 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2) | |
| 1980 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2) | |
| 1981 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2) | |
| 1982 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2) | |
| 1983 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
| 1984 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2) | |
| 1985 | end | |
| 1986 | Cso("2545012765", tors, 10, 1)
| |
| 1987 | CameraEnshaking(2, 15) | |
| 1988 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
| |
| 1989 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
| |
| 1990 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05)
| |
| 1991 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
| 1992 | if v:FindFirstChild("Head") then
| |
| 1993 | Eviscerate(v) | |
| 1994 | end | |
| 1995 | end | |
| 1996 | for i = 0, 3, 0.1 do | |
| 1997 | swait() | |
| 1998 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3) | |
| 1999 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3) | |
| 2000 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3) | |
| 2001 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
| 2002 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
| 2003 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3) | |
| 2004 | end | |
| 2005 | attack = false | |
| 2006 | end | |
| 2007 | function Orb_Strike() | |
| 2008 | attack = true | |
| 2009 | Cso("2545012765", char, 7, 0.8)
| |
| 2010 | for i = 0, 9 do | |
| 2011 | Aura(1, 1.5, "Add", mouse.Hit * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 45, -0.05, maincolor, 0, "Sphere") | |
| 2012 | Aura(2, 1.5, "Add", mouse.Hit * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 45, -0.05, maincolor, 0, "Sphere") | |
| 2013 | end | |
| 2014 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
| 2015 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
| 2016 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
| 2017 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
| 2018 | for i, v in pairs(FindNearestHead(Mouse.Hit.p, 14.5)) do | |
| 2019 | if v:FindFirstChild("Head") then
| |
| 2020 | Eviscerate(v) | |
| 2021 | end | |
| 2022 | end | |
| 2023 | attack = false | |
| 2024 | hum.WalkSpeed = 20 | |
| 2025 | end | |
| 2026 | ------------------------------------------------------- | |
| 2027 | --End Attacks N Stuff-- | |
| 2028 | ------------------------------------------------------- | |
| 2029 | mouse.KeyDown:connect(function(key) | |
| 2030 | if attack == false then | |
| 2031 | if key == 'e' then | |
| 2032 | icando() | |
| 2033 | elseif key == 'c' then | |
| 2034 | Blood_ball() | |
| 2035 | elseif key == "x" then | |
| 2036 | blast() | |
| 2037 | elseif key == "y" then | |
| 2038 | Taunt2() | |
| 2039 | elseif key == 'h' then | |
| 2040 | Orb_Strike() | |
| 2041 | elseif key == "z" then | |
| 2042 | dejzrXD() | |
| 2043 | end | |
| 2044 | end | |
| 2045 | end) | |
| 2046 | ||
| 2047 | mouse.Button1Down:connect(function(key) | |
| 2048 | if attack == false then | |
| 2049 | Attack() | |
| 2050 | end | |
| 2051 | end) | |
| 2052 | ||
| 2053 | ||
| 2054 | ||
| 2055 | ------------------------------------------------------- | |
| 2056 | --Start Animations-- | |
| 2057 | ------------------------------------------------------- | |
| 2058 | print("I'M MAKING MAC N CHEESE AND NOBODY CAN STOP ME!")
| |
| 2059 | while true do | |
| 2060 | swait() | |
| 2061 | sine = sine + change | |
| 2062 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 2063 | local velderp = root.Velocity.y | |
| 2064 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
| 2065 | if equipped == true or equipped == false then | |
| 2066 | if attack == false then | |
| 2067 | idle = idle + 1 | |
| 2068 | else | |
| 2069 | idle = 0 | |
| 2070 | end | |
| 2071 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 2072 | Anim = "Jump" | |
| 2073 | if attack == false then | |
| 2074 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
| 2075 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2076 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 2077 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 2078 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
| 2079 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
| 2080 | end | |
| 2081 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 2082 | Anim = "Fall" | |
| 2083 | if attack == false then | |
| 2084 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
| 2085 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2086 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
| 2087 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
| 2088 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
| 2089 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
| 2090 | end | |
| 2091 | elseif torvel < 1 and hitfloor ~= nil then | |
| 2092 | Anim = "Idle" | |
| 2093 | change = 1 | |
| 2094 | if attack == false then | |
| 2095 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 2096 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2097 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
| 2098 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 2099 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2100 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2101 | end | |
| 2102 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
| 2103 | Anim = "Walk" | |
| 2104 | change = 1 | |
| 2105 | if attack == false then | |
| 2106 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
| 2107 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 2108 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2109 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2110 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2111 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2112 | end | |
| 2113 | elseif torvel >= 25 and hitfloor ~= nil then | |
| 2114 | Anim = "Sprint" | |
| 2115 | change = 1.35 | |
| 2116 | if attack == false then | |
| 2117 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
| 2118 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 2119 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2120 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2121 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
| 2122 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
| 2123 | end | |
| 2124 | end | |
| 2125 | end | |
| 2126 | if 0 < #Effects then | |
| 2127 | for e = 1, #Effects do | |
| 2128 | if Effects[e] ~= nil then | |
| 2129 | local Thing = Effects[e] | |
| 2130 | if Thing ~= nil then | |
| 2131 | local Part = Thing[1] | |
| 2132 | local Mode = Thing[2] | |
| 2133 | local Delay = Thing[3] | |
| 2134 | local IncX = Thing[4] | |
| 2135 | local IncY = Thing[5] | |
| 2136 | local IncZ = Thing[6] | |
| 2137 | if 1 >= Thing[1].Transparency then | |
| 2138 | if Thing[2] == "Block1" then | |
| 2139 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2140 | local Mesh = Thing[1].Mesh | |
| 2141 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2142 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2143 | elseif Thing[2] == "Block2" then | |
| 2144 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 2145 | local Mesh = Thing[7] | |
| 2146 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2147 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2148 | elseif Thing[2] == "Block3" then | |
| 2149 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
| 2150 | local Mesh = Thing[7] | |
| 2151 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2152 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2153 | elseif Thing[2] == "Cylinder" then | |
| 2154 | local Mesh = Thing[1].Mesh | |
| 2155 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2156 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2157 | elseif Thing[2] == "Blood" then | |
| 2158 | local Mesh = Thing[7] | |
| 2159 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 2160 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2161 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2162 | elseif Thing[2] == "Elec" then | |
| 2163 | local Mesh = Thing[1].Mesh | |
| 2164 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 2165 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2166 | elseif Thing[2] == "Disappear" then | |
| 2167 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2168 | elseif Thing[2] == "Shatter" then | |
| 2169 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2170 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 2171 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 2172 | Thing[6] = Thing[6] + Thing[5] | |
| 2173 | end | |
| 2174 | else | |
| 2175 | Part.Parent = nil | |
| 2176 | table.remove(Effects, e) | |
| 2177 | end | |
| 2178 | end | |
| 2179 | end | |
| 2180 | end | |
| 2181 | end | |
| 2182 | end | |
| 2183 | ------------------------------------------------------- | |
| 2184 | --End Animations And Script-- | |
| 2185 | ------------------------------------------------------- |