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