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