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