SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has convert to FE by who i don't know? | |
| 2 | ||
| 3 | ----------------------------------------------------- | |
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,game,owner = owner,game | |
| 6 | local RealPlayer = Player | |
| 7 | do | |
| 8 | print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
| |
| 9 | local rp = RealPlayer | |
| 10 | script.Parent = rp.Character | |
| 11 | ||
| 12 | --RemoteEvent for communicating | |
| 13 | local Event = Instance.new("RemoteEvent")
| |
| 14 | Event.Name = "UserInput_Event" | |
| 15 | ||
| 16 | --Fake event to make stuff like Mouse.KeyDown work | |
| 17 | local function fakeEvent() | |
| 18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 19 | t.connect = t.Connect | |
| 20 | return t | |
| 21 | end | |
| 22 | ||
| 23 | --Creating fake input objects with fake variables | |
| 24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 28 | end} | |
| 29 | --Merged 2 functions into one by checking amount of arguments | |
| 30 | CAS.UnbindAction = CAS.BindAction | |
| 31 | ||
| 32 | --This function will trigger the events that have been :Connect()'ed | |
| 33 | local function te(self,ev,...) | |
| 34 | local t = m[ev] | |
| 35 | if t and t._fakeEvent then | |
| 36 | for _,f in pairs(t.Functions) do | |
| 37 | f(...) | |
| 38 | end | |
| 39 | end | |
| 40 | end | |
| 41 | m.TrigEvent = te | |
| 42 | UIS.TrigEvent = te | |
| 43 | ||
| 44 | Event.OnServerEvent:Connect(function(plr,io) | |
| 45 | if plr~=rp then return end | |
| 46 | m.Target = io.Target | |
| 47 | m.Hit = io.Hit | |
| 48 | if not io.isMouse then | |
| 49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 52 | end | |
| 53 | for _,t in pairs(CAS.Actions) do | |
| 54 | for _,k in pairs(t.Keys) do | |
| 55 | if k==io.KeyCode then | |
| 56 | t.Function(t.Name,io.UserInputState,io) | |
| 57 | end | |
| 58 | end | |
| 59 | end | |
| 60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 62 | end | |
| 63 | end) | |
| 64 | Event.Parent = NLS([==[ | |
| 65 | local Player = game:GetService("Players").LocalPlayer
| |
| 66 | local Event = script:WaitForChild("UserInput_Event")
| |
| 67 | ||
| 68 | local Mouse = Player:GetMouse() | |
| 69 | local UIS = game:GetService("UserInputService")
| |
| 70 | local input = function(io,a) | |
| 71 | if a then return end | |
| 72 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 74 | end | |
| 75 | UIS.InputBegan:Connect(input) | |
| 76 | UIS.InputEnded:Connect(input) | |
| 77 | ||
| 78 | local h,t | |
| 79 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 80 | --If player is not moving their mouse, client won't fire events | |
| 81 | while wait(1/30) do | |
| 82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 83 | h,t=Mouse.Hit,Mouse.Target | |
| 84 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 85 | end | |
| 86 | end]==],Player.Character) | |
| 87 | ||
| 88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 89 | --Real game object | |
| 90 | local _rg = game | |
| 91 | ||
| 92 | --Metatable for fake service | |
| 93 | local fsmt = {
| |
| 94 | __index = function(self,k) | |
| 95 | local s = rawget(self,"_RealService") | |
| 96 | if s then return s[k] end | |
| 97 | end, | |
| 98 | __newindex = function(self,k,v) | |
| 99 | local s = rawget(self,"_RealService") | |
| 100 | if s then s[k]=v end | |
| 101 | end, | |
| 102 | __call = function(self,...) | |
| 103 | local s = rawget(self,"_RealService") | |
| 104 | if s then return s(...) end | |
| 105 | end | |
| 106 | } | |
| 107 | local function FakeService(t,RealService) | |
| 108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 109 | return setmetatable(t,fsmt) | |
| 110 | end | |
| 111 | ||
| 112 | --Fake game object | |
| 113 | local g = {
| |
| 114 | GetService = function(self,s) | |
| 115 | return self[s] | |
| 116 | end, | |
| 117 | Players = FakeService({
| |
| 118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 119 | },"Players"), | |
| 120 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 122 | } | |
| 123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 124 | g.service = g.GetService | |
| 125 | ||
| 126 | g.RunService = FakeService({
| |
| 127 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 128 | BindToRenderStep = function(self,name,_,fun) | |
| 129 | ||
| 130 | end, | |
| 131 | UnbindFromRenderStep = function(self,name) | |
| 132 | self._btrs[name]:Disconnect() | |
| 133 | end, | |
| 134 | },"RunService") | |
| 135 | ||
| 136 | setmetatable(g,{
| |
| 137 | __index=function(self,s) | |
| 138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 140 | end, | |
| 141 | __newindex = fsmt.__newindex, | |
| 142 | __call = fsmt.__call | |
| 143 | }) | |
| 144 | --Changing owner to fake player object to support owner:GetMouse() | |
| 145 | game,owner = g,g.Players.LocalPlayer | |
| 146 | end | |
| 147 | ----------------------- | |
| 148 | --MemeusV2-- | |
| 149 | ------------------------------------------------------- | |
| 150 | --A script By makhail07 | |
| 151 | ||
| 152 | --Discord Creterisk#2958 | |
| 153 | ------------------------------------------------------- | |
| 154 | ||
| 155 | local FavIDs = {
| |
| 156 | 340106355, --Nefl Crystals | |
| 157 | 927529620, --Dimension | |
| 158 | 876981900, --Fantasy | |
| 159 | 398987889, --Ordinary Days | |
| 160 | 1117396305, --Oh wait, it's you. | |
| 161 | 885996042, --Action Winter Journey | |
| 162 | 919231299, --Sprawling Idiot Effigy | |
| 163 | 743466274, --Good Day Sunshine | |
| 164 | 727411183, --Knife Fight | |
| 165 | 1402748531, --The Earth Is Counting On You! | |
| 166 | 595230126 --Robot Language | |
| 167 | } | |
| 168 | ||
| 169 | ||
| 170 | ||
| 171 | --The reality of my life isn't real but a Universe -makhail07 | |
| 172 | wait() | |
| 173 | local plr = game:service'Players'.LocalPlayer | |
| 174 | print('Local User is '..plr.Name)
| |
| 175 | local char = plr.Character | |
| 176 | local hum = char.Humanoid | |
| 177 | local ra = char["Right Arm"] | |
| 178 | local la= char["Left Arm"] | |
| 179 | local rl= char["Right Leg"] | |
| 180 | local ll = char["Left Leg"] | |
| 181 | local hed = char.Head | |
| 182 | local root = char.HumanoidRootPart | |
| 183 | local rootj = root.RootJoint | |
| 184 | local tors = char.Torso | |
| 185 | local mouse = plr:GetMouse() | |
| 186 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 187 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 188 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 189 | ||
| 190 | ||
| 191 | ------------------------------------------------------- | |
| 192 | --Start Good Stuff-- | |
| 193 | ------------------------------------------------------- | |
| 194 | CF = CFrame.new | |
| 195 | angles = CFrame.Angles | |
| 196 | attack = false | |
| 197 | Euler = CFrame.fromEulerAnglesXYZ | |
| 198 | Rad = math.rad | |
| 199 | IT = Instance.new | |
| 200 | BrickC = BrickColor.new | |
| 201 | Cos = math.cos | |
| 202 | Acos = math.acos | |
| 203 | Sin = math.sin | |
| 204 | Asin = math.asin | |
| 205 | Abs = math.abs | |
| 206 | Mrandom = math.random | |
| 207 | Floor = math.floor | |
| 208 | ------------------------------------------------------- | |
| 209 | --End Good Stuff-- | |
| 210 | ------------------------------------------------------- | |
| 211 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 212 | RSH, LSH = nil, nil | |
| 213 | RW = Instance.new("Weld")
| |
| 214 | LW = Instance.new("Weld")
| |
| 215 | RH = tors["Right Hip"] | |
| 216 | LH = tors["Left Hip"] | |
| 217 | RSH = tors["Right Shoulder"] | |
| 218 | LSH = tors["Left Shoulder"] | |
| 219 | RSH.Parent = nil | |
| 220 | LSH.Parent = nil | |
| 221 | RW.Name = "RW" | |
| 222 | RW.Part0 = tors | |
| 223 | RW.C0 = CF(1.5, 0.5, 0) | |
| 224 | RW.C1 = CF(0, 0.5, 0) | |
| 225 | RW.Part1 = ra | |
| 226 | RW.Parent = tors | |
| 227 | LW.Name = "LW" | |
| 228 | LW.Part0 = tors | |
| 229 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 230 | LW.C1 = CF(0, 0.5, 0) | |
| 231 | LW.Part1 = la | |
| 232 | LW.Parent = tors | |
| 233 | Effects = {}
| |
| 234 | ||
| 235 | ------------------------------------------------------- | |
| 236 | --Start HeartBeat-- | |
| 237 | ------------------------------------------------------- | |
| 238 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 239 | ArtificialHB.Name = "Heartbeat" | |
| 240 | script:WaitForChild("Heartbeat")
| |
| 241 | ||
| 242 | frame = 1 / 60 | |
| 243 | tf = 0 | |
| 244 | allowframeloss = false | |
| 245 | tossremainder = false | |
| 246 | ||
| 247 | ||
| 248 | lastframe = tick() | |
| 249 | script.Heartbeat:Fire() | |
| 250 | ||
| 251 | ||
| 252 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 253 | tf = tf + s | |
| 254 | if tf >= frame then | |
| 255 | if allowframeloss then | |
| 256 | script.Heartbeat:Fire() | |
| 257 | lastframe = tick() | |
| 258 | else | |
| 259 | for i = 1, math.floor(tf / frame) do | |
| 260 | script.Heartbeat:Fire() | |
| 261 | end | |
| 262 | lastframe = tick() | |
| 263 | end | |
| 264 | if tossremainder then | |
| 265 | tf = 0 | |
| 266 | else | |
| 267 | tf = tf - frame * math.floor(tf / frame) | |
| 268 | end | |
| 269 | end | |
| 270 | end) | |
| 271 | ------------------------------------------------------- | |
| 272 | --End HeartBeat-- | |
| 273 | ------------------------------------------------------- | |
| 274 | ||
| 275 | ------------------------------------------------------- | |
| 276 | --Start Kyu's shitty stuff-- | |
| 277 | ------------------------------------------------------- | |
| 278 | ||
| 279 | function ragdoll(model) | |
| 280 | local char = model | |
| 281 | torso = char.HumanoidRootPart | |
| 282 | torso2 = char.Torso | |
| 283 | LW.Parent = nil | |
| 284 | RW.Parent = nil | |
| 285 | LH.Parent = nil | |
| 286 | RH.Parent = nil | |
| 287 | if hum ~= nil then | |
| 288 | hum.PlatformStand = true | |
| 289 | end | |
| 290 | ||
| 291 | local Head = char:FindFirstChild("Head")
| |
| 292 | if Head then | |
| 293 | local Neck = Instance.new("Weld")
| |
| 294 | Neck.Name = "Neck" | |
| 295 | Neck.Part0 = torso | |
| 296 | Neck.Part1 = Head | |
| 297 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 298 | Neck.C1 = CFrame.new() | |
| 299 | Neck.Parent = torso | |
| 300 | end | |
| 301 | local Limb = char:FindFirstChild("Right Arm")
| |
| 302 | if Limb then | |
| 303 | ||
| 304 | Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0) | |
| 305 | local Joint = Instance.new("Glue")
| |
| 306 | Joint.Name = "RightShoulder" | |
| 307 | Joint.Part0 = torso | |
| 308 | Joint.Part1 = Limb | |
| 309 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 310 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 311 | Joint.Parent = torso | |
| 312 | ||
| 313 | local B = Instance.new("Part")
| |
| 314 | B.TopSurface = 0 | |
| 315 | B.BottomSurface = 0 | |
| 316 | B.formFactor = "Symmetric" | |
| 317 | B.Size = Vector3.new(1, 1, 1) | |
| 318 | B.Transparency = 1 | |
| 319 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 320 | B.Parent = char | |
| 321 | local W = Instance.new("Weld")
| |
| 322 | W.Part0 = Limb | |
| 323 | W.Part1 = B | |
| 324 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 325 | W.Parent = Limb | |
| 326 | ||
| 327 | end | |
| 328 | local Limb = char:FindFirstChild("Left Arm")
| |
| 329 | if Limb then | |
| 330 | ||
| 331 | Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0) | |
| 332 | local Joint = Instance.new("Glue")
| |
| 333 | Joint.Name = "LeftShoulder" | |
| 334 | Joint.Part0 = torso | |
| 335 | Joint.Part1 = Limb | |
| 336 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 337 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 338 | Joint.Parent = torso | |
| 339 | ||
| 340 | local B = Instance.new("Part")
| |
| 341 | B.TopSurface = 0 | |
| 342 | B.BottomSurface = 0 | |
| 343 | B.formFactor = "Symmetric" | |
| 344 | B.Size = Vector3.new(1, 1, 1) | |
| 345 | B.Transparency = 1 | |
| 346 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 347 | B.Parent = char | |
| 348 | local W = Instance.new("Weld")
| |
| 349 | W.Part0 = Limb | |
| 350 | W.Part1 = B | |
| 351 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 352 | W.Parent = Limb | |
| 353 | ||
| 354 | end | |
| 355 | local Limb = char:FindFirstChild("Right Leg")
| |
| 356 | if Limb then | |
| 357 | ||
| 358 | Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0) | |
| 359 | local Joint = Instance.new("Glue")
| |
| 360 | Joint.Name = "RightHip" | |
| 361 | Joint.Part0 = torso | |
| 362 | Joint.Part1 = Limb | |
| 363 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 364 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 365 | Joint.Parent = torso | |
| 366 | ||
| 367 | local B = Instance.new("Part")
| |
| 368 | B.TopSurface = 0 | |
| 369 | B.BottomSurface = 0 | |
| 370 | B.formFactor = "Symmetric" | |
| 371 | B.Size = Vector3.new(1, 1, 1) | |
| 372 | B.Transparency = 1 | |
| 373 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 374 | B.Parent = char | |
| 375 | local W = Instance.new("Weld")
| |
| 376 | W.Part0 = Limb | |
| 377 | W.Part1 = B | |
| 378 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 379 | W.Parent = Limb | |
| 380 | ||
| 381 | end | |
| 382 | local Limb = char:FindFirstChild("Left Leg")
| |
| 383 | if Limb then | |
| 384 | ||
| 385 | Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0) | |
| 386 | local Joint = Instance.new("Glue")
| |
| 387 | Joint.Name = "LeftHip" | |
| 388 | Joint.Part0 = torso | |
| 389 | Joint.Part1 = Limb | |
| 390 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 391 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 392 | Joint.Parent = torso | |
| 393 | ||
| 394 | local B = Instance.new("Part")
| |
| 395 | B.TopSurface = 0 | |
| 396 | B.BottomSurface = 0 | |
| 397 | B.formFactor = "Symmetric" | |
| 398 | B.Size = Vector3.new(1, 1, 1) | |
| 399 | B.Transparency = 1 | |
| 400 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 401 | B.Parent = char | |
| 402 | local W = Instance.new("Weld")
| |
| 403 | W.Part0 = Limb | |
| 404 | W.Part1 = B | |
| 405 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 406 | W.Parent = Limb | |
| 407 | ||
| 408 | end | |
| 409 | --[ | |
| 410 | local Bar = Instance.new("Part")
| |
| 411 | Bar.TopSurface = 0 | |
| 412 | Bar.BottomSurface = 0 | |
| 413 | Bar.formFactor = "Symmetric" | |
| 414 | Bar.Size = Vector3.new(1, 1, 1) | |
| 415 | Bar.Transparency = 1 | |
| 416 | Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0) | |
| 417 | Bar.Parent = char | |
| 418 | local Weld = Instance.new("Weld")
| |
| 419 | Weld.Part0 = torso | |
| 420 | Weld.Part1 = Bar | |
| 421 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 422 | Weld.Parent = torso | |
| 423 | --]] | |
| 424 | ||
| 425 | torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z)) | |
| 426 | ||
| 427 | end | |
| 428 | ||
| 429 | ------------------------------------------------------- | |
| 430 | --End Kyu's shitty stuff-- | |
| 431 | ------------------------------------------------------- | |
| 432 | ||
| 433 | ------------------------------------------------------- | |
| 434 | --Start Important Functions-- | |
| 435 | ------------------------------------------------------- | |
| 436 | function swait(num) | |
| 437 | if num == 0 or num == nil then | |
| 438 | game:service("RunService").Stepped:wait(0)
| |
| 439 | else | |
| 440 | for i = 0, num do | |
| 441 | game:service("RunService").Stepped:wait(0)
| |
| 442 | end | |
| 443 | end | |
| 444 | end | |
| 445 | function thread(f) | |
| 446 | coroutine.resume(coroutine.create(f)) | |
| 447 | end | |
| 448 | function clerp(a, b, t) | |
| 449 | local qa = {
| |
| 450 | QuaternionFromCFrame(a) | |
| 451 | } | |
| 452 | local qb = {
| |
| 453 | QuaternionFromCFrame(b) | |
| 454 | } | |
| 455 | local ax, ay, az = a.x, a.y, a.z | |
| 456 | local bx, by, bz = b.x, b.y, b.z | |
| 457 | local _t = 1 - t | |
| 458 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 459 | end | |
| 460 | function QuaternionFromCFrame(cf) | |
| 461 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 462 | local trace = m00 + m11 + m22 | |
| 463 | if trace > 0 then | |
| 464 | local s = math.sqrt(1 + trace) | |
| 465 | local recip = 0.5 / s | |
| 466 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 467 | else | |
| 468 | local i = 0 | |
| 469 | if m00 < m11 then | |
| 470 | i = 1 | |
| 471 | end | |
| 472 | if m22 > (i == 0 and m00 or m11) then | |
| 473 | i = 2 | |
| 474 | end | |
| 475 | if i == 0 then | |
| 476 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 477 | local recip = 0.5 / s | |
| 478 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 479 | elseif i == 1 then | |
| 480 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 481 | local recip = 0.5 / s | |
| 482 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 483 | elseif i == 2 then | |
| 484 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 485 | local recip = 0.5 / s | |
| 486 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 487 | end | |
| 488 | end | |
| 489 | end | |
| 490 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 491 | local xs, ys, zs = x + x, y + y, z + z | |
| 492 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 493 | local xx = x * xs | |
| 494 | local xy = x * ys | |
| 495 | local xz = x * zs | |
| 496 | local yy = y * ys | |
| 497 | local yz = y * zs | |
| 498 | local zz = z * zs | |
| 499 | 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)) | |
| 500 | end | |
| 501 | function QuaternionSlerp(a, b, t) | |
| 502 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 503 | local startInterp, finishInterp | |
| 504 | if cosTheta >= 1.0E-4 then | |
| 505 | if 1 - cosTheta > 1.0E-4 then | |
| 506 | local theta = math.acos(cosTheta) | |
| 507 | local invSinTheta = 1 / Sin(theta) | |
| 508 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 509 | finishInterp = Sin(t * theta) * invSinTheta | |
| 510 | else | |
| 511 | startInterp = 1 - t | |
| 512 | finishInterp = t | |
| 513 | end | |
| 514 | elseif 1 + cosTheta > 1.0E-4 then | |
| 515 | local theta = math.acos(-cosTheta) | |
| 516 | local invSinTheta = 1 / Sin(theta) | |
| 517 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 518 | finishInterp = Sin(t * theta) * invSinTheta | |
| 519 | else | |
| 520 | startInterp = t - 1 | |
| 521 | finishInterp = t | |
| 522 | end | |
| 523 | 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 | |
| 524 | end | |
| 525 | function rayCast(Position, Direction, Range, Ignore) | |
| 526 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 527 | end | |
| 528 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 529 | local Create = RbxUtility.Create | |
| 530 | ||
| 531 | ------------------------------------------------------- | |
| 532 | --Start Damage Function-- | |
| 533 | ------------------------------------------------------- | |
| 534 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 535 | if hit.Parent == nil then | |
| 536 | return | |
| 537 | end | |
| 538 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 539 | for _, v in pairs(hit.Parent:children()) do | |
| 540 | if v:IsA("Humanoid") then
| |
| 541 | h = v | |
| 542 | end | |
| 543 | end | |
| 544 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 545 | warn'No R15 allowed' | |
| 546 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 547 | end | |
| 548 | ||
| 549 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 550 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 551 | if hit.Parent.DebounceHit.Value == true then | |
| 552 | return | |
| 553 | end | |
| 554 | end | |
| 555 | if insta == true then | |
| 556 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 557 | end | |
| 558 | local c = Create("ObjectValue"){
| |
| 559 | Name = "creator", | |
| 560 | Value = game:service("Players").LocalPlayer,
| |
| 561 | Parent = h, | |
| 562 | } | |
| 563 | game:GetService("Debris"):AddItem(c, .5)
| |
| 564 | if HitSound ~= nil and HitPitch ~= nil then | |
| 565 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 566 | end | |
| 567 | local Damage = math.random(minim, maxim) | |
| 568 | local blocked = false | |
| 569 | local block = hit.Parent:findFirstChild("Block")
| |
| 570 | if block ~= nil then | |
| 571 | if block.className == "IntValue" then | |
| 572 | if block.Value > 0 then | |
| 573 | blocked = true | |
| 574 | block.Value = block.Value - 1 | |
| 575 | print(block.Value) | |
| 576 | end | |
| 577 | end | |
| 578 | end | |
| 579 | if blocked == false then | |
| 580 | h.Health = h.Health - Damage | |
| 581 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 582 | else | |
| 583 | h.Health = h.Health - (Damage / 2) | |
| 584 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 585 | end | |
| 586 | if Type == "Knockdown" then | |
| 587 | local hum = hit.Parent.Humanoid | |
| 588 | hum.PlatformStand = true | |
| 589 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 590 | swait(1) | |
| 591 | HHumanoid.PlatformStand = false | |
| 592 | end), hum) | |
| 593 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 594 | local bodvol = Create("BodyVelocity"){
| |
| 595 | velocity = angle * knockback, | |
| 596 | P = 5000, | |
| 597 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 598 | Parent = hit, | |
| 599 | } | |
| 600 | local rl = Create("BodyAngularVelocity"){
| |
| 601 | P = 3000, | |
| 602 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 603 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 604 | Parent = hit, | |
| 605 | } | |
| 606 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 607 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 608 | elseif Type == "Normal" then | |
| 609 | local vp = Create("BodyVelocity"){
| |
| 610 | P = 500, | |
| 611 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 612 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 613 | } | |
| 614 | if knockback > 0 then | |
| 615 | vp.Parent = hit.Parent.Torso | |
| 616 | end | |
| 617 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 618 | elseif Type == "Up" then | |
| 619 | local bodyVelocity = Create("BodyVelocity"){
| |
| 620 | velocity = Vector3.new(0, 20, 0), | |
| 621 | P = 5000, | |
| 622 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 623 | Parent = hit, | |
| 624 | } | |
| 625 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 626 | elseif Type == "DarkUp" then | |
| 627 | coroutine.resume(coroutine.create(function() | |
| 628 | for i = 0, 1, 0.1 do | |
| 629 | swait() | |
| 630 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 631 | end | |
| 632 | end)) | |
| 633 | local bodyVelocity = Create("BodyVelocity"){
| |
| 634 | velocity = Vector3.new(0, 20, 0), | |
| 635 | P = 5000, | |
| 636 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 637 | Parent = hit, | |
| 638 | } | |
| 639 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 640 | elseif Type == "Snare" then | |
| 641 | local bp = Create("BodyPosition"){
| |
| 642 | P = 2000, | |
| 643 | D = 100, | |
| 644 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 645 | position = hit.Parent.Torso.Position, | |
| 646 | Parent = hit.Parent.Torso, | |
| 647 | } | |
| 648 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 649 | elseif Type == "Freeze" then | |
| 650 | local BodPos = Create("BodyPosition"){
| |
| 651 | P = 50000, | |
| 652 | D = 1000, | |
| 653 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 654 | position = hit.Parent.Torso.Position, | |
| 655 | Parent = hit.Parent.Torso, | |
| 656 | } | |
| 657 | local BodGy = Create("BodyGyro") {
| |
| 658 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 659 | P = 20e+003, | |
| 660 | Parent = hit.Parent.Torso, | |
| 661 | cframe = hit.Parent.Torso.CFrame, | |
| 662 | } | |
| 663 | hit.Parent.Torso.Anchored = true | |
| 664 | coroutine.resume(coroutine.create(function(Part) | |
| 665 | swait(1.5) | |
| 666 | Part.Anchored = false | |
| 667 | end), hit.Parent.Torso) | |
| 668 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 669 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 670 | end | |
| 671 | local debounce = Create("BoolValue"){
| |
| 672 | Name = "DebounceHit", | |
| 673 | Parent = hit.Parent, | |
| 674 | Value = true, | |
| 675 | } | |
| 676 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 677 | c = Create("ObjectValue"){
| |
| 678 | Name = "creator", | |
| 679 | Value = Player, | |
| 680 | Parent = h, | |
| 681 | } | |
| 682 | game:GetService("Debris"):AddItem(c, .5)
| |
| 683 | end | |
| 684 | end | |
| 685 | ------------------------------------------------------- | |
| 686 | --End Damage Function-- | |
| 687 | ------------------------------------------------------- | |
| 688 | ||
| 689 | ------------------------------------------------------- | |
| 690 | --Start Damage Function Customization-- | |
| 691 | ------------------------------------------------------- | |
| 692 | function ShowDamage(Pos, Text, Time, Color) | |
| 693 | local Rate = (1 / 30) | |
| 694 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 695 | local Text = (Text or "") | |
| 696 | local Time = (Time or 2) | |
| 697 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 698 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 699 | EffectPart.Anchored = true | |
| 700 | local BillboardGui = Create("BillboardGui"){
| |
| 701 | Size = UDim2.new(3, 0, 3, 0), | |
| 702 | Adornee = EffectPart, | |
| 703 | Parent = EffectPart, | |
| 704 | } | |
| 705 | local TextLabel = Create("TextLabel"){
| |
| 706 | BackgroundTransparency = 1, | |
| 707 | Size = UDim2.new(1, 0, 1, 0), | |
| 708 | Text = Text, | |
| 709 | Font = "Highway", | |
| 710 | TextColor3 = Color, | |
| 711 | TextScaled = true, | |
| 712 | Parent = BillboardGui, | |
| 713 | } | |
| 714 | game.Debris:AddItem(EffectPart, (Time)) | |
| 715 | EffectPart.Parent = game:GetService("Workspace")
| |
| 716 | delay(0, function() | |
| 717 | local Frames = (Time / Rate) | |
| 718 | for Frame = 1, Frames do | |
| 719 | wait(Rate) | |
| 720 | local Percent = (Frame / Frames) | |
| 721 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 722 | TextLabel.TextTransparency = Percent | |
| 723 | end | |
| 724 | if EffectPart and EffectPart.Parent then | |
| 725 | EffectPart:Destroy() | |
| 726 | end | |
| 727 | end) | |
| 728 | end | |
| 729 | ------------------------------------------------------- | |
| 730 | --End Damage Function Customization-- | |
| 731 | ------------------------------------------------------- | |
| 732 | ||
| 733 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 734 | for _, c in pairs(workspace:children()) do | |
| 735 | local hum = c:findFirstChild("Humanoid")
| |
| 736 | if hum ~= nil then | |
| 737 | local head = c:findFirstChild("Head")
| |
| 738 | if head ~= nil then | |
| 739 | local targ = head.Position - Part.Position | |
| 740 | local mag = targ.magnitude | |
| 741 | if magni >= mag and c.Name ~= plr.Name then | |
| 742 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2) | |
| 743 | end | |
| 744 | end | |
| 745 | end | |
| 746 | end | |
| 747 | end | |
| 748 | ||
| 749 | ||
| 750 | CFuncs = {
| |
| 751 | Part = {
| |
| 752 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 753 | local Part = Create("Part")({
| |
| 754 | Parent = Parent, | |
| 755 | Reflectance = Reflectance, | |
| 756 | Transparency = Transparency, | |
| 757 | CanCollide = false, | |
| 758 | Locked = true, | |
| 759 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 760 | Name = Name, | |
| 761 | Size = Size, | |
| 762 | Material = Material | |
| 763 | }) | |
| 764 | RemoveOutlines(Part) | |
| 765 | return Part | |
| 766 | end | |
| 767 | }, | |
| 768 | Mesh = {
| |
| 769 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 770 | local Msh = Create(Mesh)({
| |
| 771 | Parent = Part, | |
| 772 | Offset = OffSet, | |
| 773 | Scale = Scale | |
| 774 | }) | |
| 775 | if Mesh == "SpecialMesh" then | |
| 776 | Msh.MeshType = MeshType | |
| 777 | Msh.MeshId = MeshId | |
| 778 | end | |
| 779 | return Msh | |
| 780 | end | |
| 781 | }, | |
| 782 | Mesh = {
| |
| 783 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 784 | local Msh = Create(Mesh)({
| |
| 785 | Parent = Part, | |
| 786 | Offset = OffSet, | |
| 787 | Scale = Scale | |
| 788 | }) | |
| 789 | if Mesh == "SpecialMesh" then | |
| 790 | Msh.MeshType = MeshType | |
| 791 | Msh.MeshId = MeshId | |
| 792 | end | |
| 793 | return Msh | |
| 794 | end | |
| 795 | }, | |
| 796 | Weld = {
| |
| 797 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 798 | local Weld = Create("Weld")({
| |
| 799 | Parent = Parent, | |
| 800 | Part0 = Part0, | |
| 801 | Part1 = Part1, | |
| 802 | C0 = C0, | |
| 803 | C1 = C1 | |
| 804 | }) | |
| 805 | return Weld | |
| 806 | end | |
| 807 | }, | |
| 808 | Sound = {
| |
| 809 | Create = function(id, par, vol, pit) | |
| 810 | coroutine.resume(coroutine.create(function() | |
| 811 | local S = Create("Sound")({
| |
| 812 | Volume = vol, | |
| 813 | Pitch = pit or 1, | |
| 814 | SoundId = id, | |
| 815 | Parent = par or workspace | |
| 816 | }) | |
| 817 | wait() | |
| 818 | S:play() | |
| 819 | game:GetService("Debris"):AddItem(S, 6)
| |
| 820 | end)) | |
| 821 | end | |
| 822 | }, | |
| 823 | ParticleEmitter = {
| |
| 824 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 825 | local fp = Create("ParticleEmitter")({
| |
| 826 | Parent = Parent, | |
| 827 | Color = ColorSequence.new(Color1, Color2), | |
| 828 | LightEmission = LightEmission, | |
| 829 | Size = Size, | |
| 830 | Texture = Texture, | |
| 831 | Transparency = Transparency, | |
| 832 | ZOffset = ZOffset, | |
| 833 | Acceleration = Accel, | |
| 834 | Drag = Drag, | |
| 835 | LockedToPart = LockedToPart, | |
| 836 | VelocityInheritance = VelocityInheritance, | |
| 837 | EmissionDirection = EmissionDirection, | |
| 838 | Enabled = Enabled, | |
| 839 | Lifetime = LifeTime, | |
| 840 | Rate = Rate, | |
| 841 | Rotation = Rotation, | |
| 842 | RotSpeed = RotSpeed, | |
| 843 | Speed = Speed, | |
| 844 | VelocitySpread = VelocitySpread | |
| 845 | }) | |
| 846 | return fp | |
| 847 | end | |
| 848 | } | |
| 849 | } | |
| 850 | function RemoveOutlines(part) | |
| 851 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 852 | end | |
| 853 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 854 | local Part = Create("Part")({
| |
| 855 | formFactor = FormFactor, | |
| 856 | Parent = Parent, | |
| 857 | Reflectance = Reflectance, | |
| 858 | Transparency = Transparency, | |
| 859 | CanCollide = false, | |
| 860 | Locked = true, | |
| 861 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 862 | Name = Name, | |
| 863 | Size = Size, | |
| 864 | Material = Material | |
| 865 | }) | |
| 866 | RemoveOutlines(Part) | |
| 867 | return Part | |
| 868 | end | |
| 869 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 870 | local Msh = Create(Mesh)({
| |
| 871 | Parent = Part, | |
| 872 | Offset = OffSet, | |
| 873 | Scale = Scale | |
| 874 | }) | |
| 875 | if Mesh == "SpecialMesh" then | |
| 876 | Msh.MeshType = MeshType | |
| 877 | Msh.MeshId = MeshId | |
| 878 | end | |
| 879 | return Msh | |
| 880 | end | |
| 881 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 882 | local Weld = Create("Weld")({
| |
| 883 | Parent = Parent, | |
| 884 | Part0 = Part0, | |
| 885 | Part1 = Part1, | |
| 886 | C0 = C0, | |
| 887 | C1 = C1 | |
| 888 | }) | |
| 889 | return Weld | |
| 890 | end | |
| 891 | ||
| 892 | ||
| 893 | ------------------------------------------------------- | |
| 894 | --Start Effect Function-- | |
| 895 | ------------------------------------------------------- | |
| 896 | EffectModel = Instance.new("Model", char)
| |
| 897 | Effects = {
| |
| 898 | Block = {
| |
| 899 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 900 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 901 | prt.Anchored = true | |
| 902 | prt.CFrame = cframe | |
| 903 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 904 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 905 | if Type == 1 or Type == nil then | |
| 906 | table.insert(Effects, {
| |
| 907 | prt, | |
| 908 | "Block1", | |
| 909 | delay, | |
| 910 | x3, | |
| 911 | y3, | |
| 912 | z3, | |
| 913 | msh | |
| 914 | }) | |
| 915 | elseif Type == 2 then | |
| 916 | table.insert(Effects, {
| |
| 917 | prt, | |
| 918 | "Block2", | |
| 919 | delay, | |
| 920 | x3, | |
| 921 | y3, | |
| 922 | z3, | |
| 923 | msh | |
| 924 | }) | |
| 925 | else | |
| 926 | table.insert(Effects, {
| |
| 927 | prt, | |
| 928 | "Block3", | |
| 929 | delay, | |
| 930 | x3, | |
| 931 | y3, | |
| 932 | z3, | |
| 933 | msh | |
| 934 | }) | |
| 935 | end | |
| 936 | end | |
| 937 | }, | |
| 938 | Sphere = {
| |
| 939 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 940 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 941 | prt.Anchored = true | |
| 942 | prt.CFrame = cframe | |
| 943 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
| |
| 944 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 945 | table.insert(Effects, {
| |
| 946 | prt, | |
| 947 | "Cylinder", | |
| 948 | delay, | |
| 949 | x3, | |
| 950 | y3, | |
| 951 | z3, | |
| 952 | msh | |
| 953 | }) | |
| 954 | end | |
| 955 | }, | |
| 956 | Cylinder = {
| |
| 957 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 958 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 959 | prt.Anchored = true | |
| 960 | prt.CFrame = cframe | |
| 961 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 962 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 963 | table.insert(Effects, {
| |
| 964 | prt, | |
| 965 | "Cylinder", | |
| 966 | delay, | |
| 967 | x3, | |
| 968 | y3, | |
| 969 | z3, | |
| 970 | msh | |
| 971 | }) | |
| 972 | end | |
| 973 | }, | |
| 974 | Wave = {
| |
| 975 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 976 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 977 | prt.Anchored = true | |
| 978 | prt.CFrame = cframe | |
| 979 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 980 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 981 | table.insert(Effects, {
| |
| 982 | prt, | |
| 983 | "Cylinder", | |
| 984 | delay, | |
| 985 | x3 / 60, | |
| 986 | y3 / 60, | |
| 987 | z3 / 60, | |
| 988 | msh | |
| 989 | }) | |
| 990 | end | |
| 991 | }, | |
| 992 | Ring = {
| |
| 993 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 994 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 995 | prt.Anchored = true | |
| 996 | prt.CFrame = cframe | |
| 997 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 998 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 999 | table.insert(Effects, {
| |
| 1000 | prt, | |
| 1001 | "Cylinder", | |
| 1002 | delay, | |
| 1003 | x3, | |
| 1004 | y3, | |
| 1005 | z3, | |
| 1006 | msh | |
| 1007 | }) | |
| 1008 | end | |
| 1009 | }, | |
| 1010 | Break = {
| |
| 1011 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1012 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1013 | prt.Anchored = true | |
| 1014 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1015 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1016 | local num = math.random(10, 50) / 1000 | |
| 1017 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1018 | table.insert(Effects, {
| |
| 1019 | prt, | |
| 1020 | "Shatter", | |
| 1021 | num, | |
| 1022 | prt.CFrame, | |
| 1023 | math.random() - math.random(), | |
| 1024 | 0, | |
| 1025 | math.random(50, 100) / 100 | |
| 1026 | }) | |
| 1027 | end | |
| 1028 | }, | |
| 1029 | Spiral = {
| |
| 1030 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1031 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1032 | prt.Anchored = true | |
| 1033 | prt.CFrame = cframe | |
| 1034 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1035 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1036 | table.insert(Effects, {
| |
| 1037 | prt, | |
| 1038 | "Cylinder", | |
| 1039 | delay, | |
| 1040 | x3, | |
| 1041 | y3, | |
| 1042 | z3, | |
| 1043 | msh | |
| 1044 | }) | |
| 1045 | end | |
| 1046 | }, | |
| 1047 | Push = {
| |
| 1048 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1049 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1050 | prt.Anchored = true | |
| 1051 | prt.CFrame = cframe | |
| 1052 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1053 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1054 | table.insert(Effects, {
| |
| 1055 | prt, | |
| 1056 | "Cylinder", | |
| 1057 | delay, | |
| 1058 | x3, | |
| 1059 | y3, | |
| 1060 | z3, | |
| 1061 | msh | |
| 1062 | }) | |
| 1063 | end | |
| 1064 | } | |
| 1065 | } | |
| 1066 | ------------------------------------------------------- | |
| 1067 | --End Effect Function-- | |
| 1068 | ------------------------------------------------------- | |
| 1069 | ||
| 1070 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 1071 | local NSound = nil | |
| 1072 | coroutine.resume(coroutine.create(function() | |
| 1073 | NSound = Instance.new("Sound", PARENT)
| |
| 1074 | NSound.Volume = VOLUME | |
| 1075 | NSound.Pitch = PITCH | |
| 1076 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1077 | swait() | |
| 1078 | NSound:play() | |
| 1079 | game:GetService("Debris"):AddItem(NSound, 10)
| |
| 1080 | end)) | |
| 1081 | return NSound | |
| 1082 | end | |
| 1083 | ||
| 1084 | ||
| 1085 | ||
| 1086 | ||
| 1087 | ||
| 1088 | ------------------------------------------------------- | |
| 1089 | --End Important Functions-- | |
| 1090 | ------------------------------------------------------- | |
| 1091 | ||
| 1092 | ||
| 1093 | ------------------------------------------------------- | |
| 1094 | --Start Music Option-- | |
| 1095 | ------------------------------------------------------- | |
| 1096 | local Music = Instance.new("Sound",tors)
| |
| 1097 | Music.Volume = 2.5 | |
| 1098 | Music.SoundId = "rbxassetid://" | |
| 1099 | Music.Looped = true | |
| 1100 | Music.Pitch = 1 --Pitcher | |
| 1101 | Music:Play() | |
| 1102 | ------------------------------------------------------- | |
| 1103 | --End Music Option-- | |
| 1104 | ------------------------------------------------------- | |
| 1105 | ||
| 1106 | ||
| 1107 | ------------------------------------------------------- | |
| 1108 | --Start Attacks N Stuff-- | |
| 1109 | ------------------------------------------------------- | |
| 1110 | local sine=0 | |
| 1111 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
| 1112 | local Hitboxpart = Instance.new("Part", EffectModel)
| |
| 1113 | RemoveOutlines(Hitboxpart) | |
| 1114 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
| 1115 | Hitboxpart.CanCollide = false | |
| 1116 | Hitboxpart.Transparency = 1 | |
| 1117 | Hitboxpart.Anchored = true | |
| 1118 | Hitboxpart.CFrame = Pose | |
| 1119 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
| |
| 1120 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
| 1121 | end | |
| 1122 | function GEtOuT() | |
| 1123 | attack = true | |
| 1124 | hum.WalkSpeed = 2.01 | |
| 1125 | CreateSound("749031341", hed, 10, 1)
| |
| 1126 | for i = 0,2,0.1 do | |
| 1127 | swait() | |
| 1128 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(50), Rad(0), Rad(0)), 0.15) | |
| 1129 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1130 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15) | |
| 1131 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-40)), 0.15) | |
| 1132 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1) | |
| 1133 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1) | |
| 1134 | end | |
| 1135 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 7, 10, 53, "Knockdown") | |
| 1136 | for i = 0,4,0.1 do | |
| 1137 | swait() | |
| 1138 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5) * angles(Rad(-50), Rad(0), Rad(0)), 0.15) | |
| 1139 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1140 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15) | |
| 1141 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(40)), 0.15) | |
| 1142 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(5)), 0.1) | |
| 1143 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-90), Rad(0), Rad(-5)), 0.1) | |
| 1144 | end | |
| 1145 | local Blobby = Instance.new("Part", char)
| |
| 1146 | Blobby.Name = "Blob" | |
| 1147 | Blobby.CanCollide = false | |
| 1148 | Blobby.BrickColor = BrickColor.new("Really black")
| |
| 1149 | Blobby.Transparency = 0 | |
| 1150 | Blobby.Material = "Plastic" | |
| 1151 | Blobby.Size = Vector3.new(1, 1, 2) | |
| 1152 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
| 1153 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
| 1154 | ||
| 1155 | local Weld = Instance.new("Weld", Blobby)
| |
| 1156 | Weld.Part0 = ra | |
| 1157 | Weld.Part1 = Blobby | |
| 1158 | Weld.C1 = CFrame.new(0, -.3, 1.4) | |
| 1159 | Weld.C0 = CFrame.Angles(math.rad(-90),0,0) | |
| 1160 | ||
| 1161 | local M2 = Instance.new("SpecialMesh")
| |
| 1162 | M2.Parent = Blobby | |
| 1163 | M2.MeshId = "http://www.roblox.com/asset/?id=491267221" | |
| 1164 | M2.TextureId = "http://www.roblox.com/asset/?id=491267267" | |
| 1165 | M2.Scale = Vector3.new(0.65, 0.65, 0.65) | |
| 1166 | for i = 0,6,0.1 do | |
| 1167 | swait() | |
| 1168 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1169 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1170 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1171 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1172 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(5)), 0.1) | |
| 1173 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1174 | end | |
| 1175 | Blobby.Transparency = 1 | |
| 1176 | Blobby:Destroy() | |
| 1177 | attack = false | |
| 1178 | hum.WalkSpeed = 16 | |
| 1179 | end | |
| 1180 | ||
| 1181 | function ShutTheHellUp() | |
| 1182 | attack = true | |
| 1183 | hum.WalkSpeed = 2.01 | |
| 1184 | CreateSound("336377340", hed, 10, 1)
| |
| 1185 | for i = 0,3,0.1 do | |
| 1186 | swait() | |
| 1187 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1188 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1189 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1190 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1191 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1192 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1193 | end | |
| 1194 | for i = 0,1.2,0.1 do | |
| 1195 | swait() | |
| 1196 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1197 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
| 1198 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1199 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1200 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1201 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1202 | end | |
| 1203 | for i = 0,1.2,0.1 do | |
| 1204 | swait() | |
| 1205 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1206 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
| 1207 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1208 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1209 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1210 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1211 | end | |
| 1212 | for i = 0,1.2,0.1 do | |
| 1213 | swait() | |
| 1214 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1215 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
| 1216 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1217 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1218 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1219 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1220 | end | |
| 1221 | for i = 0,1.2,0.1 do | |
| 1222 | swait() | |
| 1223 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1224 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
| 1225 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1226 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1227 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1228 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1229 | end | |
| 1230 | for i = 0,2,0.1 do | |
| 1231 | swait() | |
| 1232 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1233 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1234 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1235 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1236 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(120), Rad(0), Rad(5)), 0.1) | |
| 1237 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1238 | end | |
| 1239 | for i = 0,2,0.1 do | |
| 1240 | swait() | |
| 1241 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1242 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1243 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1244 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1245 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
| 1246 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
| 1247 | end | |
| 1248 | hum.WalkSpeed = 16 | |
| 1249 | attack = false | |
| 1250 | end | |
| 1251 | ||
| 1252 | function SpinMeDad() | |
| 1253 | attack = true | |
| 1254 | hum.WalkSpeed = 1.01 | |
| 1255 | CreateSound("145799973", hed, 10, 1)
| |
| 1256 | for i = 0,58,0.1 do | |
| 1257 | swait() | |
| 1258 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15) | |
| 1259 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1260 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1261 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1262 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
| 1263 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1) | |
| 1264 | end | |
| 1265 | hum.WalkSpeed = 16 | |
| 1266 | attack = false | |
| 1267 | end | |
| 1268 | ||
| 1269 | function EndMySufferingV2() | |
| 1270 | attack = true | |
| 1271 | hum.WalkSpeed = 1.01 | |
| 1272 | CreateSound("577475178", hed, 10, 1)
| |
| 1273 | for i = 0,18,0.1 do | |
| 1274 | swait() | |
| 1275 | rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(-10),math.rad(0)),0.15) | |
| 1276 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
| 1277 | RH.C0=clerp(RH.C0,CF(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
| 1278 | LH.C0=clerp(LH.C0,CF(-1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(-20)),0.15) | |
| 1279 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5+0.1*math.sin(sine/30), -0.6) * angles(math.rad(-0), math.rad(10), math.rad(-110)), 0.1) | |
| 1280 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(-0), math.rad(-10), math.rad(-105)), 0.1) | |
| 1281 | end | |
| 1282 | attack = false | |
| 1283 | hum.WalkSpeed = 16 | |
| 1284 | end | |
| 1285 | ||
| 1286 | function MYSPAGHETTTTTTT() | |
| 1287 | attack = true | |
| 1288 | hum.WalkSpeed = 1.01 | |
| 1289 | CreateSound("1282149571", hed, 10, 1)
| |
| 1290 | for i = 0,4,0.1 do | |
| 1291 | swait() | |
| 1292 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1293 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
| 1294 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1295 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1296 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(5)), 0.1) | |
| 1297 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115 + 4), Rad(45), Rad(50)), 0.1) | |
| 1298 | end | |
| 1299 | for i = 0,5,0.1 do | |
| 1300 | swait() | |
| 1301 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1302 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1303 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1304 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1305 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1) | |
| 1306 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(110), Rad(0), Rad(0)), 0.1) | |
| 1307 | end | |
| 1308 | for i = 0,6,0.1 do | |
| 1309 | swait() | |
| 1310 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1311 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1312 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1313 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1314 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(-10)), 0.1) | |
| 1315 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(10)), 0.1) | |
| 1316 | end | |
| 1317 | attack = false | |
| 1318 | hum.WalkSpeed = 16 | |
| 1319 | end | |
| 1320 | ||
| 1321 | function FINLAND() | |
| 1322 | attack = true | |
| 1323 | hum.WalkSpeed = 1.01 | |
| 1324 | CreateSound("313099773", hed, 10, 1)
| |
| 1325 | for i = 0,6,0.1 do | |
| 1326 | swait() | |
| 1327 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1328 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-90), Rad(0), Rad(0)), 0.3) | |
| 1329 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1330 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1331 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(120)), 0.1) | |
| 1332 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-120)), 0.1) | |
| 1333 | end | |
| 1334 | attack = false | |
| 1335 | hum.WalkSpeed = 16 | |
| 1336 | end | |
| 1337 | ||
| 1338 | function NothingPersonal() | |
| 1339 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 1340 | local HITBODY = mouse.Target.Parent | |
| 1341 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
| |
| 1342 | local HEAD = HITBODY:FindFirstChild("Head")
| |
| 1343 | local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1344 | if TORS ~= nil and HUMAN ~= nil then | |
| 1345 | attack = true | |
| 1346 | root.CFrame = TORS.CFrame * CFrame.new(-1,0,3) | |
| 1347 | TORS.Anchored = true | |
| 1348 | hum.WalkSpeed = 0 | |
| 1349 | CreateSound("1255922819", hed, 10, 1)
| |
| 1350 | end | |
| 1351 | wait(3.5) | |
| 1352 | for i = 0,9,0.1 do | |
| 1353 | swait() | |
| 1354 | for i = 1,2 do | |
| 1355 | Effects.Sphere.Create(BrickColor.new("Really red"), TORS.CFrame*CFrame.new(math.random(-200,200)/100,math.random(-300,200)/100,math.random(-100,100)/100), 1, 1, 1, 15, 15, 15, 0.2)
| |
| 1356 | end | |
| 1357 | end | |
| 1358 | wait(.5) | |
| 1359 | TORS.Anchored = false | |
| 1360 | attack = false | |
| 1361 | hum.WalkSpeed = 16 | |
| 1362 | end | |
| 1363 | end | |
| 1364 | ||
| 1365 | function VeryMuchWorrying() | |
| 1366 | attack = true | |
| 1367 | hum.WalkSpeed = 1.01 | |
| 1368 | CreateSound("1395854043", hed, 10, 1)
| |
| 1369 | for i = 0,14,0.1 do | |
| 1370 | swait() | |
| 1371 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1372 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1373 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1374 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1375 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-145)), 0.1) | |
| 1376 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(145)), 0.1) | |
| 1377 | end | |
| 1378 | attack = false | |
| 1379 | hum.WalkSpeed = 16 | |
| 1380 | end | |
| 1381 | ||
| 1382 | function AnotherOne() | |
| 1383 | attack = true | |
| 1384 | hum.WalkSpeed = 1.01 | |
| 1385 | local icri = CreateSound("1205111204", hed, 10, 1)
| |
| 1386 | swait(130) | |
| 1387 | local FRAME = tors.CFrame | |
| 1388 | repeat | |
| 1389 | swait() | |
| 1390 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1391 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1392 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1393 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
| 1394 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1) | |
| 1395 | tors.CFrame = FRAME * CF(0,1,0) | |
| 1396 | swait() | |
| 1397 | tors.CFrame = FRAME | |
| 1398 | until icri.Playing == false | |
| 1399 | attack = false | |
| 1400 | hum.WalkSpeed = 16 | |
| 1401 | end | |
| 1402 | ||
| 1403 | function kyu_will_break_your_neck_asdf_longest_function_name_ever_xd() | |
| 1404 | attack = true | |
| 1405 | print('Fun Fact : "kyu_will_break_your_neck_asdf_longest_function_name_ever_xd" is the name of this function')
| |
| 1406 | for i = 0,6,0.1 do | |
| 1407 | swait() | |
| 1408 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1409 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1410 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1411 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1412 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(170), Rad(0), Rad(-15)), 0.1) | |
| 1413 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(15)), 0.1) | |
| 1414 | end | |
| 1415 | CreateSound("1093102664", hed, 10, 1)
| |
| 1416 | for i = 0,4,0.1 do | |
| 1417 | swait() | |
| 1418 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(5), Rad(0), Rad(0)), 0.15) | |
| 1419 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(40), Rad(0)), 0.4) | |
| 1420 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1421 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1422 | RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.2 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-40)), 0.4) | |
| 1423 | LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.025 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(40)), 0.4) | |
| 1424 | end | |
| 1425 | hum.MaxHealth = 0 | |
| 1426 | ragdoll(char) | |
| 1427 | error("Seems like you just died.")
| |
| 1428 | end | |
| 1429 | ||
| 1430 | MoreTaunts = false | |
| 1431 | mouse.KeyDown:connect(function(key) | |
| 1432 | if attack == false then | |
| 1433 | if MoreTaunts == false then | |
| 1434 | if key == 'q' then | |
| 1435 | GEtOuT() | |
| 1436 | elseif key == 'e' then | |
| 1437 | ShutTheHellUp() | |
| 1438 | elseif key == 'r' then | |
| 1439 | MYSPAGHETTTTTTT() | |
| 1440 | elseif key == 't' then | |
| 1441 | SpinMeDad() | |
| 1442 | elseif key == 'y' then | |
| 1443 | EndMySufferingV2() | |
| 1444 | elseif key == 'u' then | |
| 1445 | print'ur mom gey' | |
| 1446 | elseif key == 'f' then | |
| 1447 | FINLAND() | |
| 1448 | elseif key == 'z' then | |
| 1449 | NothingPersonal() | |
| 1450 | elseif key == 'v' then | |
| 1451 | VeryMuchWorrying() | |
| 1452 | end | |
| 1453 | end | |
| 1454 | if key == 'g' and MoreTaunts == false then | |
| 1455 | print'more tauntys yey' | |
| 1456 | MoreTaunts = true | |
| 1457 | elseif key == 'g' and MoreTaunts == true then | |
| 1458 | print'rip tauntys ;c' | |
| 1459 | MoreTaunts = false | |
| 1460 | end | |
| 1461 | if MoreTaunts == true then | |
| 1462 | if key == 'q' then | |
| 1463 | AnotherOne() | |
| 1464 | elseif key == 't' then | |
| 1465 | kyu_will_break_your_neck_asdf_longest_function_name_ever_xd() | |
| 1466 | end | |
| 1467 | end | |
| 1468 | end | |
| 1469 | end) | |
| 1470 | ||
| 1471 | ------------------------------------------------------- | |
| 1472 | --End Attacks N Stuff-- | |
| 1473 | ------------------------------------------------------- | |
| 1474 | ||
| 1475 | ||
| 1476 | ||
| 1477 | ||
| 1478 | ||
| 1479 | ||
| 1480 | ||
| 1481 | ||
| 1482 | ||
| 1483 | ||
| 1484 | ------------------------------------------------------- | |
| 1485 | --Start Animations-- | |
| 1486 | ------------------------------------------------------- | |
| 1487 | local equipped = false | |
| 1488 | local idle = 0 | |
| 1489 | local change = 1 | |
| 1490 | local val = 0 | |
| 1491 | local toim = 0 | |
| 1492 | local idleanim = 0.4 | |
| 1493 | hum.Animator.Parent = nil | |
| 1494 | while true do | |
| 1495 | swait() | |
| 1496 | sine = sine + change | |
| 1497 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1498 | local velderp = root.Velocity.y | |
| 1499 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
| 1500 | if equipped == true or equipped == false then | |
| 1501 | if attack == false then | |
| 1502 | idle = idle + 1 | |
| 1503 | else | |
| 1504 | idle = 0 | |
| 1505 | end | |
| 1506 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 1507 | Anim = "Jump" | |
| 1508 | if attack == false then | |
| 1509 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
| 1510 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
| 1511 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
| 1512 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
| 1513 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15) | |
| 1514 | RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3) | |
| 1515 | end | |
| 1516 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 1517 | Anim = "Fall" | |
| 1518 | if attack == false then | |
| 1519 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
| 1520 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
| 1521 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3) | |
| 1522 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3) | |
| 1523 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
| 1524 | RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3) | |
| 1525 | end | |
| 1526 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1527 | Anim = "Idle" | |
| 1528 | change = 1 | |
| 1529 | if attack == false then | |
| 1530 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
| 1531 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3) | |
| 1532 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1533 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1534 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1) | |
| 1535 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1) | |
| 1536 | end | |
| 1537 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
| 1538 | Anim = "Walk" | |
| 1539 | change = 1 | |
| 1540 | if attack == false then | |
| 1541 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15) | |
| 1542 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
| 1543 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 35 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
| 1544 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 35 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
| 1545 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(5)), 0.1) | |
| 1546 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0), Rad(-5)), 0.1) | |
| 1547 | end | |
| 1548 | end | |
| 1549 | end | |
| 1550 | if 0 < #Effects then | |
| 1551 | for e = 1, #Effects do | |
| 1552 | if Effects[e] ~= nil then | |
| 1553 | local Thing = Effects[e] | |
| 1554 | if Thing ~= nil then | |
| 1555 | local Part = Thing[1] | |
| 1556 | local Mode = Thing[2] | |
| 1557 | local Delay = Thing[3] | |
| 1558 | local IncX = Thing[4] | |
| 1559 | local IncY = Thing[5] | |
| 1560 | local IncZ = Thing[6] | |
| 1561 | if 1 >= Thing[1].Transparency then | |
| 1562 | if Thing[2] == "Block1" then | |
| 1563 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1564 | local Mesh = Thing[1].Mesh | |
| 1565 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1566 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1567 | elseif Thing[2] == "Block2" then | |
| 1568 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 1569 | local Mesh = Thing[7] | |
| 1570 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1571 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1572 | elseif Thing[2] == "Block3" then | |
| 1573 | 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) | |
| 1574 | local Mesh = Thing[7] | |
| 1575 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1576 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1577 | elseif Thing[2] == "Cylinder" then | |
| 1578 | local Mesh = Thing[1].Mesh | |
| 1579 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1580 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1581 | elseif Thing[2] == "Blood" then | |
| 1582 | local Mesh = Thing[7] | |
| 1583 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 1584 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1585 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1586 | elseif Thing[2] == "Elec" then | |
| 1587 | local Mesh = Thing[1].Mesh | |
| 1588 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1589 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1590 | elseif Thing[2] == "Disappear" then | |
| 1591 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1592 | elseif Thing[2] == "Shatter" then | |
| 1593 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1594 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1595 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1596 | Thing[6] = Thing[6] + Thing[5] | |
| 1597 | end | |
| 1598 | else | |
| 1599 | Part.Parent = nil | |
| 1600 | table.remove(Effects, e) | |
| 1601 | end | |
| 1602 | end | |
| 1603 | end | |
| 1604 | end | |
| 1605 | end | |
| 1606 | end | |
| 1607 | ------------------------------------------------------- | |
| 1608 | --End Animations And Script-- | |
| 1609 | ------------------------------------------------------- |