SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ Name : Gale Fighter ]]-- | |
| 2 | ------------------------------------------------------- | |
| 3 | --A Collaboration Between makhail07 and KillerDarkness0105 | |
| 4 | ||
| 5 | --Base Animaion by makhail07, attacks by KillerDarkness0105 | |
| 6 | ------------------------------------------------------- | |
| 7 | -- This script has convert to FE by who i don't know? | |
| 8 | ||
| 9 | ----------------------------------------------------- | |
| 10 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 11 | local Player,game,owner = owner,game | |
| 12 | local RealPlayer = Player | |
| 13 | do | |
| 14 | print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
| |
| 15 | local rp = RealPlayer | |
| 16 | script.Parent = rp.Character | |
| 17 | ||
| 18 | --RemoteEvent for communicating | |
| 19 | local Event = Instance.new("RemoteEvent")
| |
| 20 | Event.Name = "UserInput_Event" | |
| 21 | ||
| 22 | --Fake event to make stuff like Mouse.KeyDown work | |
| 23 | local function fakeEvent() | |
| 24 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 25 | t.connect = t.Connect | |
| 26 | return t | |
| 27 | end | |
| 28 | ||
| 29 | --Creating fake input objects with fake variables | |
| 30 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 31 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 32 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 33 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 34 | end} | |
| 35 | --Merged 2 functions into one by checking amount of arguments | |
| 36 | CAS.UnbindAction = CAS.BindAction | |
| 37 | ||
| 38 | --This function will trigger the events that have been :Connect()'ed | |
| 39 | local function te(self,ev,...) | |
| 40 | local t = m[ev] | |
| 41 | if t and t._fakeEvent then | |
| 42 | for _,f in pairs(t.Functions) do | |
| 43 | f(...) | |
| 44 | end | |
| 45 | end | |
| 46 | end | |
| 47 | m.TrigEvent = te | |
| 48 | UIS.TrigEvent = te | |
| 49 | ||
| 50 | Event.OnServerEvent:Connect(function(plr,io) | |
| 51 | if plr~=rp then return end | |
| 52 | m.Target = io.Target | |
| 53 | m.Hit = io.Hit | |
| 54 | if not io.isMouse then | |
| 55 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 56 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 57 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 58 | end | |
| 59 | for _,t in pairs(CAS.Actions) do | |
| 60 | for _,k in pairs(t.Keys) do | |
| 61 | if k==io.KeyCode then | |
| 62 | t.Function(t.Name,io.UserInputState,io) | |
| 63 | end | |
| 64 | end | |
| 65 | end | |
| 66 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 67 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 68 | end | |
| 69 | end) | |
| 70 | Event.Parent = NLS([==[ | |
| 71 | local Player = game:GetService("Players").LocalPlayer
| |
| 72 | local Event = script:WaitForChild("UserInput_Event")
| |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local UIS = game:GetService("UserInputService")
| |
| 76 | local input = function(io,a) | |
| 77 | if a then return end | |
| 78 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 79 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 80 | end | |
| 81 | UIS.InputBegan:Connect(input) | |
| 82 | UIS.InputEnded:Connect(input) | |
| 83 | ||
| 84 | local h,t | |
| 85 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 86 | --If player is not moving their mouse, client won't fire events | |
| 87 | while wait(1/30) do | |
| 88 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 89 | h,t=Mouse.Hit,Mouse.Target | |
| 90 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 91 | end | |
| 92 | end]==],Player.Character) | |
| 93 | ||
| 94 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 95 | --Real game object | |
| 96 | local _rg = game | |
| 97 | ||
| 98 | --Metatable for fake service | |
| 99 | local fsmt = {
| |
| 100 | __index = function(self,k) | |
| 101 | local s = rawget(self,"_RealService") | |
| 102 | if s then return s[k] end | |
| 103 | end, | |
| 104 | __newindex = function(self,k,v) | |
| 105 | local s = rawget(self,"_RealService") | |
| 106 | if s then s[k]=v end | |
| 107 | end, | |
| 108 | __call = function(self,...) | |
| 109 | local s = rawget(self,"_RealService") | |
| 110 | if s then return s(...) end | |
| 111 | end | |
| 112 | } | |
| 113 | local function FakeService(t,RealService) | |
| 114 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 115 | return setmetatable(t,fsmt) | |
| 116 | end | |
| 117 | ||
| 118 | --Fake game object | |
| 119 | local g = {
| |
| 120 | GetService = function(self,s) | |
| 121 | return self[s] | |
| 122 | end, | |
| 123 | Players = FakeService({
| |
| 124 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 125 | },"Players"), | |
| 126 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 127 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 128 | } | |
| 129 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 130 | g.service = g.GetService | |
| 131 | ||
| 132 | g.RunService = FakeService({
| |
| 133 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 134 | BindToRenderStep = function(self,name,_,fun) | |
| 135 | ||
| 136 | end, | |
| 137 | UnbindFromRenderStep = function(self,name) | |
| 138 | self._btrs[name]:Disconnect() | |
| 139 | end, | |
| 140 | },"RunService") | |
| 141 | ||
| 142 | setmetatable(g,{
| |
| 143 | __index=function(self,s) | |
| 144 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 145 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 146 | end, | |
| 147 | __newindex = fsmt.__newindex, | |
| 148 | __call = fsmt.__call | |
| 149 | }) | |
| 150 | --Changing owner to fake player object to support owner:GetMouse() | |
| 151 | game,owner = g,g.Players.LocalPlayer | |
| 152 | end | |
| 153 | ||
| 154 | local FavIDs = {
| |
| 155 | 340106355, --Nefl Crystals | |
| 156 | 927529620, --Dimension | |
| 157 | 876981900, --Fantasy | |
| 158 | 398987889, --Ordinary Days | |
| 159 | 1117396305, --Oh wait, it's you. | |
| 160 | 885996042, --Action Winter Journey | |
| 161 | 919231299, --Sprawling Idiot Effigy | |
| 162 | 743466274, --Good Day Sunshine | |
| 163 | 727411183, --Knife Fight | |
| 164 | 1402748531, --The Earth Is Counting On You! | |
| 165 | 595230126 --Robot Language | |
| 166 | } | |
| 167 | ||
| 168 | ||
| 169 | ||
| 170 | --The reality of my life isn't real but a Universe -makhail07 | |
| 171 | wait(0.2) | |
| 172 | local plr = game:service'Players'.LocalPlayer | |
| 173 | print('Local User is '..plr.Name)
| |
| 174 | print('Gale Fighter Loaded')
| |
| 175 | print('The Fighter that is as fast as wind, a true Fighter')
| |
| 176 | local char = plr.Character | |
| 177 | local hum = char.Humanoid | |
| 178 | local hed = char.Head | |
| 179 | local root = char.HumanoidRootPart | |
| 180 | local rootj = root.RootJoint | |
| 181 | local tors = char.Torso | |
| 182 | local ra = char["Right Arm"] | |
| 183 | local la = char["Left Arm"] | |
| 184 | local rl = char["Right Leg"] | |
| 185 | local ll = char["Left Leg"] | |
| 186 | local neck = tors["Neck"] | |
| 187 | local mouse = plr:GetMouse() | |
| 188 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 189 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 190 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 191 | local maincolor = BrickColor.new("Institutional white")
| |
| 192 | hum.MaxHealth = 200 | |
| 193 | hum.Health = 200 | |
| 194 | ||
| 195 | ------------------------------------------------------- | |
| 196 | --Start Good Stuff-- | |
| 197 | ------------------------------------------------------- | |
| 198 | cam = game.Workspace.CurrentCamera | |
| 199 | CF = CFrame.new | |
| 200 | angles = CFrame.Angles | |
| 201 | attack = false | |
| 202 | Euler = CFrame.fromEulerAnglesXYZ | |
| 203 | Rad = math.rad | |
| 204 | IT = Instance.new | |
| 205 | BrickC = BrickColor.new | |
| 206 | Cos = math.cos | |
| 207 | Acos = math.acos | |
| 208 | Sin = math.sin | |
| 209 | Asin = math.asin | |
| 210 | Abs = math.abs | |
| 211 | Mrandom = math.random | |
| 212 | Floor = math.floor | |
| 213 | ------------------------------------------------------- | |
| 214 | --End Good Stuff-- | |
| 215 | ------------------------------------------------------- | |
| 216 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 217 | RSH, LSH = nil, nil | |
| 218 | RW = Instance.new("Weld")
| |
| 219 | LW = Instance.new("Weld")
| |
| 220 | RH = tors["Right Hip"] | |
| 221 | LH = tors["Left Hip"] | |
| 222 | RSH = tors["Right Shoulder"] | |
| 223 | LSH = tors["Left Shoulder"] | |
| 224 | RSH.Parent = nil | |
| 225 | LSH.Parent = nil | |
| 226 | RW.Name = "RW" | |
| 227 | RW.Part0 = tors | |
| 228 | RW.C0 = CF(1.5, 0.5, 0) | |
| 229 | RW.C1 = CF(0, 0.5, 0) | |
| 230 | RW.Part1 = ra | |
| 231 | RW.Parent = tors | |
| 232 | LW.Name = "LW" | |
| 233 | LW.Part0 = tors | |
| 234 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 235 | LW.C1 = CF(0, 0.5, 0) | |
| 236 | LW.Part1 = la | |
| 237 | LW.Parent = tors | |
| 238 | vt = Vector3.new | |
| 239 | Effects = {}
| |
| 240 | ------------------------------------------------------- | |
| 241 | --Start HeartBeat-- | |
| 242 | ------------------------------------------------------- | |
| 243 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 244 | ArtificialHB.Name = "Heartbeat" | |
| 245 | script:WaitForChild("Heartbeat")
| |
| 246 | ||
| 247 | frame = 1 / 90 | |
| 248 | tf = 0 | |
| 249 | allowframeloss = false | |
| 250 | tossremainder = false | |
| 251 | ||
| 252 | ||
| 253 | lastframe = tick() | |
| 254 | script.Heartbeat:Fire() | |
| 255 | ||
| 256 | ||
| 257 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 258 | tf = tf + s | |
| 259 | if tf >= frame then | |
| 260 | if allowframeloss then | |
| 261 | script.Heartbeat:Fire() | |
| 262 | lastframe = tick() | |
| 263 | else | |
| 264 | for i = 1, math.floor(tf / frame) do | |
| 265 | script.Heartbeat:Fire() | |
| 266 | end | |
| 267 | lastframe = tick() | |
| 268 | end | |
| 269 | if tossremainder then | |
| 270 | tf = 0 | |
| 271 | else | |
| 272 | tf = tf - frame * math.floor(tf / frame) | |
| 273 | end | |
| 274 | end | |
| 275 | end) | |
| 276 | ------------------------------------------------------- | |
| 277 | --End HeartBeat-- | |
| 278 | ------------------------------------------------------- | |
| 279 | ||
| 280 | ||
| 281 | ||
| 282 | ------------------------------------------------------- | |
| 283 | --Start Combo Function-- | |
| 284 | ------------------------------------------------------- | |
| 285 | local comboing = false | |
| 286 | local combohits = 0 | |
| 287 | local combotime = 0 | |
| 288 | local maxtime = 65 | |
| 289 | ||
| 290 | ||
| 291 | ||
| 292 | function sandbox(var,func) | |
| 293 | local env = getfenv(func) | |
| 294 | local newenv = setmetatable({},{
| |
| 295 | __index = function(self,k) | |
| 296 | if k=="script" then | |
| 297 | return var | |
| 298 | else | |
| 299 | return env[k] | |
| 300 | end | |
| 301 | end, | |
| 302 | }) | |
| 303 | setfenv(func,newenv) | |
| 304 | return func | |
| 305 | end | |
| 306 | cors = {}
| |
| 307 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 308 | comboframe = Instance.new("ScreenGui")
| |
| 309 | Frame1 = Instance.new("Frame")
| |
| 310 | Frame2 = Instance.new("Frame")
| |
| 311 | TextLabel3 = Instance.new("TextLabel")
| |
| 312 | comboframe.Name = "combinserter" | |
| 313 | comboframe.Parent = mas | |
| 314 | Frame1.Name = "combtimegui" | |
| 315 | Frame1.Parent = comboframe | |
| 316 | Frame1.Size = UDim2.new(0, 300, 0, 14) | |
| 317 | Frame1.Position = UDim2.new(0, 900, 0.629999971, 0) | |
| 318 | Frame1.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 319 | Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451) | |
| 320 | Frame1.BorderSizePixel = 5 | |
| 321 | Frame2.Name = "combtimeoverlay" | |
| 322 | Frame2.Parent = Frame1 | |
| 323 | Frame2.Size = UDim2.new(0, 0, 0, 14) | |
| 324 | Frame2.BackgroundColor3 = Color3.new(0, 1, 0) | |
| 325 | Frame2.ZIndex = 2 | |
| 326 | TextLabel3.Parent = Frame2 | |
| 327 | TextLabel3.Transparency = 0 | |
| 328 | TextLabel3.Size = UDim2.new(0, 300, 0, 50) | |
| 329 | TextLabel3.Text ="Hits: "..combohits | |
| 330 | TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0) | |
| 331 | TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 332 | TextLabel3.BackgroundTransparency = 1 | |
| 333 | TextLabel3.Font = Enum.Font.Bodoni | |
| 334 | TextLabel3.FontSize = Enum.FontSize.Size60 | |
| 335 | TextLabel3.TextColor3 = Color3.new(0, 1, 0) | |
| 336 | TextLabel3.TextStrokeTransparency = 0 | |
| 337 | gui = game:GetService("Players").LocalPlayer.PlayerGui
| |
| 338 | for i,v in pairs(mas:GetChildren()) do | |
| 339 | v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
| |
| 340 | pcall(function() v:MakeJoints() end) | |
| 341 | end | |
| 342 | mas:Destroy() | |
| 343 | for i,v in pairs(cors) do | |
| 344 | spawn(function() | |
| 345 | pcall(v) | |
| 346 | end) | |
| 347 | end | |
| 348 | ||
| 349 | ||
| 350 | ||
| 351 | ||
| 352 | ||
| 353 | coroutine.resume(coroutine.create(function() | |
| 354 | while true do | |
| 355 | wait() | |
| 356 | ||
| 357 | ||
| 358 | if combotime>65 then | |
| 359 | combotime = 65 | |
| 360 | end | |
| 361 | ||
| 362 | ||
| 363 | ||
| 364 | ||
| 365 | ||
| 366 | if combotime>.1 and comboing == true then | |
| 367 | TextLabel3.Transparency = 0 | |
| 368 | TextLabel3.TextStrokeTransparency = 0 | |
| 369 | TextLabel3.BackgroundTransparency = 1 | |
| 370 | Frame1.Transparency = 0 | |
| 371 | Frame2.Transparency = 0 | |
| 372 | TextLabel3.Text ="Hits: "..combohits | |
| 373 | combotime = combotime - .34 | |
| 374 | Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42) | |
| 375 | end | |
| 376 | ||
| 377 | ||
| 378 | ||
| 379 | ||
| 380 | if combotime<.1 then | |
| 381 | TextLabel3.BackgroundTransparency = 1 | |
| 382 | TextLabel3.Transparency = 1 | |
| 383 | TextLabel3.TextStrokeTransparency = 1 | |
| 384 | ||
| 385 | Frame2.Size = UDim2.new(0, 0, 0, 14) | |
| 386 | combotime = 0 | |
| 387 | comboing = false | |
| 388 | Frame1.Transparency = 1 | |
| 389 | Frame2.Transparency = 1 | |
| 390 | combohits = 0 | |
| 391 | ||
| 392 | end | |
| 393 | end | |
| 394 | end)) | |
| 395 | ||
| 396 | ||
| 397 | ||
| 398 | ------------------------------------------------------- | |
| 399 | --End Combo Function-- | |
| 400 | ------------------------------------------------------- | |
| 401 | ||
| 402 | ------------------------------------------------------- | |
| 403 | --Start Important Functions-- | |
| 404 | ------------------------------------------------------- | |
| 405 | function swait(num) | |
| 406 | if num == 0 or num == nil then | |
| 407 | game:service("RunService").Stepped:wait(0)
| |
| 408 | else | |
| 409 | for i = 0, num do | |
| 410 | game:service("RunService").Stepped:wait(0)
| |
| 411 | end | |
| 412 | end | |
| 413 | end | |
| 414 | function thread(f) | |
| 415 | coroutine.resume(coroutine.create(f)) | |
| 416 | end | |
| 417 | function clerp(a, b, t) | |
| 418 | local qa = {
| |
| 419 | QuaternionFromCFrame(a) | |
| 420 | } | |
| 421 | local qb = {
| |
| 422 | QuaternionFromCFrame(b) | |
| 423 | } | |
| 424 | local ax, ay, az = a.x, a.y, a.z | |
| 425 | local bx, by, bz = b.x, b.y, b.z | |
| 426 | local _t = 1 - t | |
| 427 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 428 | end | |
| 429 | function QuaternionFromCFrame(cf) | |
| 430 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 431 | local trace = m00 + m11 + m22 | |
| 432 | if trace > 0 then | |
| 433 | local s = math.sqrt(1 + trace) | |
| 434 | local recip = 0.5 / s | |
| 435 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 436 | else | |
| 437 | local i = 0 | |
| 438 | if m00 < m11 then | |
| 439 | i = 1 | |
| 440 | end | |
| 441 | if m22 > (i == 0 and m00 or m11) then | |
| 442 | i = 2 | |
| 443 | end | |
| 444 | if i == 0 then | |
| 445 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 446 | local recip = 0.5 / s | |
| 447 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 448 | elseif i == 1 then | |
| 449 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 450 | local recip = 0.5 / s | |
| 451 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 452 | elseif i == 2 then | |
| 453 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 454 | local recip = 0.5 / s | |
| 455 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 456 | end | |
| 457 | end | |
| 458 | end | |
| 459 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 460 | local xs, ys, zs = x + x, y + y, z + z | |
| 461 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 462 | local xx = x * xs | |
| 463 | local xy = x * ys | |
| 464 | local xz = x * zs | |
| 465 | local yy = y * ys | |
| 466 | local yz = y * zs | |
| 467 | local zz = z * zs | |
| 468 | 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)) | |
| 469 | end | |
| 470 | function QuaternionSlerp(a, b, t) | |
| 471 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 472 | local startInterp, finishInterp | |
| 473 | if cosTheta >= 1.0E-4 then | |
| 474 | if 1 - cosTheta > 1.0E-4 then | |
| 475 | local theta = math.acos(cosTheta) | |
| 476 | local invSinTheta = 1 / Sin(theta) | |
| 477 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 478 | finishInterp = Sin(t * theta) * invSinTheta | |
| 479 | else | |
| 480 | startInterp = 1 - t | |
| 481 | finishInterp = t | |
| 482 | end | |
| 483 | elseif 1 + cosTheta > 1.0E-4 then | |
| 484 | local theta = math.acos(-cosTheta) | |
| 485 | local invSinTheta = 1 / Sin(theta) | |
| 486 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 487 | finishInterp = Sin(t * theta) * invSinTheta | |
| 488 | else | |
| 489 | startInterp = t - 1 | |
| 490 | finishInterp = t | |
| 491 | end | |
| 492 | 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 | |
| 493 | end | |
| 494 | function rayCast(Position, Direction, Range, Ignore) | |
| 495 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 496 | end | |
| 497 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 498 | local Create = RbxUtility.Create | |
| 499 | ||
| 500 | ------------------------------------------------------- | |
| 501 | --Start Damage Function-- | |
| 502 | ------------------------------------------------------- | |
| 503 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 504 | if hit.Parent == nil then | |
| 505 | return | |
| 506 | end | |
| 507 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 508 | for _, v in pairs(hit.Parent:children()) do | |
| 509 | if v:IsA("Humanoid") then
| |
| 510 | h = v | |
| 511 | end | |
| 512 | end | |
| 513 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 514 | ||
| 515 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 516 | end | |
| 517 | ||
| 518 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 519 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 520 | if hit.Parent.DebounceHit.Value == true then | |
| 521 | return | |
| 522 | end | |
| 523 | end | |
| 524 | if insta == true then | |
| 525 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 526 | end | |
| 527 | local c = Create("ObjectValue"){
| |
| 528 | Name = "creator", | |
| 529 | Value = game:service("Players").LocalPlayer,
| |
| 530 | Parent = h, | |
| 531 | } | |
| 532 | game:GetService("Debris"):AddItem(c, .5)
| |
| 533 | if HitSound ~= nil and HitPitch ~= nil then | |
| 534 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 535 | end | |
| 536 | local Damage = math.random(minim, maxim) | |
| 537 | local blocked = false | |
| 538 | local block = hit.Parent:findFirstChild("Block")
| |
| 539 | if block ~= nil then | |
| 540 | if block.className == "IntValue" then | |
| 541 | if block.Value > 0 then | |
| 542 | blocked = true | |
| 543 | block.Value = block.Value - 1 | |
| 544 | print(block.Value) | |
| 545 | end | |
| 546 | end | |
| 547 | end | |
| 548 | if blocked == false then | |
| 549 | h.Health = h.Health - Damage | |
| 550 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 551 | else | |
| 552 | h.Health = h.Health - (Damage / 2) | |
| 553 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 554 | end | |
| 555 | if Type == "Knockdown" then | |
| 556 | local hum = hit.Parent.Humanoid | |
| 557 | hum.PlatformStand = true | |
| 558 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 559 | swait(1) | |
| 560 | HHumanoid.PlatformStand = false | |
| 561 | end), hum) | |
| 562 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 563 | local bodvol = Create("BodyVelocity"){
| |
| 564 | velocity = angle * knockback, | |
| 565 | P = 5000, | |
| 566 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 567 | Parent = hit, | |
| 568 | } | |
| 569 | local rl = Create("BodyAngularVelocity"){
| |
| 570 | P = 3000, | |
| 571 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 572 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 573 | Parent = hit, | |
| 574 | } | |
| 575 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 576 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 577 | elseif Type == "Normal" then | |
| 578 | local vp = Create("BodyVelocity"){
| |
| 579 | P = 500, | |
| 580 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 581 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 582 | } | |
| 583 | if knockback > 0 then | |
| 584 | vp.Parent = hit.Parent.Torso | |
| 585 | end | |
| 586 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 587 | elseif Type == "Up" then | |
| 588 | local bodyVelocity = Create("BodyVelocity"){
| |
| 589 | velocity = Vector3.new(0, 20, 0), | |
| 590 | P = 5000, | |
| 591 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 592 | Parent = hit, | |
| 593 | } | |
| 594 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 595 | elseif Type == "DarkUp" then | |
| 596 | coroutine.resume(coroutine.create(function() | |
| 597 | for i = 0, 1, 0.1 do | |
| 598 | swait() | |
| 599 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 600 | end | |
| 601 | end)) | |
| 602 | local bodyVelocity = Create("BodyVelocity"){
| |
| 603 | velocity = Vector3.new(0, 20, 0), | |
| 604 | P = 5000, | |
| 605 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 606 | Parent = hit, | |
| 607 | } | |
| 608 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 609 | elseif Type == "Snare" then | |
| 610 | local bp = Create("BodyPosition"){
| |
| 611 | P = 2000, | |
| 612 | D = 100, | |
| 613 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 614 | position = hit.Parent.Torso.Position, | |
| 615 | Parent = hit.Parent.Torso, | |
| 616 | } | |
| 617 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 618 | elseif Type == "Freeze" then | |
| 619 | local BodPos = Create("BodyPosition"){
| |
| 620 | P = 50000, | |
| 621 | D = 1000, | |
| 622 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 623 | position = hit.Parent.Torso.Position, | |
| 624 | Parent = hit.Parent.Torso, | |
| 625 | } | |
| 626 | local BodGy = Create("BodyGyro") {
| |
| 627 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 628 | P = 20e+003, | |
| 629 | Parent = hit.Parent.Torso, | |
| 630 | cframe = hit.Parent.Torso.CFrame, | |
| 631 | } | |
| 632 | hit.Parent.Torso.Anchored = true | |
| 633 | coroutine.resume(coroutine.create(function(Part) | |
| 634 | swait(1.5) | |
| 635 | Part.Anchored = false | |
| 636 | end), hit.Parent.Torso) | |
| 637 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 638 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 639 | end | |
| 640 | local debounce = Create("BoolValue"){
| |
| 641 | Name = "DebounceHit", | |
| 642 | Parent = hit.Parent, | |
| 643 | Value = true, | |
| 644 | } | |
| 645 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 646 | c = Create("ObjectValue"){
| |
| 647 | Name = "creator", | |
| 648 | Value = Player, | |
| 649 | Parent = h, | |
| 650 | } | |
| 651 | game:GetService("Debris"):AddItem(c, .5)
| |
| 652 | end | |
| 653 | end | |
| 654 | ||
| 655 | ||
| 656 | ||
| 657 | ||
| 658 | kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 659 | if hit.Parent==nil then | |
| 660 | return | |
| 661 | end | |
| 662 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 663 | for _,v in pairs(hit.Parent:children()) do | |
| 664 | if v:IsA("Humanoid") then
| |
| 665 | h=v | |
| 666 | end | |
| 667 | end | |
| 668 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 669 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 670 | end | |
| 671 | if hit.Parent.className=="Hat" then | |
| 672 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 673 | end | |
| 674 | if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 675 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 676 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 677 | return | |
| 678 | end]] | |
| 679 | -- hs(hit,1.2) | |
| 680 | c=Instance.new("ObjectValue")
| |
| 681 | c.Name="creator" | |
| 682 | c.Value=game:service("Players").LocalPlayer
| |
| 683 | c.Parent=h | |
| 684 | game:GetService("Debris"):AddItem(c,.5)
| |
| 685 | Damage=math.random(minim,maxim) | |
| 686 | -- h:TakeDamage(Damage) | |
| 687 | blocked=false | |
| 688 | block=hit.Parent:findFirstChild("Block")
| |
| 689 | if block~=nil then | |
| 690 | print(block.className) | |
| 691 | if block.className=="NumberValue" then | |
| 692 | if block.Value>0 then | |
| 693 | blocked=true | |
| 694 | if decreaseblock==nil then | |
| 695 | block.Value=block.Value-1 | |
| 696 | end | |
| 697 | end | |
| 698 | end | |
| 699 | if block.className=="IntValue" then | |
| 700 | if block.Value>0 then | |
| 701 | blocked=true | |
| 702 | if decreaseblock~=nil then | |
| 703 | block.Value=block.Value-1 | |
| 704 | end | |
| 705 | end | |
| 706 | end | |
| 707 | end | |
| 708 | if blocked==false then | |
| 709 | -- h:TakeDamage(Damage) | |
| 710 | h.Health=h.Health-Damage | |
| 711 | kshowDamage(hit.Parent,Damage,.5,BrickColor.new("White"))
| |
| 712 | else | |
| 713 | h.Health=h.Health-(Damage/2) | |
| 714 | kshowDamage(hit.Parent,Damage/2,.5,BrickColor.new("White"))
| |
| 715 | end | |
| 716 | if Type=="Knockdown" then | |
| 717 | hum=hit.Parent.Humanoid | |
| 718 | hum.PlatformStand=true | |
| 719 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 720 | swait(1) | |
| 721 | HHumanoid.PlatformStand=false | |
| 722 | end),hum) | |
| 723 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 724 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 725 | local bodvol=Instance.new("BodyVelocity")
| |
| 726 | bodvol.velocity=angle*knockback | |
| 727 | bodvol.P=5000 | |
| 728 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 729 | bodvol.Parent=hit | |
| 730 | rl=Instance.new("BodyAngularVelocity")
| |
| 731 | rl.P=3000 | |
| 732 | rl.maxTorque=Vector3.new(500,500,500) | |
| 733 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 734 | rl.Parent=hit | |
| 735 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 736 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 737 | elseif Type=="Normal" then | |
| 738 | vp=Instance.new("BodyVelocity")
| |
| 739 | vp.P=500 | |
| 740 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 741 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 742 | if KnockbackType==1 then | |
| 743 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 744 | elseif KnockbackType==2 then | |
| 745 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 746 | end | |
| 747 | if knockback>0 then | |
| 748 | vp.Parent=hit.Parent.Torso | |
| 749 | end | |
| 750 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 751 | elseif Type=="Up" then | |
| 752 | hit.Parent.Humanoid.PlatformStand = true | |
| 753 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 754 | bodyVelocity.velocity=vt(0,15,0) | |
| 755 | bodyVelocity.P=5000 | |
| 756 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 757 | bodyVelocity.Parent=hit | |
| 758 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 759 | rl=Instance.new("BodyAngularVelocity")
| |
| 760 | rl.P=3000 | |
| 761 | rl.AngularVelocity = Vector3.new(2000,2000,2000) | |
| 762 | rl.MaxTorque = Vector3.new(40000,40000,40000) | |
| 763 | rl.Parent=hit | |
| 764 | hit.Parent.Humanoid.PlatformStand = false | |
| 765 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 766 | elseif Type=="Snare" then | |
| 767 | bp=Instance.new("BodyPosition")
| |
| 768 | bp.P=2000 | |
| 769 | bp.D=100 | |
| 770 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 771 | bp.position=hit.Parent.Torso.Position | |
| 772 | bp.Parent=hit.Parent.Torso | |
| 773 | game:GetService("Debris"):AddItem(bp,1)
| |
| 774 | elseif Type=="Float" then | |
| 775 | hit.Parent.Humanoid.PlatformStand = true | |
| 776 | bp=Instance.new("BodyPosition")
| |
| 777 | bp.P=2000 | |
| 778 | bp.D=400 | |
| 779 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 780 | bp.position=hit.Parent.Torso.Position+vt(0,35,24) | |
| 781 | bp.Parent=hit.Parent.Torso | |
| 782 | ||
| 783 | local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
| |
| 784 | rl.P=377705 | |
| 785 | rl.maxTorque=Vector3.new(1,1,1)*500 | |
| 786 | rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3)) | |
| 787 | ||
| 788 | local BF = Instance.new("BodyForce",hit.Parent.Torso)
| |
| 789 | BF.force = Vector3.new(0, workspace.Gravity/1.10, 0) | |
| 790 | game:GetService("Debris"):AddItem(bp,5)
| |
| 791 | game:GetService("Debris"):AddItem(BF,5)
| |
| 792 | game:GetService("Debris"):AddItem(rl,5)
| |
| 793 | elseif Type=="Target" then | |
| 794 | if Targetting==false then | |
| 795 | ZTarget=hit.Parent.Torso | |
| 796 | coroutine.resume(coroutine.create(function(Part) | |
| 797 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 798 | swait(5) | |
| 799 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 800 | end),ZTarget) | |
| 801 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 802 | targetgui=Instance.new("BillboardGui")
| |
| 803 | targetgui.Parent=ZTarget | |
| 804 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 805 | targ=Instance.new("ImageLabel")
| |
| 806 | targ.Parent=targetgui | |
| 807 | targ.BackgroundTransparency=1 | |
| 808 | targ.Image="rbxassetid://4834067" | |
| 809 | targ.Size=UDim2.new(1,0,1,0) | |
| 810 | cam.CameraType="Scriptable" | |
| 811 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 812 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 813 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 814 | Targetting=true | |
| 815 | RocketTarget=ZTarget | |
| 816 | for i=1,Property do | |
| 817 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 818 | if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 819 | swait() | |
| 820 | end | |
| 821 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 822 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 823 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 824 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 825 | end | |
| 826 | Targetting=false | |
| 827 | RocketTarget=nil | |
| 828 | targetgui.Parent=nil | |
| 829 | cam.CameraType="Custom" | |
| 830 | end | |
| 831 | end | |
| 832 | debounce=Instance.new("BoolValue")
| |
| 833 | debounce.Name="DebounceHit" | |
| 834 | debounce.Parent=hit.Parent | |
| 835 | debounce.Value=true | |
| 836 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 837 | c=Instance.new("ObjectValue")
| |
| 838 | c.Name="creator" | |
| 839 | c.Value=Player | |
| 840 | c.Parent=h | |
| 841 | game:GetService("Debris"):AddItem(c,.5)
| |
| 842 | CRIT=false | |
| 843 | hitDeb=true | |
| 844 | AttackPos=6 | |
| 845 | comboing = true | |
| 846 | combohits = combohits+1 | |
| 847 | combotime = combotime+3.4 | |
| 848 | ||
| 849 | ||
| 850 | ||
| 851 | if hitfloor == nil then | |
| 852 | ||
| 853 | local velo=Instance.new("BodyVelocity")
| |
| 854 | velo.velocity=vt(0,5.5,0) | |
| 855 | velo.P=8000 | |
| 856 | velo.maxForce=Vector3.new(math.huge, math.huge, math.huge) | |
| 857 | velo.Parent=root | |
| 858 | game:GetService("Debris"):AddItem(velo,0.06)
| |
| 859 | ||
| 860 | local hitvelo=Instance.new("BodyVelocity")
| |
| 861 | hitvelo.velocity=vt(0,5.5,0) | |
| 862 | hitvelo.P=8000 | |
| 863 | hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge) | |
| 864 | hitvelo.Parent=hit | |
| 865 | game:GetService("Debris"):AddItem(hitvelo,0.06)
| |
| 866 | ||
| 867 | coroutine.resume(coroutine.create(function() | |
| 868 | for i = 0,3.7,0.1 do | |
| 869 | swait() | |
| 870 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4) | |
| 871 | root.Velocity = root.CFrame.lookVector*0 | |
| 872 | hit.Velocity = hit.CFrame.lookVector*130 | |
| 873 | end | |
| 874 | end)) | |
| 875 | coroutine.resume(coroutine.create(function() | |
| 876 | while ultra == true do | |
| 877 | swait() | |
| 878 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4) | |
| 879 | end | |
| 880 | end)) | |
| 881 | ||
| 882 | ||
| 883 | end | |
| 884 | ||
| 885 | ||
| 886 | end | |
| 887 | end | |
| 888 | ||
| 889 | kshowDamage=function(Char,Dealt,du,Color) | |
| 890 | m=Instance.new("Model")
| |
| 891 | m.Name=tostring(Dealt) | |
| 892 | h=Instance.new("Humanoid")
| |
| 893 | h.Health=0 | |
| 894 | h.MaxHealth=0 | |
| 895 | h.Parent=m | |
| 896 | c=Instance.new("Part")
| |
| 897 | c.Transparency=0 | |
| 898 | c.BrickColor=Color | |
| 899 | c.Name="Head" | |
| 900 | c.Material = "Neon" | |
| 901 | c.TopSurface=0 | |
| 902 | c.BottomSurface=0 | |
| 903 | c.formFactor="Plate" | |
| 904 | c.Size=Vector3.new(1,.4,1) | |
| 905 | ms=Instance.new("CylinderMesh")
| |
| 906 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 907 | if CRIT==true then | |
| 908 | ms.Scale=Vector3.new(1,1.25,1) | |
| 909 | end | |
| 910 | ms.Parent=c | |
| 911 | c.Reflectance=0 | |
| 912 | Instance.new("BodyGyro").Parent=c
| |
| 913 | c.Parent=m | |
| 914 | if Char:findFirstChild("Head")~=nil then
| |
| 915 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 916 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 917 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 918 | end | |
| 919 | f=Instance.new("BodyPosition")
| |
| 920 | f.P=2000 | |
| 921 | f.D=220 | |
| 922 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 923 | f.position=c.Position+Vector3.new(0,3,0) | |
| 924 | f.Parent=c | |
| 925 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 926 | c.CanCollide=false | |
| 927 | m.Parent=workspace | |
| 928 | c.CanCollide=false | |
| 929 | ||
| 930 | end | |
| 931 | ||
| 932 | ------------------------------------------------------- | |
| 933 | --End Damage Function-- | |
| 934 | ------------------------------------------------------- | |
| 935 | ||
| 936 | ------------------------------------------------------- | |
| 937 | --Start Damage Function Customization-- | |
| 938 | ------------------------------------------------------- | |
| 939 | function ShowDamage(Pos, Text, Time, Color) | |
| 940 | local Rate = (1 / 30) | |
| 941 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 942 | local Text = (Text or "") | |
| 943 | local Time = (Time or 2) | |
| 944 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 945 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 946 | EffectPart.Anchored = true | |
| 947 | local BillboardGui = Create("BillboardGui"){
| |
| 948 | Size = UDim2.new(3, 0, 3, 0), | |
| 949 | Adornee = EffectPart, | |
| 950 | Parent = EffectPart, | |
| 951 | } | |
| 952 | local TextLabel = Create("TextLabel"){
| |
| 953 | BackgroundTransparency = 1, | |
| 954 | Size = UDim2.new(1, 0, 1, 0), | |
| 955 | Text = Text, | |
| 956 | Font = "Bodoni", | |
| 957 | TextColor3 = Color, | |
| 958 | TextScaled = true, | |
| 959 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
| 960 | Parent = BillboardGui, | |
| 961 | } | |
| 962 | game.Debris:AddItem(EffectPart, (Time)) | |
| 963 | EffectPart.Parent = game:GetService("Workspace")
| |
| 964 | delay(0, function() | |
| 965 | local Frames = (Time / Rate) | |
| 966 | for Frame = 1, Frames do | |
| 967 | wait(Rate) | |
| 968 | local Percent = (Frame / Frames) | |
| 969 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 970 | TextLabel.TextTransparency = Percent | |
| 971 | end | |
| 972 | if EffectPart and EffectPart.Parent then | |
| 973 | EffectPart:Destroy() | |
| 974 | end | |
| 975 | end) | |
| 976 | end | |
| 977 | ------------------------------------------------------- | |
| 978 | --End Damage Function Customization-- | |
| 979 | ------------------------------------------------------- | |
| 980 | ||
| 981 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 982 | for _, c in pairs(workspace:children()) do | |
| 983 | local hum = c:findFirstChild("Humanoid")
| |
| 984 | if hum ~= nil then | |
| 985 | local head = c:findFirstChild("Head")
| |
| 986 | if head ~= nil then | |
| 987 | local targ = head.Position - Part.Position | |
| 988 | local mag = targ.magnitude | |
| 989 | if magni >= mag and c.Name ~= plr.Name then | |
| 990 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 991 | end | |
| 992 | end | |
| 993 | end | |
| 994 | end | |
| 995 | end | |
| 996 | ||
| 997 | ||
| 998 | CFuncs = {
| |
| 999 | Part = {
| |
| 1000 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1001 | local Part = Create("Part")({
| |
| 1002 | Parent = Parent, | |
| 1003 | Reflectance = Reflectance, | |
| 1004 | Transparency = Transparency, | |
| 1005 | CanCollide = false, | |
| 1006 | Locked = true, | |
| 1007 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1008 | Name = Name, | |
| 1009 | Size = Size, | |
| 1010 | Material = Material | |
| 1011 | }) | |
| 1012 | RemoveOutlines(Part) | |
| 1013 | return Part | |
| 1014 | end | |
| 1015 | }, | |
| 1016 | Mesh = {
| |
| 1017 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1018 | local Msh = Create(Mesh)({
| |
| 1019 | Parent = Part, | |
| 1020 | Offset = OffSet, | |
| 1021 | Scale = Scale | |
| 1022 | }) | |
| 1023 | if Mesh == "SpecialMesh" then | |
| 1024 | Msh.MeshType = MeshType | |
| 1025 | Msh.MeshId = MeshId | |
| 1026 | end | |
| 1027 | return Msh | |
| 1028 | end | |
| 1029 | }, | |
| 1030 | Mesh = {
| |
| 1031 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1032 | local Msh = Create(Mesh)({
| |
| 1033 | Parent = Part, | |
| 1034 | Offset = OffSet, | |
| 1035 | Scale = Scale | |
| 1036 | }) | |
| 1037 | if Mesh == "SpecialMesh" then | |
| 1038 | Msh.MeshType = MeshType | |
| 1039 | Msh.MeshId = MeshId | |
| 1040 | end | |
| 1041 | return Msh | |
| 1042 | end | |
| 1043 | }, | |
| 1044 | Weld = {
| |
| 1045 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1046 | local Weld = Create("Weld")({
| |
| 1047 | Parent = Parent, | |
| 1048 | Part0 = Part0, | |
| 1049 | Part1 = Part1, | |
| 1050 | C0 = C0, | |
| 1051 | C1 = C1 | |
| 1052 | }) | |
| 1053 | return Weld | |
| 1054 | end | |
| 1055 | }, | |
| 1056 | Sound = {
| |
| 1057 | Create = function(id, par, vol, pit) | |
| 1058 | coroutine.resume(coroutine.create(function() | |
| 1059 | local S = Create("Sound")({
| |
| 1060 | Volume = vol, | |
| 1061 | Pitch = pit or 1, | |
| 1062 | SoundId = id, | |
| 1063 | Parent = par or workspace | |
| 1064 | }) | |
| 1065 | wait() | |
| 1066 | S:play() | |
| 1067 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1068 | end)) | |
| 1069 | end | |
| 1070 | }, | |
| 1071 | ParticleEmitter = {
| |
| 1072 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1073 | local fp = Create("ParticleEmitter")({
| |
| 1074 | Parent = Parent, | |
| 1075 | Color = ColorSequence.new(Color1, Color2), | |
| 1076 | LightEmission = LightEmission, | |
| 1077 | Size = Size, | |
| 1078 | Texture = Texture, | |
| 1079 | Transparency = Transparency, | |
| 1080 | ZOffset = ZOffset, | |
| 1081 | Acceleration = Accel, | |
| 1082 | Drag = Drag, | |
| 1083 | LockedToPart = LockedToPart, | |
| 1084 | VelocityInheritance = VelocityInheritance, | |
| 1085 | EmissionDirection = EmissionDirection, | |
| 1086 | Enabled = Enabled, | |
| 1087 | Lifetime = LifeTime, | |
| 1088 | Rate = Rate, | |
| 1089 | Rotation = Rotation, | |
| 1090 | RotSpeed = RotSpeed, | |
| 1091 | Speed = Speed, | |
| 1092 | VelocitySpread = VelocitySpread | |
| 1093 | }) | |
| 1094 | return fp | |
| 1095 | end | |
| 1096 | } | |
| 1097 | } | |
| 1098 | function RemoveOutlines(part) | |
| 1099 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1100 | end | |
| 1101 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1102 | local Part = Create("Part")({
| |
| 1103 | formFactor = FormFactor, | |
| 1104 | Parent = Parent, | |
| 1105 | Reflectance = Reflectance, | |
| 1106 | Transparency = Transparency, | |
| 1107 | CanCollide = false, | |
| 1108 | Locked = true, | |
| 1109 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1110 | Name = Name, | |
| 1111 | Size = Size, | |
| 1112 | Material = Material | |
| 1113 | }) | |
| 1114 | RemoveOutlines(Part) | |
| 1115 | return Part | |
| 1116 | end | |
| 1117 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1118 | local Msh = Create(Mesh)({
| |
| 1119 | Parent = Part, | |
| 1120 | Offset = OffSet, | |
| 1121 | Scale = Scale | |
| 1122 | }) | |
| 1123 | if Mesh == "SpecialMesh" then | |
| 1124 | Msh.MeshType = MeshType | |
| 1125 | Msh.MeshId = MeshId | |
| 1126 | end | |
| 1127 | return Msh | |
| 1128 | end | |
| 1129 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1130 | local Weld = Create("Weld")({
| |
| 1131 | Parent = Parent, | |
| 1132 | Part0 = Part0, | |
| 1133 | Part1 = Part1, | |
| 1134 | C0 = C0, | |
| 1135 | C1 = C1 | |
| 1136 | }) | |
| 1137 | return Weld | |
| 1138 | end | |
| 1139 | ||
| 1140 | ||
| 1141 | ------------------------------------------------------- | |
| 1142 | --Start Effect Function-- | |
| 1143 | ------------------------------------------------------- | |
| 1144 | EffectModel = Instance.new("Model", char)
| |
| 1145 | Effects = {
| |
| 1146 | Block = {
| |
| 1147 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1148 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1149 | prt.Anchored = true | |
| 1150 | prt.CFrame = cframe | |
| 1151 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1152 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1153 | if Type == 1 or Type == nil then | |
| 1154 | table.insert(Effects, {
| |
| 1155 | prt, | |
| 1156 | "Block1", | |
| 1157 | delay, | |
| 1158 | x3, | |
| 1159 | y3, | |
| 1160 | z3, | |
| 1161 | msh | |
| 1162 | }) | |
| 1163 | elseif Type == 2 then | |
| 1164 | table.insert(Effects, {
| |
| 1165 | prt, | |
| 1166 | "Block2", | |
| 1167 | delay, | |
| 1168 | x3, | |
| 1169 | y3, | |
| 1170 | z3, | |
| 1171 | msh | |
| 1172 | }) | |
| 1173 | else | |
| 1174 | table.insert(Effects, {
| |
| 1175 | prt, | |
| 1176 | "Block3", | |
| 1177 | delay, | |
| 1178 | x3, | |
| 1179 | y3, | |
| 1180 | z3, | |
| 1181 | msh | |
| 1182 | }) | |
| 1183 | end | |
| 1184 | end | |
| 1185 | }, | |
| 1186 | Sphere = {
| |
| 1187 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1188 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1189 | prt.Anchored = true | |
| 1190 | prt.CFrame = cframe | |
| 1191 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1192 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1193 | table.insert(Effects, {
| |
| 1194 | prt, | |
| 1195 | "Cylinder", | |
| 1196 | delay, | |
| 1197 | x3, | |
| 1198 | y3, | |
| 1199 | z3, | |
| 1200 | msh | |
| 1201 | }) | |
| 1202 | end | |
| 1203 | }, | |
| 1204 | Cylinder = {
| |
| 1205 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1206 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1207 | prt.Anchored = true | |
| 1208 | prt.CFrame = cframe | |
| 1209 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1210 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1211 | table.insert(Effects, {
| |
| 1212 | prt, | |
| 1213 | "Cylinder", | |
| 1214 | delay, | |
| 1215 | x3, | |
| 1216 | y3, | |
| 1217 | z3, | |
| 1218 | msh | |
| 1219 | }) | |
| 1220 | end | |
| 1221 | }, | |
| 1222 | Wave = {
| |
| 1223 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1224 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1225 | prt.Anchored = true | |
| 1226 | prt.CFrame = cframe | |
| 1227 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 1228 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1229 | table.insert(Effects, {
| |
| 1230 | prt, | |
| 1231 | "Cylinder", | |
| 1232 | delay, | |
| 1233 | x3 / 60, | |
| 1234 | y3 / 60, | |
| 1235 | z3 / 60, | |
| 1236 | msh | |
| 1237 | }) | |
| 1238 | end | |
| 1239 | }, | |
| 1240 | Ring = {
| |
| 1241 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1242 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1243 | prt.Anchored = true | |
| 1244 | prt.CFrame = cframe | |
| 1245 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1246 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1247 | table.insert(Effects, {
| |
| 1248 | prt, | |
| 1249 | "Cylinder", | |
| 1250 | delay, | |
| 1251 | x3, | |
| 1252 | y3, | |
| 1253 | z3, | |
| 1254 | msh | |
| 1255 | }) | |
| 1256 | end | |
| 1257 | }, | |
| 1258 | Break = {
| |
| 1259 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1260 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1261 | prt.Anchored = true | |
| 1262 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1263 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1264 | local num = math.random(10, 50) / 1000 | |
| 1265 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1266 | table.insert(Effects, {
| |
| 1267 | prt, | |
| 1268 | "Shatter", | |
| 1269 | num, | |
| 1270 | prt.CFrame, | |
| 1271 | math.random() - math.random(), | |
| 1272 | 0, | |
| 1273 | math.random(50, 100) / 100 | |
| 1274 | }) | |
| 1275 | end | |
| 1276 | }, | |
| 1277 | Spiral = {
| |
| 1278 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1279 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1280 | prt.Anchored = true | |
| 1281 | prt.CFrame = cframe | |
| 1282 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1283 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1284 | table.insert(Effects, {
| |
| 1285 | prt, | |
| 1286 | "Cylinder", | |
| 1287 | delay, | |
| 1288 | x3, | |
| 1289 | y3, | |
| 1290 | z3, | |
| 1291 | msh | |
| 1292 | }) | |
| 1293 | end | |
| 1294 | }, | |
| 1295 | Push = {
| |
| 1296 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1297 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1298 | prt.Anchored = true | |
| 1299 | prt.CFrame = cframe | |
| 1300 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1301 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1302 | table.insert(Effects, {
| |
| 1303 | prt, | |
| 1304 | "Cylinder", | |
| 1305 | delay, | |
| 1306 | x3, | |
| 1307 | y3, | |
| 1308 | z3, | |
| 1309 | msh | |
| 1310 | }) | |
| 1311 | end | |
| 1312 | } | |
| 1313 | } | |
| 1314 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
| 1315 | local fp = IT("Part")
| |
| 1316 | fp.formFactor = formfactor | |
| 1317 | fp.Parent = parent | |
| 1318 | fp.Reflectance = reflectance | |
| 1319 | fp.Transparency = transparency | |
| 1320 | fp.CanCollide = false | |
| 1321 | fp.Locked = true | |
| 1322 | fp.BrickColor = brickcolor | |
| 1323 | fp.Name = name | |
| 1324 | fp.Size = size | |
| 1325 | fp.Position = tors.Position | |
| 1326 | RemoveOutlines(fp) | |
| 1327 | fp.Material = "SmoothPlastic" | |
| 1328 | fp:BreakJoints() | |
| 1329 | return fp | |
| 1330 | end | |
| 1331 | ||
| 1332 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1333 | local mesh = IT(Mesh) | |
| 1334 | mesh.Parent = part | |
| 1335 | if Mesh == "SpecialMesh" then | |
| 1336 | mesh.MeshType = meshtype | |
| 1337 | if meshid ~= "nil" then | |
| 1338 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
| 1339 | end | |
| 1340 | end | |
| 1341 | mesh.Offset = offset | |
| 1342 | mesh.Scale = scale | |
| 1343 | return mesh | |
| 1344 | end | |
| 1345 | ||
| 1346 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 1347 | local type = type | |
| 1348 | local rng = Instance.new("Part", char)
| |
| 1349 | rng.Anchored = true | |
| 1350 | rng.BrickColor = color | |
| 1351 | rng.CanCollide = false | |
| 1352 | rng.FormFactor = 3 | |
| 1353 | rng.Name = "Ring" | |
| 1354 | rng.Material = "Neon" | |
| 1355 | rng.Size = Vector3.new(1, 1, 1) | |
| 1356 | rng.Transparency = 0 | |
| 1357 | rng.TopSurface = 0 | |
| 1358 | rng.BottomSurface = 0 | |
| 1359 | rng.CFrame = pos | |
| 1360 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1361 | rngm.MeshType = MType | |
| 1362 | rngm.Scale = scale | |
| 1363 | local scaler2 = 1 | |
| 1364 | if type == "Add" then | |
| 1365 | scaler2 = 1 * value | |
| 1366 | elseif type == "Divide" then | |
| 1367 | scaler2 = 1 / value | |
| 1368 | end | |
| 1369 | coroutine.resume(coroutine.create(function() | |
| 1370 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1371 | swait() | |
| 1372 | if type == "Add" then | |
| 1373 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1374 | elseif type == "Divide" then | |
| 1375 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1376 | end | |
| 1377 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1378 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1379 | end | |
| 1380 | rng:Destroy() | |
| 1381 | end)) | |
| 1382 | end | |
| 1383 | ||
| 1384 | function Eviscerate(dude) | |
| 1385 | if dude.Name ~= char then | |
| 1386 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1387 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1388 | local val = IT("BoolValue", dude)
| |
| 1389 | val.Name = "IsHit" | |
| 1390 | local ds = coroutine.wrap(function() | |
| 1391 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1392 | wait(0.5) | |
| 1393 | target = nil | |
| 1394 | coroutine.resume(coroutine.create(function() | |
| 1395 | for i, v in pairs(dude:GetChildren()) do | |
| 1396 | if v:IsA("Accessory") then
| |
| 1397 | v:Destroy() | |
| 1398 | end | |
| 1399 | if v:IsA("Humanoid") then
| |
| 1400 | v:Destroy() | |
| 1401 | end | |
| 1402 | if v:IsA("CharacterMesh") then
| |
| 1403 | v:Destroy() | |
| 1404 | end | |
| 1405 | if v:IsA("Model") then
| |
| 1406 | v:Destroy() | |
| 1407 | end | |
| 1408 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1409 | for x, o in pairs(v:GetChildren()) do | |
| 1410 | if o:IsA("Decal") then
| |
| 1411 | o:Destroy() | |
| 1412 | end | |
| 1413 | end | |
| 1414 | coroutine.resume(coroutine.create(function() | |
| 1415 | v.Material = "Neon" | |
| 1416 | v.CanCollide = false | |
| 1417 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1418 | PartEmmit1.LightEmission = 1 | |
| 1419 | PartEmmit1.Texture = "rbxassetid://284205403" | |
| 1420 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1421 | PartEmmit1.Rate = 150 | |
| 1422 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1423 | PartEmmit1.Size = NumberSequence.new({
| |
| 1424 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1425 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1426 | }) | |
| 1427 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1428 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1429 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1430 | }) | |
| 1431 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1432 | PartEmmit1.VelocitySpread = 30000 | |
| 1433 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1434 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1435 | local BodPoss = IT("BodyPosition", v)
| |
| 1436 | BodPoss.P = 3000 | |
| 1437 | BodPoss.D = 1000 | |
| 1438 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1439 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1440 | v.Color = maincolor.Color | |
| 1441 | coroutine.resume(coroutine.create(function() | |
| 1442 | for i = 0, 49 do | |
| 1443 | swait(1) | |
| 1444 | v.Transparency = v.Transparency + 0.08 | |
| 1445 | end | |
| 1446 | wait(0.5) | |
| 1447 | PartEmmit1.Enabled = false | |
| 1448 | wait(3) | |
| 1449 | v:Destroy() | |
| 1450 | dude:Destroy() | |
| 1451 | end)) | |
| 1452 | end)) | |
| 1453 | end | |
| 1454 | end | |
| 1455 | end)) | |
| 1456 | end) | |
| 1457 | ds() | |
| 1458 | end | |
| 1459 | end | |
| 1460 | ||
| 1461 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1462 | if SinglePlayer then | |
| 1463 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1464 | end | |
| 1465 | local List = {}
| |
| 1466 | for i, v in pairs(workspace:GetChildren()) do | |
| 1467 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1468 | table.insert(List, v) | |
| 1469 | end | |
| 1470 | end | |
| 1471 | return List | |
| 1472 | end | |
| 1473 | ||
| 1474 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
| 1475 | local type = type | |
| 1476 | local rng = Instance.new("Part", char)
| |
| 1477 | rng.Anchored = true | |
| 1478 | rng.BrickColor = color | |
| 1479 | rng.CanCollide = false | |
| 1480 | rng.FormFactor = 3 | |
| 1481 | rng.Name = "Ring" | |
| 1482 | rng.Material = "Neon" | |
| 1483 | rng.Size = Vector3.new(1, 1, 1) | |
| 1484 | rng.Transparency = 0 | |
| 1485 | rng.TopSurface = 0 | |
| 1486 | rng.BottomSurface = 0 | |
| 1487 | rng.CFrame = pos | |
| 1488 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 1489 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1490 | rngm.MeshType = MType | |
| 1491 | rngm.Scale = Vector3.new(x1, y1, z1) | |
| 1492 | local scaler2 = 1 | |
| 1493 | local speeder = FastSpeed | |
| 1494 | if type == "Add" then | |
| 1495 | scaler2 = 1 * value | |
| 1496 | elseif type == "Divide" then | |
| 1497 | scaler2 = 1 / value | |
| 1498 | end | |
| 1499 | coroutine.resume(coroutine.create(function() | |
| 1500 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1501 | swait() | |
| 1502 | if type == "Add" then | |
| 1503 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1504 | elseif type == "Divide" then | |
| 1505 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1506 | end | |
| 1507 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 1508 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 1509 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1510 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 1511 | end | |
| 1512 | rng:Destroy() | |
| 1513 | end)) | |
| 1514 | end | |
| 1515 | ||
| 1516 | function SoulSteal(dude) | |
| 1517 | if dude.Name ~= char then | |
| 1518 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1519 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1520 | local val = IT("BoolValue", dude)
| |
| 1521 | val.Name = "IsHit" | |
| 1522 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
| 1523 | local soulst = coroutine.wrap(function() | |
| 1524 | local soul = Instance.new("Part",dude)
| |
| 1525 | soul.Size = Vector3.new(1,1,1) | |
| 1526 | soul.CanCollide = false | |
| 1527 | soul.Anchored = false | |
| 1528 | soul.Position = torso.Position | |
| 1529 | soul.Transparency = 1 | |
| 1530 | local PartEmmit1 = IT("ParticleEmitter", soul)
| |
| 1531 | PartEmmit1.LightEmission = 1 | |
| 1532 | PartEmmit1.Texture = "rbxassetid://569507414" | |
| 1533 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1534 | PartEmmit1.Rate = 250 | |
| 1535 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
| 1536 | PartEmmit1.Size = NumberSequence.new({
| |
| 1537 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 1538 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1539 | }) | |
| 1540 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1541 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1542 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1543 | }) | |
| 1544 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1545 | PartEmmit1.VelocitySpread = 30000 | |
| 1546 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
| 1547 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
| 1548 | local BodPoss = IT("BodyPosition", soul)
| |
| 1549 | BodPoss.P = 3000 | |
| 1550 | BodPoss.D = 1000 | |
| 1551 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1552 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1553 | wait(1.6) | |
| 1554 | soul.Touched:connect(function(hit) | |
| 1555 | if hit.Parent == char then | |
| 1556 | soul:Destroy() | |
| 1557 | end | |
| 1558 | end) | |
| 1559 | wait(1.2) | |
| 1560 | while soul do | |
| 1561 | swait() | |
| 1562 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1563 | BodPoss.Position = tors.Position | |
| 1564 | end | |
| 1565 | end) | |
| 1566 | soulst() | |
| 1567 | end | |
| 1568 | end | |
| 1569 | ||
| 1570 | ||
| 1571 | ||
| 1572 | ||
| 1573 | --killer's effects | |
| 1574 | ||
| 1575 | ||
| 1576 | ||
| 1577 | ||
| 1578 | ||
| 1579 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1580 | local Part = Create("Part"){
| |
| 1581 | Parent = Parent, | |
| 1582 | Reflectance = Reflectance, | |
| 1583 | Transparency = Transparency, | |
| 1584 | CanCollide = false, | |
| 1585 | Locked = true, | |
| 1586 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1587 | Name = Name, | |
| 1588 | Size = Size, | |
| 1589 | Material = Material, | |
| 1590 | } | |
| 1591 | RemoveOutlines(Part) | |
| 1592 | return Part | |
| 1593 | end | |
| 1594 | ||
| 1595 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1596 | local Msh = Create(Mesh){
| |
| 1597 | Parent = Part, | |
| 1598 | Offset = OffSet, | |
| 1599 | Scale = Scale, | |
| 1600 | } | |
| 1601 | if Mesh == "SpecialMesh" then | |
| 1602 | Msh.MeshType = MeshType | |
| 1603 | Msh.MeshId = MeshId | |
| 1604 | end | |
| 1605 | return Msh | |
| 1606 | end | |
| 1607 | ||
| 1608 | ||
| 1609 | ||
| 1610 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1611 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1612 | prt.Anchored = true | |
| 1613 | prt.CFrame = cframe | |
| 1614 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1615 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1616 | if Type == 1 or Type == nil then | |
| 1617 | table.insert(Effects, {
| |
| 1618 | prt, | |
| 1619 | "Block1", | |
| 1620 | delay, | |
| 1621 | x3, | |
| 1622 | y3, | |
| 1623 | z3, | |
| 1624 | msh | |
| 1625 | }) | |
| 1626 | elseif Type == 2 then | |
| 1627 | table.insert(Effects, {
| |
| 1628 | prt, | |
| 1629 | "Block2", | |
| 1630 | delay, | |
| 1631 | x3, | |
| 1632 | y3, | |
| 1633 | z3, | |
| 1634 | msh | |
| 1635 | }) | |
| 1636 | end | |
| 1637 | end | |
| 1638 | ||
| 1639 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1640 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1641 | prt.Anchored = true | |
| 1642 | prt.CFrame = cframe | |
| 1643 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1644 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1645 | table.insert(Effects, {
| |
| 1646 | prt, | |
| 1647 | "Cylinder", | |
| 1648 | delay, | |
| 1649 | x3, | |
| 1650 | y3, | |
| 1651 | z3, | |
| 1652 | msh | |
| 1653 | }) | |
| 1654 | end | |
| 1655 | ||
| 1656 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1657 | local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1658 | prt.Anchored=true | |
| 1659 | prt.CFrame=cframe | |
| 1660 | msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
| |
| 1661 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1662 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
| 1663 | for i=0,1,delay do | |
| 1664 | swait() | |
| 1665 | Part.Transparency=i | |
| 1666 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1667 | end | |
| 1668 | Part.Parent=nil | |
| 1669 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
| 1670 | end | |
| 1671 | ||
| 1672 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1673 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1674 | prt.Anchored = true | |
| 1675 | prt.CFrame = cframe | |
| 1676 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1677 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1678 | table.insert(Effects, {
| |
| 1679 | prt, | |
| 1680 | "Cylinder", | |
| 1681 | delay, | |
| 1682 | x3, | |
| 1683 | y3, | |
| 1684 | z3, | |
| 1685 | msh | |
| 1686 | }) | |
| 1687 | end | |
| 1688 | ||
| 1689 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1690 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1691 | prt.Anchored = true | |
| 1692 | prt.CFrame = cframe | |
| 1693 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1694 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1695 | table.insert(Effects, {
| |
| 1696 | prt, | |
| 1697 | "Cylinder", | |
| 1698 | delay, | |
| 1699 | x3, | |
| 1700 | y3, | |
| 1701 | z3, | |
| 1702 | msh | |
| 1703 | }) | |
| 1704 | end | |
| 1705 | ||
| 1706 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1707 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1708 | prt.Anchored = true | |
| 1709 | prt.CFrame = cframe | |
| 1710 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1711 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1712 | table.insert(Effects, {
| |
| 1713 | prt, | |
| 1714 | "Cylinder", | |
| 1715 | delay, | |
| 1716 | x3, | |
| 1717 | y3, | |
| 1718 | z3, | |
| 1719 | msh | |
| 1720 | }) | |
| 1721 | end | |
| 1722 | ||
| 1723 | ||
| 1724 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1725 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1726 | prt.Anchored = true | |
| 1727 | prt.CFrame = cframe | |
| 1728 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1729 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1730 | table.insert(Effects, {
| |
| 1731 | prt, | |
| 1732 | "Cylinder", | |
| 1733 | delay, | |
| 1734 | x3, | |
| 1735 | y3, | |
| 1736 | z3, | |
| 1737 | msh | |
| 1738 | }) | |
| 1739 | end | |
| 1740 | ||
| 1741 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1742 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1743 | prt.Anchored = true | |
| 1744 | prt.CFrame = cframe | |
| 1745 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1746 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1747 | table.insert(Effects, {
| |
| 1748 | prt, | |
| 1749 | "Cylinder", | |
| 1750 | delay, | |
| 1751 | x3, | |
| 1752 | y3, | |
| 1753 | z3, | |
| 1754 | msh | |
| 1755 | }) | |
| 1756 | end | |
| 1757 | ||
| 1758 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 1759 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1760 | prt.Anchored = true | |
| 1761 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1762 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1763 | local num = math.random(10, 50) / 1000 | |
| 1764 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1765 | table.insert(Effects, {
| |
| 1766 | prt, | |
| 1767 | "Shatter", | |
| 1768 | num, | |
| 1769 | prt.CFrame, | |
| 1770 | math.random() - math.random(), | |
| 1771 | 0, | |
| 1772 | math.random(50, 100) / 100 | |
| 1773 | }) | |
| 1774 | end | |
| 1775 | ||
| 1776 | ||
| 1777 | ||
| 1778 | ||
| 1779 | ||
| 1780 | so = function(id,par,vol,pit) | |
| 1781 | coroutine.resume(coroutine.create(function() | |
| 1782 | local sou = Instance.new("Sound",par or workspace)
| |
| 1783 | sou.Volume=vol | |
| 1784 | sou.Pitch=pit or 1 | |
| 1785 | sou.SoundId=id | |
| 1786 | sou:play() | |
| 1787 | game:GetService("Debris"):AddItem(sou,8)
| |
| 1788 | end)) | |
| 1789 | end | |
| 1790 | ||
| 1791 | ||
| 1792 | --end of killer's effects | |
| 1793 | ||
| 1794 | ||
| 1795 | function FaceMouse() | |
| 1796 | local Cam = workspace.CurrentCamera | |
| 1797 | return {
| |
| 1798 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 1799 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 1800 | } | |
| 1801 | end | |
| 1802 | ------------------------------------------------------- | |
| 1803 | --End Effect Function-- | |
| 1804 | ------------------------------------------------------- | |
| 1805 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 1806 | local NSound = nil | |
| 1807 | coroutine.resume(coroutine.create(function() | |
| 1808 | NSound = IT("Sound", PARENT)
| |
| 1809 | NSound.Volume = VOLUME | |
| 1810 | NSound.Pitch = PITCH | |
| 1811 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1812 | swait() | |
| 1813 | NSound:play() | |
| 1814 | game:GetService("Debris"):AddItem(NSound, 10)
| |
| 1815 | end)) | |
| 1816 | return NSound | |
| 1817 | end | |
| 1818 | function CameraEnshaking(Length, Intensity) | |
| 1819 | coroutine.resume(coroutine.create(function() | |
| 1820 | local intensity = 1 * Intensity | |
| 1821 | local rotM = 0.01 * Intensity | |
| 1822 | for i = 0, Length, 0.1 do | |
| 1823 | swait() | |
| 1824 | intensity = intensity - 0.05 * Intensity / Length | |
| 1825 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1826 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 1827 | 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) | |
| 1828 | end | |
| 1829 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 1830 | end)) | |
| 1831 | end | |
| 1832 | ------------------------------------------------------- | |
| 1833 | --End Important Functions-- | |
| 1834 | ------------------------------------------------------- | |
| 1835 | ||
| 1836 | ||
| 1837 | ------------------------------------------------------- | |
| 1838 | --Start Customization-- | |
| 1839 | ------------------------------------------------------- | |
| 1840 | local Player_Size = 1 | |
| 1841 | if Player_Size ~= 1 then | |
| 1842 | root.Size = root.Size * Player_Size | |
| 1843 | tors.Size = tors.Size * Player_Size | |
| 1844 | hed.Size = hed.Size * Player_Size | |
| 1845 | ra.Size = ra.Size * Player_Size | |
| 1846 | la.Size = la.Size * Player_Size | |
| 1847 | rl.Size = rl.Size * Player_Size | |
| 1848 | ll.Size = ll.Size * Player_Size | |
| 1849 | ---------------------------------------------------------------------------------- | |
| 1850 | rootj.Parent = root | |
| 1851 | neck.Parent = tors | |
| 1852 | RW.Parent = tors | |
| 1853 | LW.Parent = tors | |
| 1854 | RH.Parent = tors | |
| 1855 | LH.Parent = tors | |
| 1856 | ---------------------------------------------------------------------------------- | |
| 1857 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1858 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1859 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1860 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
| 1861 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
| 1862 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
| 1863 | ---------------------------------------------------------------------------------- | |
| 1864 | 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)) | |
| 1865 | 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)) | |
| 1866 | 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)) | |
| 1867 | 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)) | |
| 1868 | --hat.Parent = Character | |
| 1869 | end | |
| 1870 | ---------------------------------------------------------------------------------- | |
| 1871 | local SONG = 900817147 --900817147 | |
| 1872 | local SONG2 = 0 | |
| 1873 | local Music = Instance.new("Sound",tors)
| |
| 1874 | Music.Volume = 0.7 | |
| 1875 | Music.Looped = true | |
| 1876 | Music.Pitch = 1 --Pitcher | |
| 1877 | ---------------------------------------------------------------------------------- | |
| 1878 | local equipped = false | |
| 1879 | local idle = 0 | |
| 1880 | local change = 1 | |
| 1881 | local val = 0 | |
| 1882 | local toim = 0 | |
| 1883 | local idleanim = 0.4 | |
| 1884 | local sine = 0 | |
| 1885 | local Sit = 1 | |
| 1886 | local attacktype = 1 | |
| 1887 | local attackdebounce = false | |
| 1888 | local euler = CFrame.fromEulerAnglesXYZ | |
| 1889 | local cankick = false | |
| 1890 | ---------------------------------------------------------------------------------- | |
| 1891 | hum.WalkSpeed = 8 | |
| 1892 | hum.JumpPower = 57 | |
| 1893 | --[[ | |
| 1894 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 1895 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 1896 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 1897 | ]] | |
| 1898 | local ANIMATOR = hum.Animator | |
| 1899 | local ANIMATE = char.Animate | |
| 1900 | ANIMATE.Parent = nil | |
| 1901 | ANIMATOR.Parent = nil | |
| 1902 | ------------------------------------------------------- | |
| 1903 | --End Customization-- | |
| 1904 | ------------------------------------------------------- | |
| 1905 | ||
| 1906 | ||
| 1907 | ------------------------------------------------------- | |
| 1908 | --Start Attacks N Stuff-- | |
| 1909 | ------------------------------------------------------- | |
| 1910 | ||
| 1911 | --pls be proud mak i did my best | |
| 1912 | ||
| 1913 | ||
| 1914 | ||
| 1915 | function attackone() | |
| 1916 | ||
| 1917 | attack = true | |
| 1918 | ||
| 1919 | for i = 0, 1.35, 0.1 do | |
| 1920 | swait() | |
| 1921 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4-2*i), math.rad(4+2*i), math.rad(-40-11*i)), 0.2) | |
| 1922 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2) | |
| 1923 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.2) * angles(math.rad(90+4*i), math.rad(-43), math.rad(16+6*i)), 0.3) | |
| 1924 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3) | |
| 1925 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2) | |
| 1926 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2) | |
| 1927 | end | |
| 1928 | ||
| 1929 | so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
| |
| 1930 | ||
| 1931 | ||
| 1932 | con5=ra.Touched:connect(function(hit) | |
| 1933 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 1934 | if attackdebounce == false then | |
| 1935 | attackdebounce = true | |
| 1936 | ||
| 1937 | kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1) | |
| 1938 | ||
| 1939 | so("http://roblox.com/asset/?id=636494529",ra,2,1)
| |
| 1940 | ||
| 1941 | RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 1942 | RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 1943 | SphereEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 1944 | ||
| 1945 | ||
| 1946 | coroutine.resume(coroutine.create(function() | |
| 1947 | for i = 0,1,0.1 do | |
| 1948 | swait() | |
| 1949 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24) | |
| 1950 | end | |
| 1951 | end)) | |
| 1952 | ||
| 1953 | ||
| 1954 | wait(0.34) | |
| 1955 | attackdebounce = false | |
| 1956 | ||
| 1957 | end | |
| 1958 | end | |
| 1959 | end) | |
| 1960 | for i = 0, 1.12, 0.1 do | |
| 1961 | swait() | |
| 1962 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35) | |
| 1963 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35) | |
| 1964 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4) | |
| 1965 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35) | |
| 1966 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3) | |
| 1967 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3) | |
| 1968 | end | |
| 1969 | ||
| 1970 | con5:Disconnect() | |
| 1971 | attack = false | |
| 1972 | ||
| 1973 | end | |
| 1974 | ||
| 1975 | ||
| 1976 | ||
| 1977 | ||
| 1978 | ||
| 1979 | ||
| 1980 | ||
| 1981 | ||
| 1982 | ||
| 1983 | ||
| 1984 | ||
| 1985 | ||
| 1986 | function attacktwo() | |
| 1987 | ||
| 1988 | attack = true | |
| 1989 | ||
| 1990 | for i = 0, 1.35, 0.1 do | |
| 1991 | swait() | |
| 1992 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2) | |
| 1993 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
| 1994 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3) | |
| 1995 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3) | |
| 1996 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2) | |
| 1997 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2) | |
| 1998 | end | |
| 1999 | ||
| 2000 | so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
| |
| 2001 | ||
| 2002 | ||
| 2003 | con5=la.Touched:connect(function(hit) | |
| 2004 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2005 | if attackdebounce == false then | |
| 2006 | attackdebounce = true | |
| 2007 | ||
| 2008 | kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1) | |
| 2009 | ||
| 2010 | so("http://roblox.com/asset/?id=636494529",la,2,1)
| |
| 2011 | ||
| 2012 | RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2013 | RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2014 | SphereEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2015 | ||
| 2016 | ||
| 2017 | coroutine.resume(coroutine.create(function() | |
| 2018 | for i = 0,1,0.1 do | |
| 2019 | swait() | |
| 2020 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24) | |
| 2021 | end | |
| 2022 | end)) | |
| 2023 | ||
| 2024 | ||
| 2025 | wait(0.34) | |
| 2026 | attackdebounce = false | |
| 2027 | ||
| 2028 | end | |
| 2029 | end | |
| 2030 | end) | |
| 2031 | ||
| 2032 | ||
| 2033 | ||
| 2034 | ||
| 2035 | for i = 0, 1.12, 0.1 do | |
| 2036 | swait() | |
| 2037 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35) | |
| 2038 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35) | |
| 2039 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4) | |
| 2040 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35) | |
| 2041 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3) | |
| 2042 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3) | |
| 2043 | end | |
| 2044 | ||
| 2045 | con5:Disconnect() | |
| 2046 | attack = false | |
| 2047 | ||
| 2048 | end | |
| 2049 | ||
| 2050 | ||
| 2051 | ||
| 2052 | ||
| 2053 | ||
| 2054 | function attackthree() | |
| 2055 | ||
| 2056 | attack = true | |
| 2057 | ||
| 2058 | ||
| 2059 | for i = 0, 1.14, 0.1 do | |
| 2060 | swait() | |
| 2061 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2) | |
| 2062 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
| 2063 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3) | |
| 2064 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3) | |
| 2065 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2) | |
| 2066 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2) | |
| 2067 | end | |
| 2068 | ||
| 2069 | con5=hum.Touched:connect(function(hit) | |
| 2070 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2071 | if attackdebounce == false then | |
| 2072 | attackdebounce = true | |
| 2073 | ||
| 2074 | kDamagefunc(hit,4,5,math.random(3,4),"Normal",root,0,1) | |
| 2075 | so("http://roblox.com/asset/?id=636494529",ll,2,1)
| |
| 2076 | ||
| 2077 | RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2078 | RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2079 | SphereEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2080 | ||
| 2081 | ||
| 2082 | coroutine.resume(coroutine.create(function() | |
| 2083 | for i = 0,1,0.1 do | |
| 2084 | swait() | |
| 2085 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24) | |
| 2086 | end | |
| 2087 | end)) | |
| 2088 | ||
| 2089 | ||
| 2090 | wait(0.34) | |
| 2091 | attackdebounce = false | |
| 2092 | ||
| 2093 | end | |
| 2094 | end | |
| 2095 | end) | |
| 2096 | ||
| 2097 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2098 | for i = 0, 9.14, 0.3 do | |
| 2099 | swait() | |
| 2100 | BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2101 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-54*i)), 0.35) | |
| 2102 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2103 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2104 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2105 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35) | |
| 2106 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35) | |
| 2107 | end | |
| 2108 | attack = false | |
| 2109 | con5:disconnect() | |
| 2110 | end | |
| 2111 | ||
| 2112 | ||
| 2113 | ||
| 2114 | function attackfour() | |
| 2115 | ||
| 2116 | attack = true | |
| 2117 | so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
| |
| 2118 | WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
| |
| 2119 | for i = 0, 5.14, 0.1 do | |
| 2120 | swait() | |
| 2121 | SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2122 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24+4*i), math.rad(0), math.rad(0)), 0.2) | |
| 2123 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2) | |
| 2124 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(36+4*i)), 0.3) | |
| 2125 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(-36-4*i)), 0.3) | |
| 2126 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28+4*i)), 0.2) | |
| 2127 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34-4*i)), 0.2) | |
| 2128 | end | |
| 2129 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2130 | local velo=Instance.new("BodyVelocity")
| |
| 2131 | velo.velocity=vt(0,25,0) | |
| 2132 | velo.P=8000 | |
| 2133 | velo.maxForce=Vector3.new(math.huge, math.huge, math.huge) | |
| 2134 | velo.Parent=root | |
| 2135 | game:GetService("Debris"):AddItem(velo,0.7)
| |
| 2136 | ||
| 2137 | ||
| 2138 | ||
| 2139 | con5=hum.Touched:connect(function(hit) | |
| 2140 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2141 | if attackdebounce == false then | |
| 2142 | attackdebounce = true | |
| 2143 | coroutine.resume(coroutine.create(function() | |
| 2144 | for i = 0,1.5,0.1 do | |
| 2145 | swait() | |
| 2146 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8) | |
| 2147 | end | |
| 2148 | end)) | |
| 2149 | kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1) | |
| 2150 | so("http://roblox.com/asset/?id=636494529",rl,2,1)
| |
| 2151 | RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2152 | RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2153 | SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2154 | ||
| 2155 | ||
| 2156 | ||
| 2157 | coroutine.resume(coroutine.create(function() | |
| 2158 | for i = 0,1,0.1 do | |
| 2159 | swait() | |
| 2160 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8)),0.44) | |
| 2161 | end | |
| 2162 | end)) | |
| 2163 | ||
| 2164 | ||
| 2165 | wait(0.14) | |
| 2166 | attackdebounce = false | |
| 2167 | end | |
| 2168 | end | |
| 2169 | end) | |
| 2170 | ||
| 2171 | for i = 0, 5.11, 0.15 do | |
| 2172 | swait() | |
| 2173 | BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2174 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.2*i) * angles(math.rad(-10-80*i), math.rad(0), math.rad(0)), 0.42) | |
| 2175 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42) | |
| 2176 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35) | |
| 2177 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35) | |
| 2178 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42) | |
| 2179 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42) | |
| 2180 | end | |
| 2181 | ||
| 2182 | ||
| 2183 | attack = false | |
| 2184 | con5:disconnect() | |
| 2185 | end | |
| 2186 | ||
| 2187 | ||
| 2188 | ||
| 2189 | ||
| 2190 | ||
| 2191 | local cooldown = false | |
| 2192 | function quickkick() | |
| 2193 | attack = true | |
| 2194 | ||
| 2195 | ||
| 2196 | con5=hum.Touched:connect(function(hit) | |
| 2197 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2198 | if attackdebounce == false then | |
| 2199 | attackdebounce = true | |
| 2200 | ||
| 2201 | coroutine.resume(coroutine.create(function() | |
| 2202 | for i = 0,1.5,0.1 do | |
| 2203 | swait() | |
| 2204 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8) | |
| 2205 | end | |
| 2206 | end)) | |
| 2207 | ||
| 2208 | kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1) | |
| 2209 | so("http://roblox.com/asset/?id=636494529",rl,2,1)
| |
| 2210 | RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2211 | RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2212 | SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2213 | ||
| 2214 | ||
| 2215 | ||
| 2216 | coroutine.resume(coroutine.create(function() | |
| 2217 | for i = 0,1,0.1 do | |
| 2218 | swait() | |
| 2219 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8)),0.44) | |
| 2220 | end | |
| 2221 | end)) | |
| 2222 | ||
| 2223 | ||
| 2224 | wait(0.08) | |
| 2225 | attackdebounce = false | |
| 2226 | end | |
| 2227 | end | |
| 2228 | end) | |
| 2229 | ||
| 2230 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2231 | for i = 0, 11.14, 0.3 do | |
| 2232 | swait() | |
| 2233 | root.Velocity = root.CFrame.lookVector * 30 | |
| 2234 | BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2235 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-90*i)), 0.35) | |
| 2236 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2237 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2238 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2239 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35) | |
| 2240 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-9*i)), 0.35) | |
| 2241 | end | |
| 2242 | attack = false | |
| 2243 | con5:disconnect() | |
| 2244 | end | |
| 2245 | ||
| 2246 | ||
| 2247 | ||
| 2248 | ||
| 2249 | ||
| 2250 | ||
| 2251 | ||
| 2252 | ||
| 2253 | function Taunt() | |
| 2254 | attack = true | |
| 2255 | hum.WalkSpeed = 0 | |
| 2256 | Cso("1535995570", hed, 8.45, 1)
| |
| 2257 | for i = 0, 8.2, 0.1 do | |
| 2258 | swait() | |
| 2259 | hum.WalkSpeed = 0 | |
| 2260 | 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(0)), 0.2) | |
| 2261 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2) | |
| 2262 | 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(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1) | |
| 2263 | 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(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1) | |
| 2264 | RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1) | |
| 2265 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1) | |
| 2266 | end | |
| 2267 | attack = false | |
| 2268 | hum.WalkSpeed = 8 | |
| 2269 | end | |
| 2270 | ||
| 2271 | ||
| 2272 | ||
| 2273 | ||
| 2274 | ||
| 2275 | ||
| 2276 | ||
| 2277 | function Hyperkickcombo() | |
| 2278 | ||
| 2279 | attack = true | |
| 2280 | so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
| |
| 2281 | WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
| |
| 2282 | for i = 0, 7.14, 0.1 do | |
| 2283 | swait() | |
| 2284 | SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2285 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2) | |
| 2286 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2287 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3) | |
| 2288 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3) | |
| 2289 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2) | |
| 2290 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2) | |
| 2291 | end | |
| 2292 | local Cracking = Cso("292536356", tors, 10, 1)
| |
| 2293 | for i = 0, 7.14, 0.1 do | |
| 2294 | swait() | |
| 2295 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2296 | Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Lime green", 0, "Sphere") | |
| 2297 | WaveEffect(BrickColor.new("Lime green"), root.CFrame * CFrame.new(0, -6, 0) * euler(0, math.random(-25, 25), 0), 1, 1, 1, 1, 0.2, 1, 0.05)
| |
| 2298 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2299 | SphereEffect(BrickColor.new("Lime green"),ll.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2300 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2) | |
| 2301 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
| 2302 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3) | |
| 2303 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3) | |
| 2304 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2) | |
| 2305 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2) | |
| 2306 | end | |
| 2307 | Cracking.Playing = false | |
| 2308 | so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
| |
| 2309 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2310 | SphereEffect(BrickColor.new("Lime green"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
| |
| 2311 | local velo=Instance.new("BodyVelocity")
| |
| 2312 | velo.velocity=vt(0,27,0) | |
| 2313 | velo.P=11000 | |
| 2314 | velo.maxForce=Vector3.new(math.huge, math.huge, math.huge) | |
| 2315 | velo.Parent=root | |
| 2316 | game:GetService("Debris"):AddItem(velo,1.24)
| |
| 2317 | ||
| 2318 | ||
| 2319 | ||
| 2320 | con5=hum.Touched:connect(function(hit) | |
| 2321 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2322 | if attackdebounce == false then | |
| 2323 | attackdebounce = true | |
| 2324 | coroutine.resume(coroutine.create(function() | |
| 2325 | for i = 0,1.5,0.1 do | |
| 2326 | swait() | |
| 2327 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8) | |
| 2328 | end | |
| 2329 | end)) | |
| 2330 | kDamagefunc(hit,2,3,math.random(0,0),"Normal",root,0,1) | |
| 2331 | so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
| |
| 2332 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2333 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2334 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2335 | ||
| 2336 | ||
| 2337 | ||
| 2338 | coroutine.resume(coroutine.create(function() | |
| 2339 | for i = 0,1,0.1 do | |
| 2340 | swait() | |
| 2341 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2342 | end | |
| 2343 | end)) | |
| 2344 | ||
| 2345 | ||
| 2346 | wait(0.09) | |
| 2347 | attackdebounce = false | |
| 2348 | end | |
| 2349 | end | |
| 2350 | end) | |
| 2351 | ||
| 2352 | for i = 0, 9.11, 0.2 do | |
| 2353 | swait() | |
| 2354 | BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2355 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.12*i) * angles(math.rad(-10-95*i), math.rad(0), math.rad(0)), 0.42) | |
| 2356 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42) | |
| 2357 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35) | |
| 2358 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35) | |
| 2359 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42) | |
| 2360 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42) | |
| 2361 | end | |
| 2362 | ||
| 2363 | ||
| 2364 | ||
| 2365 | ||
| 2366 | con5:disconnect() | |
| 2367 | ||
| 2368 | ||
| 2369 | ||
| 2370 | ||
| 2371 | ||
| 2372 | ||
| 2373 | con5=hum.Touched:connect(function(hit) | |
| 2374 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2375 | if attackdebounce == false then | |
| 2376 | attackdebounce = true | |
| 2377 | coroutine.resume(coroutine.create(function() | |
| 2378 | for i = 0,1.5,0.1 do | |
| 2379 | swait() | |
| 2380 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8) | |
| 2381 | end | |
| 2382 | end)) | |
| 2383 | kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1) | |
| 2384 | ||
| 2385 | so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
| |
| 2386 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2387 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2388 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2389 | ||
| 2390 | ||
| 2391 | ||
| 2392 | coroutine.resume(coroutine.create(function() | |
| 2393 | for i = 0,1,0.1 do | |
| 2394 | swait() | |
| 2395 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2396 | end | |
| 2397 | end)) | |
| 2398 | ||
| 2399 | ||
| 2400 | wait(0.08) | |
| 2401 | attackdebounce = false | |
| 2402 | end | |
| 2403 | end | |
| 2404 | end) | |
| 2405 | ||
| 2406 | ||
| 2407 | ||
| 2408 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2409 | for i = 0, 9.14, 0.3 do | |
| 2410 | swait() | |
| 2411 | root.Velocity = root.CFrame.lookVector * 20 | |
| 2412 | BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2413 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(53), math.rad(8), math.rad(0-54*i)), 0.35) | |
| 2414 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2415 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2416 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2417 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35) | |
| 2418 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35) | |
| 2419 | end | |
| 2420 | ||
| 2421 | ||
| 2422 | ||
| 2423 | con5:disconnect() | |
| 2424 | ||
| 2425 | ||
| 2426 | ||
| 2427 | con5=hum.Touched:connect(function(hit) | |
| 2428 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2429 | if attackdebounce == false then | |
| 2430 | attackdebounce = true | |
| 2431 | coroutine.resume(coroutine.create(function() | |
| 2432 | for i = 0,1.5,0.1 do | |
| 2433 | swait() | |
| 2434 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8) | |
| 2435 | end | |
| 2436 | end)) | |
| 2437 | kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1) | |
| 2438 | so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
| |
| 2439 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2440 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2441 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2442 | ||
| 2443 | ||
| 2444 | ||
| 2445 | coroutine.resume(coroutine.create(function() | |
| 2446 | for i = 0,1,0.1 do | |
| 2447 | swait() | |
| 2448 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2449 | end | |
| 2450 | end)) | |
| 2451 | ||
| 2452 | ||
| 2453 | wait(0.05) | |
| 2454 | attackdebounce = false | |
| 2455 | end | |
| 2456 | end | |
| 2457 | end) | |
| 2458 | ||
| 2459 | ||
| 2460 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2461 | for i = 0, 15.14, 0.32 do | |
| 2462 | swait() | |
| 2463 | root.Velocity = root.CFrame.lookVector * 20 | |
| 2464 | BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2465 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-50*i), math.rad(8+20*i), math.rad(0-90*i)), 0.35) | |
| 2466 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2467 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2468 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2469 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35) | |
| 2470 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-4*i)), 0.35) | |
| 2471 | end | |
| 2472 | ||
| 2473 | attack = false | |
| 2474 | con5:disconnect() | |
| 2475 | ||
| 2476 | end | |
| 2477 | ||
| 2478 | ||
| 2479 | ||
| 2480 | ||
| 2481 | ||
| 2482 | local ultra = false | |
| 2483 | ||
| 2484 | function Galekicks() | |
| 2485 | ||
| 2486 | attack = true | |
| 2487 | so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
| |
| 2488 | for i = 0, 1.65, 0.1 do | |
| 2489 | swait() | |
| 2490 | root.Velocity = root.CFrame.lookVector * 0 | |
| 2491 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2492 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2493 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2494 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2495 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2496 | RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2) | |
| 2497 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2498 | end | |
| 2499 | ||
| 2500 | ||
| 2501 | for i = 1, 17 do | |
| 2502 | ||
| 2503 | con5=hum.Touched:connect(function(hit) | |
| 2504 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2505 | if attackdebounce == false then | |
| 2506 | attackdebounce = true | |
| 2507 | coroutine.resume(coroutine.create(function() | |
| 2508 | for i = 0,1.5,0.1 do | |
| 2509 | swait() | |
| 2510 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8) | |
| 2511 | end | |
| 2512 | end)) | |
| 2513 | kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1) | |
| 2514 | so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
| |
| 2515 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2516 | RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2517 | SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2518 | ||
| 2519 | ||
| 2520 | ||
| 2521 | coroutine.resume(coroutine.create(function() | |
| 2522 | for i = 0,1,0.1 do | |
| 2523 | swait() | |
| 2524 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2525 | end | |
| 2526 | end)) | |
| 2527 | ||
| 2528 | ||
| 2529 | wait(0.05) | |
| 2530 | attackdebounce = false | |
| 2531 | end | |
| 2532 | end | |
| 2533 | end) | |
| 2534 | ||
| 2535 | for i = 0, .1, 0.2 do | |
| 2536 | swait() | |
| 2537 | BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
| |
| 2538 | root.Velocity = root.CFrame.lookVector * 10 | |
| 2539 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7) | |
| 2540 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7) | |
| 2541 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7) | |
| 2542 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7) | |
| 2543 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7) | |
| 2544 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7) | |
| 2545 | end | |
| 2546 | ||
| 2547 | so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
| |
| 2548 | ||
| 2549 | for i = 0, 0.4, 0.2 do | |
| 2550 | swait() | |
| 2551 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2552 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2553 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2554 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2555 | RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2) | |
| 2556 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2557 | end | |
| 2558 | con5:disconnect() | |
| 2559 | end | |
| 2560 | ||
| 2561 | ||
| 2562 | u = mouse.KeyDown:connect(function(key) | |
| 2563 | if key == 'r' and combohits >= 150 then | |
| 2564 | ultra = true | |
| 2565 | SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,15,15,15,0.04)
| |
| 2566 | end | |
| 2567 | end) | |
| 2568 | wait(0.3) | |
| 2569 | if ultra == true then | |
| 2570 | combohits = 0 | |
| 2571 | wait(0.1) | |
| 2572 | for i = 0, 1.65, 0.1 do | |
| 2573 | swait() | |
| 2574 | root.Velocity = root.CFrame.lookVector * 0 | |
| 2575 | SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2576 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2577 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2578 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2579 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2580 | RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2) | |
| 2581 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2582 | end | |
| 2583 | ||
| 2584 | ||
| 2585 | so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
| |
| 2586 | ||
| 2587 | for i = 1, 65 do | |
| 2588 | --Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Really red", 0, "Brick") | |
| 2589 | con5=hum.Touched:connect(function(hit) | |
| 2590 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2591 | if attackdebounce == false then | |
| 2592 | attackdebounce = true | |
| 2593 | coroutine.resume(coroutine.create(function() | |
| 2594 | for i = 0,1.5,0.1 do | |
| 2595 | swait() | |
| 2596 | hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8) | |
| 2597 | end | |
| 2598 | end)) | |
| 2599 | kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1) | |
| 2600 | ||
| 2601 | ||
| 2602 | ||
| 2603 | ||
| 2604 | so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
| |
| 2605 | RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2606 | RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2607 | SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2608 | ||
| 2609 | ||
| 2610 | ||
| 2611 | coroutine.resume(coroutine.create(function() | |
| 2612 | for i = 0,1,0.1 do | |
| 2613 | swait() | |
| 2614 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2615 | end | |
| 2616 | end)) | |
| 2617 | ||
| 2618 | ||
| 2619 | wait(0.05) | |
| 2620 | attackdebounce = false | |
| 2621 | end | |
| 2622 | end | |
| 2623 | end) | |
| 2624 | ||
| 2625 | for i = 0, .03, 0.1 do | |
| 2626 | swait() | |
| 2627 | BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
| |
| 2628 | root.Velocity = root.CFrame.lookVector * 10 | |
| 2629 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7) | |
| 2630 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7) | |
| 2631 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7) | |
| 2632 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7) | |
| 2633 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7) | |
| 2634 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7) | |
| 2635 | end | |
| 2636 | ||
| 2637 | so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
| |
| 2638 | ||
| 2639 | for i = 0, 0.07, 0.1 do | |
| 2640 | swait() | |
| 2641 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2642 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2643 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2644 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2645 | RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2) | |
| 2646 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2647 | end | |
| 2648 | con5:disconnect() | |
| 2649 | end | |
| 2650 | ||
| 2651 | for i = 0, 1.65, 0.1 do | |
| 2652 | swait() | |
| 2653 | root.Velocity = root.CFrame.lookVector * 0 | |
| 2654 | SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
| |
| 2655 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2656 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2657 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2658 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2659 | RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2) | |
| 2660 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2661 | end | |
| 2662 | ||
| 2663 | con5=hum.Touched:connect(function(hit) | |
| 2664 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2665 | if attackdebounce == false then | |
| 2666 | attackdebounce = true | |
| 2667 | coroutine.resume(coroutine.create(function() | |
| 2668 | for i = 0,1.5,0.1 do | |
| 2669 | swait() | |
| 2670 | --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8) | |
| 2671 | end | |
| 2672 | end)) | |
| 2673 | kDamagefunc(hit, 1, 3, 0,"Normal",root,0,1) | |
| 2674 | so("http://roblox.com/asset/?id=636494529",rl,2,.63)
| |
| 2675 | RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2676 | RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
| |
| 2677 | SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
| |
| 2678 | ||
| 2679 | ||
| 2680 | coroutine.resume(coroutine.create(function() | |
| 2681 | for i = 0,1,0.1 do | |
| 2682 | swait() | |
| 2683 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34) | |
| 2684 | end | |
| 2685 | end)) | |
| 2686 | ||
| 2687 | ||
| 2688 | wait(0.05) | |
| 2689 | attackdebounce = false | |
| 2690 | end | |
| 2691 | end | |
| 2692 | end) | |
| 2693 | ||
| 2694 | so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
| |
| 2695 | SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
| |
| 2696 | ||
| 2697 | for i = 0, 2, 0.1 do | |
| 2698 | swait() | |
| 2699 | --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
| |
| 2700 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2) | |
| 2701 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2) | |
| 2702 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3) | |
| 2703 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3) | |
| 2704 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2) | |
| 2705 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2) | |
| 2706 | end | |
| 2707 | SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
| |
| 2708 | ||
| 2709 | wait(0.25) | |
| 2710 | con5:Disconnect() | |
| 2711 | ||
| 2712 | ||
| 2713 | ||
| 2714 | ||
| 2715 | con5=hum.Touched:connect(function(hit) | |
| 2716 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2717 | if attackdebounce == false then | |
| 2718 | attackdebounce = true | |
| 2719 | ||
| 2720 | kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1) | |
| 2721 | so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
| |
| 2722 | ||
| 2723 | RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
| |
| 2724 | RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
| |
| 2725 | SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
| |
| 2726 | SpecialEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
| |
| 2727 | SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,5,18,5,0.04)
| |
| 2728 | WaveEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,1.5,16,1.5,0.04)
| |
| 2729 | ||
| 2730 | coroutine.resume(coroutine.create(function() | |
| 2731 | for i = 0,1,0.1 do | |
| 2732 | swait() | |
| 2733 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24) | |
| 2734 | end | |
| 2735 | end)) | |
| 2736 | ||
| 2737 | wait(0.06) | |
| 2738 | attackdebounce = false | |
| 2739 | ||
| 2740 | end | |
| 2741 | end | |
| 2742 | end) | |
| 2743 | ||
| 2744 | coroutine.resume(coroutine.create(function() | |
| 2745 | while ultra == true do | |
| 2746 | swait() | |
| 2747 | root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3)) | |
| 2748 | end | |
| 2749 | end)) | |
| 2750 | ||
| 2751 | ||
| 2752 | so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
| |
| 2753 | for i = 1,3 do | |
| 2754 | for i = 0, 9.14, 0.45 do | |
| 2755 | swait() | |
| 2756 | root.Velocity = root.CFrame.lookVector * 30 | |
| 2757 | BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2758 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-94*i)), 0.35) | |
| 2759 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2760 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2761 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2762 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35) | |
| 2763 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35) | |
| 2764 | end | |
| 2765 | end | |
| 2766 | ||
| 2767 | ||
| 2768 | for i = 1,3 do | |
| 2769 | for i = 0, 11.14, 0.45 do | |
| 2770 | swait() | |
| 2771 | root.Velocity = root.CFrame.lookVector * 30 | |
| 2772 | BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
| |
| 2773 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-110*i)), 0.35) | |
| 2774 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35) | |
| 2775 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35) | |
| 2776 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35) | |
| 2777 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35) | |
| 2778 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-34-2*i), math.rad(0), math.rad(0-9*i)), 0.35) | |
| 2779 | end | |
| 2780 | ||
| 2781 | ||
| 2782 | ||
| 2783 | end | |
| 2784 | so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
| |
| 2785 | con5:disconnect() | |
| 2786 | ||
| 2787 | ||
| 2788 | end -- combo hit end | |
| 2789 | attack = false | |
| 2790 | ultra = false | |
| 2791 | u:disconnect() | |
| 2792 | ||
| 2793 | end | |
| 2794 | ||
| 2795 | ||
| 2796 | ||
| 2797 | ||
| 2798 | ------------------------------------------------------- | |
| 2799 | --End Attacks N Stuff-- | |
| 2800 | ------------------------------------------------------- | |
| 2801 | mouse.KeyDown:connect(function(key) | |
| 2802 | if string.byte(key) == 48 then | |
| 2803 | Swing = 2 | |
| 2804 | hum.WalkSpeed = 24.82 | |
| 2805 | end | |
| 2806 | end) | |
| 2807 | mouse.KeyUp:connect(function(key) | |
| 2808 | if string.byte(key) == 48 then | |
| 2809 | Swing = 1 | |
| 2810 | hum.WalkSpeed = 8 | |
| 2811 | end | |
| 2812 | end) | |
| 2813 | ||
| 2814 | ||
| 2815 | ||
| 2816 | ||
| 2817 | ||
| 2818 | ||
| 2819 | ||
| 2820 | mouse.Button1Down:connect(function() | |
| 2821 | if attack==false then | |
| 2822 | if attacktype==1 then | |
| 2823 | attack=true | |
| 2824 | attacktype=2 | |
| 2825 | attackone() | |
| 2826 | elseif attacktype==2 then | |
| 2827 | attack=true | |
| 2828 | attacktype=3 | |
| 2829 | attacktwo() | |
| 2830 | elseif attacktype==3 then | |
| 2831 | attack=true | |
| 2832 | attacktype=4 | |
| 2833 | attackthree() | |
| 2834 | elseif attacktype==4 then | |
| 2835 | attack=true | |
| 2836 | attacktype=1 | |
| 2837 | attackfour() | |
| 2838 | end | |
| 2839 | end | |
| 2840 | end) | |
| 2841 | ||
| 2842 | ||
| 2843 | ||
| 2844 | ||
| 2845 | mouse.KeyDown:connect(function(key) | |
| 2846 | if key == 'e' and attack == false and cankick == true and cooldown == false then | |
| 2847 | quickkick() | |
| 2848 | cooldown = true | |
| 2849 | ||
| 2850 | coroutine.resume(coroutine.create(function() | |
| 2851 | wait(2) | |
| 2852 | cooldown = false | |
| 2853 | end)) | |
| 2854 | ||
| 2855 | ||
| 2856 | ||
| 2857 | end | |
| 2858 | end) | |
| 2859 | ||
| 2860 | ||
| 2861 | ||
| 2862 | ||
| 2863 | ||
| 2864 | ||
| 2865 | ||
| 2866 | ||
| 2867 | mouse.KeyDown:connect(function(key) | |
| 2868 | if attack == false then | |
| 2869 | if key == 't' then | |
| 2870 | Taunt() | |
| 2871 | elseif key == 'f' then | |
| 2872 | Hyperkickcombo() | |
| 2873 | elseif key == 'r' then | |
| 2874 | Galekicks() | |
| 2875 | end | |
| 2876 | end | |
| 2877 | end) | |
| 2878 | ||
| 2879 | ------------------------------------------------------- | |
| 2880 | --Start Animations-- | |
| 2881 | ------------------------------------------------------- | |
| 2882 | print("By Makhail07 and KillerDarkness0105")
| |
| 2883 | print("Basic Animations by Makhail07")
| |
| 2884 | print("Attack Animations by KillerDarkness0105")
| |
| 2885 | print("This is pretty much our final script together")
| |
| 2886 | print("--------------------------------")
| |
| 2887 | print("Attacks")
| |
| 2888 | print("E in air: Quick Kicks")
| |
| 2889 | print("Left Mouse: 4 click combo")
| |
| 2890 | print("F: Hyper Kicks")
| |
| 2891 | print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
| |
| 2892 | print("--------------------------------")
| |
| 2893 | while true do | |
| 2894 | swait() | |
| 2895 | sine = sine + change | |
| 2896 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 2897 | local velderp = root.Velocity.y | |
| 2898 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
| 2899 | ||
| 2900 | if hitfloor == nil then | |
| 2901 | cankick = true | |
| 2902 | else | |
| 2903 | cankick = false | |
| 2904 | end | |
| 2905 | ||
| 2906 | ||
| 2907 | if equipped == true or equipped == false then | |
| 2908 | if attack == false then | |
| 2909 | idle = idle + 1 | |
| 2910 | else | |
| 2911 | idle = 0 | |
| 2912 | end | |
| 2913 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 2914 | Anim = "Jump" | |
| 2915 | if attack == false then | |
| 2916 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
| 2917 | 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) | |
| 2918 | 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.1) | |
| 2919 | 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) | |
| 2920 | 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) | |
| 2921 | 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) | |
| 2922 | 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) | |
| 2923 | end | |
| 2924 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 2925 | Anim = "Fall" | |
| 2926 | if attack == false then | |
| 2927 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
| 2928 | 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) | |
| 2929 | 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.1) | |
| 2930 | 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) | |
| 2931 | 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) | |
| 2932 | 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) | |
| 2933 | 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) | |
| 2934 | end | |
| 2935 | elseif torvel < 1 and hitfloor ~= nil then | |
| 2936 | Anim = "Idle" | |
| 2937 | change = 1 | |
| 2938 | if attack == false then | |
| 2939 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
| 2940 | 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.1) | |
| 2941 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1) | |
| 2942 | 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(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1) | |
| 2943 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1) | |
| 2944 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1) | |
| 2945 | LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1) | |
| 2946 | end | |
| 2947 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
| 2948 | Anim = "Walk" | |
| 2949 | change = 1 | |
| 2950 | if attack == false then | |
| 2951 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
| 2952 | 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(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
| 2953 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15) | |
| 2954 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2955 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 2956 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1) | |
| 2957 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
| 2958 | end | |
| 2959 | elseif torvel >= 22 and hitfloor ~= nil then | |
| 2960 | Anim = "Sprint" | |
| 2961 | change = 1.35 | |
| 2962 | if attack == false then | |
| 2963 | hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
| 2964 | 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) | |
| 2965 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15) | |
| 2966 | 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) | |
| 2967 | 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) | |
| 2968 | 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(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
| 2969 | 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(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
| 2970 | end | |
| 2971 | end | |
| 2972 | end | |
| 2973 | Music.SoundId = "rbxassetid://"..SONG | |
| 2974 | Music.Looped = true | |
| 2975 | Music.Pitch = 1 | |
| 2976 | Music.Volume = 0.7 | |
| 2977 | Music.Parent = tors | |
| 2978 | Music:Resume() | |
| 2979 | if 0 < #Effects then | |
| 2980 | for e = 1, #Effects do | |
| 2981 | if Effects[e] ~= nil then | |
| 2982 | local Thing = Effects[e] | |
| 2983 | if Thing ~= nil then | |
| 2984 | local Part = Thing[1] | |
| 2985 | local Mode = Thing[2] | |
| 2986 | local Delay = Thing[3] | |
| 2987 | local IncX = Thing[4] | |
| 2988 | local IncY = Thing[5] | |
| 2989 | local IncZ = Thing[6] | |
| 2990 | if 1 >= Thing[1].Transparency then | |
| 2991 | if Thing[2] == "Block1" then | |
| 2992 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2993 | local Mesh = Thing[1].Mesh | |
| 2994 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2995 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2996 | elseif Thing[2] == "Block2" then | |
| 2997 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 2998 | local Mesh = Thing[7] | |
| 2999 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3000 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3001 | elseif Thing[2] == "Block3" then | |
| 3002 | 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) | |
| 3003 | local Mesh = Thing[7] | |
| 3004 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3005 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3006 | elseif Thing[2] == "Cylinder" then | |
| 3007 | local Mesh = Thing[1].Mesh | |
| 3008 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3009 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3010 | elseif Thing[2] == "Blood" then | |
| 3011 | local Mesh = Thing[7] | |
| 3012 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 3013 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3014 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3015 | elseif Thing[2] == "Elec" then | |
| 3016 | local Mesh = Thing[1].Mesh | |
| 3017 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 3018 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3019 | elseif Thing[2] == "Disappear" then | |
| 3020 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3021 | elseif Thing[2] == "Shatter" then | |
| 3022 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3023 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 3024 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 3025 | Thing[6] = Thing[6] + Thing[5] | |
| 3026 | end | |
| 3027 | else | |
| 3028 | Part.Parent = nil | |
| 3029 | table.remove(Effects, e) | |
| 3030 | end | |
| 3031 | end | |
| 3032 | end | |
| 3033 | end | |
| 3034 | end | |
| 3035 | end | |
| 3036 | ------------------------------------------------------- | |
| 3037 | --End Animations And Script-- | |
| 3038 | ------------------------------------------------------- |