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