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 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 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 | Player = owner | |
| 145 | PlayerGui = Player.PlayerGui | |
| 146 | Cam = workspace.CurrentCamera | |
| 147 | Backpack = Player.Backpack | |
| 148 | Character = Player.Character | |
| 149 | Humanoid = Character.Humanoid | |
| 150 | Mouse = Player:GetMouse() | |
| 151 | RootPart = Character["HumanoidRootPart"] | |
| 152 | Torso = Character["Torso"] | |
| 153 | Head = Character["Head"] | |
| 154 | RightArm = Character["Right Arm"] | |
| 155 | LeftArm = Character["Left Arm"] | |
| 156 | RightLeg = Character["Right Leg"] | |
| 157 | LeftLeg = Character["Left Leg"] | |
| 158 | RootJoint = RootPart["RootJoint"] | |
| 159 | Neck = Torso["Neck"] | |
| 160 | RightShoulder = Torso["Right Shoulder"] | |
| 161 | LeftShoulder = Torso["Left Shoulder"] | |
| 162 | RightHip = Torso["Right Hip"] | |
| 163 | LeftHip = Torso["Left Hip"] | |
| 164 | ||
| 165 | Character = Player.Character | |
| 166 | Humanoid = Character.Humanoid | |
| 167 | ||
| 168 | ------------------------------------------------------- | |
| 169 | ||
| 170 | local FavIDs = {
| |
| 171 | 340106355, --Nefl Crystals | |
| 172 | 927529620, --Dimension | |
| 173 | 876981900, --Fantasy | |
| 174 | 398987889, --Ordinary Days | |
| 175 | 1117396305, --Oh wait, it's you. | |
| 176 | 885996042, --Action Winter Journey | |
| 177 | 919231299, --Sprawling Idiot Effigy | |
| 178 | 743466274, --Good Day Sunshine | |
| 179 | 727411183, --Knife Fight | |
| 180 | 1402748531, --The Earth Is Counting On You! | |
| 181 | 595230126 --Robot Language | |
| 182 | } | |
| 183 | ||
| 184 | ||
| 185 | ||
| 186 | wait(0.2) | |
| 187 | local plr = game:service'Players'.LocalPlayer | |
| 188 | local char = plr.Character | |
| 189 | local hum = char.Humanoid | |
| 190 | local hed = char.Head | |
| 191 | local root = char.HumanoidRootPart | |
| 192 | local rootj = root.RootJoint | |
| 193 | local tors = char.Torso | |
| 194 | local ra = char["Right Arm"] | |
| 195 | local la = char["Left Arm"] | |
| 196 | local rl = char["Right Leg"] | |
| 197 | local ll = char["Left Leg"] | |
| 198 | local neck = tors["Neck"] | |
| 199 | local mouse = plr:GetMouse() | |
| 200 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 201 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 202 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 203 | local maincolor = BrickColor.new("Really grey")
| |
| 204 | ||
| 205 | ------------------------------------------------------- | |
| 206 | --Start Good Stuff-- | |
| 207 | ------------------------------------------------------- | |
| 208 | cam = game.Workspace.CurrentCamera | |
| 209 | CF = CFrame.new | |
| 210 | angles = CFrame.Angles | |
| 211 | attack = false | |
| 212 | Euler = CFrame.fromEulerAnglesXYZ | |
| 213 | Rad = math.rad | |
| 214 | IT = Instance.new | |
| 215 | BrickC = BrickColor.new | |
| 216 | Cos = math.cos | |
| 217 | Acos = math.acos | |
| 218 | Sin = math.sin | |
| 219 | Asin = math.asin | |
| 220 | Abs = math.abs | |
| 221 | Mrandom = math.random | |
| 222 | Floor = math.floor | |
| 223 | ------------------------------------------------------- | |
| 224 | --End Good Stuff-- | |
| 225 | ------------------------------------------------------- | |
| 226 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 227 | RSH, LSH = nil, nil | |
| 228 | RW = Instance.new("Weld")
| |
| 229 | LW = Instance.new("Weld")
| |
| 230 | RH = tors["Right Hip"] | |
| 231 | LH = tors["Left Hip"] | |
| 232 | RSH = tors["Right Shoulder"] | |
| 233 | LSH = tors["Left Shoulder"] | |
| 234 | RSH.Parent = nil | |
| 235 | LSH.Parent = nil | |
| 236 | RW.Name = "RW" | |
| 237 | RW.Part0 = tors | |
| 238 | RW.C0 = CF(1.5, 0.5, 0) | |
| 239 | RW.C1 = CF(0, 0.5, 0) | |
| 240 | RW.Part1 = ra | |
| 241 | RW.Parent = tors | |
| 242 | LW.Name = "LW" | |
| 243 | LW.Part0 = tors | |
| 244 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 245 | LW.C1 = CF(0, 0.5, 0) | |
| 246 | LW.Part1 = la | |
| 247 | LW.Parent = tors | |
| 248 | Effects = {}
| |
| 249 | ------------------------------------------------------- | |
| 250 | --Start HeartBeat-- | |
| 251 | ------------------------------------------------------- | |
| 252 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 253 | ArtificialHB.Name = "Heartbeat" | |
| 254 | script:WaitForChild("Heartbeat")
| |
| 255 | ||
| 256 | frame = 1 / 60 | |
| 257 | tf = 0 | |
| 258 | allowframeloss = false | |
| 259 | tossremainder = false | |
| 260 | ||
| 261 | ||
| 262 | lastframe = tick() | |
| 263 | script.Heartbeat:Fire() | |
| 264 | ||
| 265 | ||
| 266 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 267 | tf = tf + s | |
| 268 | if tf >= frame then | |
| 269 | if allowframeloss then | |
| 270 | script.Heartbeat:Fire() | |
| 271 | lastframe = tick() | |
| 272 | else | |
| 273 | for i = 1, math.floor(tf / frame) do | |
| 274 | script.Heartbeat:Fire() | |
| 275 | end | |
| 276 | lastframe = tick() | |
| 277 | end | |
| 278 | if tossremainder then | |
| 279 | tf = 0 | |
| 280 | else | |
| 281 | tf = tf - frame * math.floor(tf / frame) | |
| 282 | end | |
| 283 | end | |
| 284 | end) | |
| 285 | ------------------------------------------------------- | |
| 286 | --End HeartBeat-- | |
| 287 | ------------------------------------------------------- | |
| 288 | ||
| 289 | ------------------------------------------------------- | |
| 290 | --Start Important Functions-- | |
| 291 | ------------------------------------------------------- | |
| 292 | function swait(num) | |
| 293 | if num == 0 or num == nil then | |
| 294 | game:service("RunService").Stepped:wait(0)
| |
| 295 | else | |
| 296 | for i = 0, num do | |
| 297 | game:service("RunService").Stepped:wait(0)
| |
| 298 | end | |
| 299 | end | |
| 300 | end | |
| 301 | function thread(f) | |
| 302 | coroutine.resume(coroutine.create(f)) | |
| 303 | end | |
| 304 | function clerp(a, b, t) | |
| 305 | local qa = {
| |
| 306 | QuaternionFromCFrame(a) | |
| 307 | } | |
| 308 | local qb = {
| |
| 309 | QuaternionFromCFrame(b) | |
| 310 | } | |
| 311 | local ax, ay, az = a.x, a.y, a.z | |
| 312 | local bx, by, bz = b.x, b.y, b.z | |
| 313 | local _t = 1 - t | |
| 314 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 315 | end | |
| 316 | function QuaternionFromCFrame(cf) | |
| 317 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 318 | local trace = m00 + m11 + m22 | |
| 319 | if trace > 0 then | |
| 320 | local s = math.sqrt(1 + trace) | |
| 321 | local recip = 0.5 / s | |
| 322 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 323 | else | |
| 324 | local i = 0 | |
| 325 | if m00 < m11 then | |
| 326 | i = 1 | |
| 327 | end | |
| 328 | if m22 > (i == 0 and m00 or m11) then | |
| 329 | i = 2 | |
| 330 | end | |
| 331 | if i == 0 then | |
| 332 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 333 | local recip = 0.5 / s | |
| 334 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 335 | elseif i == 1 then | |
| 336 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 337 | local recip = 0.5 / s | |
| 338 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 339 | elseif i == 2 then | |
| 340 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 341 | local recip = 0.5 / s | |
| 342 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 343 | end | |
| 344 | end | |
| 345 | end | |
| 346 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 347 | local xs, ys, zs = x + x, y + y, z + z | |
| 348 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 349 | local xx = x * xs | |
| 350 | local xy = x * ys | |
| 351 | local xz = x * zs | |
| 352 | local yy = y * ys | |
| 353 | local yz = y * zs | |
| 354 | local zz = z * zs | |
| 355 | 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)) | |
| 356 | end | |
| 357 | function QuaternionSlerp(a, b, t) | |
| 358 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 359 | local startInterp, finishInterp | |
| 360 | if cosTheta >= 1.0E-4 then | |
| 361 | if 1 - cosTheta > 1.0E-4 then | |
| 362 | local theta = math.acos(cosTheta) | |
| 363 | local invSinTheta = 1 / Sin(theta) | |
| 364 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 365 | finishInterp = Sin(t * theta) * invSinTheta | |
| 366 | else | |
| 367 | startInterp = 1 - t | |
| 368 | finishInterp = t | |
| 369 | end | |
| 370 | elseif 1 + cosTheta > 1.0E-4 then | |
| 371 | local theta = math.acos(-cosTheta) | |
| 372 | local invSinTheta = 1 / Sin(theta) | |
| 373 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 374 | finishInterp = Sin(t * theta) * invSinTheta | |
| 375 | else | |
| 376 | startInterp = t - 1 | |
| 377 | finishInterp = t | |
| 378 | end | |
| 379 | 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 | |
| 380 | end | |
| 381 | function rayCast(Position, Direction, Range, Ignore) | |
| 382 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 383 | end | |
| 384 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 385 | local Create = RbxUtility.Create | |
| 386 | ||
| 387 | ------------------------------------------------------- | |
| 388 | --Start Damage Function-- | |
| 389 | ------------------------------------------------------- | |
| 390 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 391 | if hit.Parent == nil then | |
| 392 | return | |
| 393 | end | |
| 394 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 395 | for _, v in pairs(hit.Parent:children()) do | |
| 396 | if v:IsA("Humanoid") then
| |
| 397 | h = v | |
| 398 | end | |
| 399 | end | |
| 400 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 401 | ||
| 402 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 403 | end | |
| 404 | ||
| 405 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 406 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 407 | if hit.Parent.DebounceHit.Value == true then | |
| 408 | return | |
| 409 | end | |
| 410 | end | |
| 411 | if insta == true then | |
| 412 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 413 | end | |
| 414 | local c = Create("ObjectValue"){
| |
| 415 | Name = "creator", | |
| 416 | Value = game:service("Players").LocalPlayer,
| |
| 417 | Parent = h, | |
| 418 | } | |
| 419 | game:GetService("Debris"):AddItem(c, .5)
| |
| 420 | if HitSound ~= nil and HitPitch ~= nil then | |
| 421 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 422 | end | |
| 423 | local Damage = math.random(minim, maxim) | |
| 424 | local blocked = false | |
| 425 | local block = hit.Parent:findFirstChild("Block")
| |
| 426 | if block ~= nil then | |
| 427 | if block.className == "IntValue" then | |
| 428 | if block.Value > 0 then | |
| 429 | blocked = true | |
| 430 | block.Value = block.Value - 1 | |
| 431 | print(block.Value) | |
| 432 | end | |
| 433 | end | |
| 434 | end | |
| 435 | if blocked == false then | |
| 436 | h.Health = h.Health - Damage | |
| 437 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 438 | else | |
| 439 | h.Health = h.Health - (Damage / 2) | |
| 440 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 441 | end | |
| 442 | if Type == "Knockdown" then | |
| 443 | local hum = hit.Parent.Humanoid | |
| 444 | hum.PlatformStand = true | |
| 445 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 446 | swait(1) | |
| 447 | HHumanoid.PlatformStand = false | |
| 448 | end), hum) | |
| 449 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 450 | local bodvol = Create("BodyVelocity"){
| |
| 451 | velocity = angle * knockback, | |
| 452 | P = 5000, | |
| 453 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 454 | Parent = hit, | |
| 455 | } | |
| 456 | local rl = Create("BodyAngularVelocity"){
| |
| 457 | P = 3000, | |
| 458 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 459 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 460 | Parent = hit, | |
| 461 | } | |
| 462 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 463 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 464 | elseif Type == "Normal" then | |
| 465 | local vp = Create("BodyVelocity"){
| |
| 466 | P = 500, | |
| 467 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 468 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 469 | } | |
| 470 | if knockback > 0 then | |
| 471 | vp.Parent = hit.Parent.Torso | |
| 472 | end | |
| 473 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 474 | elseif Type == "Up" then | |
| 475 | local bodyVelocity = Create("BodyVelocity"){
| |
| 476 | velocity = Vector3.new(0, 20, 0), | |
| 477 | P = 5000, | |
| 478 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 479 | Parent = hit, | |
| 480 | } | |
| 481 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 482 | elseif Type == "DarkUp" then | |
| 483 | coroutine.resume(coroutine.create(function() | |
| 484 | for i = 0, 1, 0.1 do | |
| 485 | swait() | |
| 486 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 487 | end | |
| 488 | end)) | |
| 489 | local bodyVelocity = Create("BodyVelocity"){
| |
| 490 | velocity = Vector3.new(0, 20, 0), | |
| 491 | P = 5000, | |
| 492 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 493 | Parent = hit, | |
| 494 | } | |
| 495 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 496 | elseif Type == "Snare" then | |
| 497 | local bp = Create("BodyPosition"){
| |
| 498 | P = 2000, | |
| 499 | D = 100, | |
| 500 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 501 | position = hit.Parent.Torso.Position, | |
| 502 | Parent = hit.Parent.Torso, | |
| 503 | } | |
| 504 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 505 | elseif Type == "Freeze" then | |
| 506 | local BodPos = Create("BodyPosition"){
| |
| 507 | P = 50000, | |
| 508 | D = 1000, | |
| 509 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 510 | position = hit.Parent.Torso.Position, | |
| 511 | Parent = hit.Parent.Torso, | |
| 512 | } | |
| 513 | local BodGy = Create("BodyGyro") {
| |
| 514 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 515 | P = 20e+003, | |
| 516 | Parent = hit.Parent.Torso, | |
| 517 | cframe = hit.Parent.Torso.CFrame, | |
| 518 | } | |
| 519 | hit.Parent.Torso.Anchored = true | |
| 520 | coroutine.resume(coroutine.create(function(Part) | |
| 521 | swait(1.5) | |
| 522 | Part.Anchored = false | |
| 523 | end), hit.Parent.Torso) | |
| 524 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 525 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 526 | end | |
| 527 | local debounce = Create("BoolValue"){
| |
| 528 | Name = "DebounceHit", | |
| 529 | Parent = hit.Parent, | |
| 530 | Value = true, | |
| 531 | } | |
| 532 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 533 | c = Create("ObjectValue"){
| |
| 534 | Name = "creator", | |
| 535 | Value = Player, | |
| 536 | Parent = h, | |
| 537 | } | |
| 538 | game:GetService("Debris"):AddItem(c, .5)
| |
| 539 | end | |
| 540 | end | |
| 541 | ------------------------------------------------------- | |
| 542 | --End Damage Function-- | |
| 543 | ------------------------------------------------------- | |
| 544 | ||
| 545 | ------------------------------------------------------- | |
| 546 | --Start Damage Function Customization-- | |
| 547 | ------------------------------------------------------- | |
| 548 | function ShowDamage(Pos, Text, Time, Color) | |
| 549 | local Rate = (1 / 30) | |
| 550 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 551 | local Text = (Text or "") | |
| 552 | local Time = (Time or 2) | |
| 553 | local Color = (Color or Color3.new(17, 17, 17)) | |
| 554 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 555 | EffectPart.Anchored = true | |
| 556 | local BillboardGui = Create("BillboardGui"){
| |
| 557 | Size = UDim2.new(3, 0, 3, 0), | |
| 558 | Adornee = EffectPart, | |
| 559 | Parent = EffectPart, | |
| 560 | } | |
| 561 | local TextLabel = Create("TextLabel"){
| |
| 562 | BackgroundTransparency = 1, | |
| 563 | Size = UDim2.new(1, 0, 1, 0), | |
| 564 | Text = Text, | |
| 565 | Font = "Bodoni", | |
| 566 | TextColor3 = Color, | |
| 567 | TextScaled = true, | |
| 568 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
| 569 | Parent = BillboardGui, | |
| 570 | } | |
| 571 | game.Debris:AddItem(EffectPart, (Time)) | |
| 572 | EffectPart.Parent = game:GetService("Workspace")
| |
| 573 | delay(0, function() | |
| 574 | local Frames = (Time / Rate) | |
| 575 | for Frame = 1, Frames do | |
| 576 | wait(Rate) | |
| 577 | local Percent = (Frame / Frames) | |
| 578 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 579 | TextLabel.TextTransparency = Percent | |
| 580 | end | |
| 581 | if EffectPart and EffectPart.Parent then | |
| 582 | EffectPart:Destroy() | |
| 583 | end | |
| 584 | end) | |
| 585 | end | |
| 586 | ------------------------------------------------------- | |
| 587 | --End Damage Function Customization-- | |
| 588 | ------------------------------------------------------- | |
| 589 | ||
| 590 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 591 | for _, c in pairs(workspace:children()) do | |
| 592 | local hum = c:findFirstChild("Humanoid")
| |
| 593 | if hum ~= nil then | |
| 594 | local head = c:findFirstChild("Head")
| |
| 595 | if head ~= nil then | |
| 596 | local targ = head.Position - Part.Position | |
| 597 | local mag = targ.magnitude | |
| 598 | if magni >= mag and c.Name ~= plr.Name then | |
| 599 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 600 | end | |
| 601 | end | |
| 602 | end | |
| 603 | end | |
| 604 | end | |
| 605 | ||
| 606 | ||
| 607 | CFuncs = {
| |
| 608 | Part = {
| |
| 609 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 610 | local Part = Create("Part")({
| |
| 611 | Parent = Parent, | |
| 612 | Reflectance = Reflectance, | |
| 613 | Transparency = Transparency, | |
| 614 | CanCollide = false, | |
| 615 | Locked = true, | |
| 616 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 617 | Name = Name, | |
| 618 | Size = Size, | |
| 619 | Material = Material | |
| 620 | }) | |
| 621 | RemoveOutlines(Part) | |
| 622 | return Part | |
| 623 | end | |
| 624 | }, | |
| 625 | Mesh = {
| |
| 626 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 627 | local Msh = Create(Mesh)({
| |
| 628 | Parent = Part, | |
| 629 | Offset = OffSet, | |
| 630 | Scale = Scale | |
| 631 | }) | |
| 632 | if Mesh == "SpecialMesh" then | |
| 633 | Msh.MeshType = MeshType | |
| 634 | Msh.MeshId = MeshId | |
| 635 | end | |
| 636 | return Msh | |
| 637 | end | |
| 638 | }, | |
| 639 | Mesh = {
| |
| 640 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 641 | local Msh = Create(Mesh)({
| |
| 642 | Parent = Part, | |
| 643 | Offset = OffSet, | |
| 644 | Scale = Scale | |
| 645 | }) | |
| 646 | if Mesh == "SpecialMesh" then | |
| 647 | Msh.MeshType = MeshType | |
| 648 | Msh.MeshId = MeshId | |
| 649 | end | |
| 650 | return Msh | |
| 651 | end | |
| 652 | }, | |
| 653 | Weld = {
| |
| 654 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 655 | local Weld = Create("Weld")({
| |
| 656 | Parent = Parent, | |
| 657 | Part0 = Part0, | |
| 658 | Part1 = Part1, | |
| 659 | C0 = C0, | |
| 660 | C1 = C1 | |
| 661 | }) | |
| 662 | return Weld | |
| 663 | end | |
| 664 | }, | |
| 665 | Sound = {
| |
| 666 | Create = function(id, par, vol, pit) | |
| 667 | coroutine.resume(coroutine.create(function() | |
| 668 | local S = Create("Sound")({
| |
| 669 | Volume = vol, | |
| 670 | Pitch = pit or 1, | |
| 671 | SoundId = id, | |
| 672 | Parent = par or workspace | |
| 673 | }) | |
| 674 | wait() | |
| 675 | S:play() | |
| 676 | game:GetService("Debris"):AddItem(S, 6)
| |
| 677 | end)) | |
| 678 | end | |
| 679 | }, | |
| 680 | ParticleEmitter = {
| |
| 681 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 682 | local fp = Create("ParticleEmitter")({
| |
| 683 | Parent = Parent, | |
| 684 | Color = ColorSequence.new(Color1, Color2), | |
| 685 | LightEmission = LightEmission, | |
| 686 | Size = Size, | |
| 687 | Texture = Texture, | |
| 688 | Transparency = Transparency, | |
| 689 | ZOffset = ZOffset, | |
| 690 | Acceleration = Accel, | |
| 691 | Drag = Drag, | |
| 692 | LockedToPart = LockedToPart, | |
| 693 | VelocityInheritance = VelocityInheritance, | |
| 694 | EmissionDirection = EmissionDirection, | |
| 695 | Enabled = Enabled, | |
| 696 | Lifetime = LifeTime, | |
| 697 | Rate = Rate, | |
| 698 | Rotation = Rotation, | |
| 699 | RotSpeed = RotSpeed, | |
| 700 | Speed = Speed, | |
| 701 | VelocitySpread = VelocitySpread | |
| 702 | }) | |
| 703 | return fp | |
| 704 | end | |
| 705 | } | |
| 706 | } | |
| 707 | function RemoveOutlines(part) | |
| 708 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 709 | end | |
| 710 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 711 | local Part = Create("Part")({
| |
| 712 | formFactor = FormFactor, | |
| 713 | Parent = Parent, | |
| 714 | Reflectance = Reflectance, | |
| 715 | Transparency = Transparency, | |
| 716 | CanCollide = false, | |
| 717 | Locked = true, | |
| 718 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 719 | Name = Name, | |
| 720 | Size = Size, | |
| 721 | Material = Material | |
| 722 | }) | |
| 723 | RemoveOutlines(Part) | |
| 724 | return Part | |
| 725 | end | |
| 726 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 727 | local Msh = Create(Mesh)({
| |
| 728 | Parent = Part, | |
| 729 | Offset = OffSet, | |
| 730 | Scale = Scale | |
| 731 | }) | |
| 732 | if Mesh == "SpecialMesh" then | |
| 733 | Msh.MeshType = MeshType | |
| 734 | Msh.MeshId = MeshId | |
| 735 | end | |
| 736 | return Msh | |
| 737 | end | |
| 738 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 739 | local Weld = Create("Weld")({
| |
| 740 | Parent = Parent, | |
| 741 | Part0 = Part0, | |
| 742 | Part1 = Part1, | |
| 743 | C0 = C0, | |
| 744 | C1 = C1 | |
| 745 | }) | |
| 746 | return Weld | |
| 747 | end | |
| 748 | ||
| 749 | ||
| 750 | ------------------------------------------------------- | |
| 751 | --Start Effect Function-- | |
| 752 | ------------------------------------------------------- | |
| 753 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 754 | local NEWWELD = IT(TYPE) | |
| 755 | NEWWELD.Part0 = PART0 | |
| 756 | NEWWELD.Part1 = PART1 | |
| 757 | NEWWELD.C0 = C0 | |
| 758 | NEWWELD.C1 = C1 | |
| 759 | NEWWELD.Parent = PARENT | |
| 760 | return NEWWELD | |
| 761 | end | |
| 762 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 763 | local NEWMESH = IT(MESH) | |
| 764 | if MESH == "SpecialMesh" then | |
| 765 | NEWMESH.MeshType = MESHTYPE | |
| 766 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 767 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 768 | end | |
| 769 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 770 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 771 | end | |
| 772 | end | |
| 773 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 774 | NEWMESH.Scale = SCALE | |
| 775 | NEWMESH.Parent = PARENT | |
| 776 | return NEWMESH | |
| 777 | end | |
| 778 | ||
| 779 | EffectModel = Instance.new("Model", char)
| |
| 780 | Effects = {
| |
| 781 | Block = {
| |
| 782 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 783 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 784 | prt.Anchored = true | |
| 785 | prt.CFrame = cframe | |
| 786 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 787 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 788 | if Type == 1 or Type == nil then | |
| 789 | table.insert(Effects, {
| |
| 790 | prt, | |
| 791 | "Block1", | |
| 792 | delay, | |
| 793 | x3, | |
| 794 | y3, | |
| 795 | z3, | |
| 796 | msh | |
| 797 | }) | |
| 798 | elseif Type == 2 then | |
| 799 | table.insert(Effects, {
| |
| 800 | prt, | |
| 801 | "Block2", | |
| 802 | delay, | |
| 803 | x3, | |
| 804 | y3, | |
| 805 | z3, | |
| 806 | msh | |
| 807 | }) | |
| 808 | else | |
| 809 | table.insert(Effects, {
| |
| 810 | prt, | |
| 811 | "Block3", | |
| 812 | delay, | |
| 813 | x3, | |
| 814 | y3, | |
| 815 | z3, | |
| 816 | msh | |
| 817 | }) | |
| 818 | end | |
| 819 | end | |
| 820 | }, | |
| 821 | Sphere = {
| |
| 822 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 823 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 824 | prt.Anchored = true | |
| 825 | prt.CFrame = cframe | |
| 826 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", 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 | Cylinder = {
| |
| 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("CylinderMesh", prt, "", "", 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 | Wave = {
| |
| 858 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 859 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 860 | prt.Anchored = true | |
| 861 | prt.CFrame = cframe | |
| 862 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 863 | Cso("2755928629", tors, 10, 1)
| |
| 864 | chatfunc("print (''you got that'')", BrickColor.new("Really red").Color)
| |
| 865 | wait(0,35) | |
| 866 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 867 | table.insert(Effects, {
| |
| 868 | prt, | |
| 869 | "Cylinder", | |
| 870 | delay, | |
| 871 | x3 / 60, | |
| 872 | y3 / 60, | |
| 873 | z3 / 60, | |
| 874 | msh | |
| 875 | }) | |
| 876 | end | |
| 877 | }, | |
| 878 | Ring = {
| |
| 879 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 880 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 881 | prt.Anchored = true | |
| 882 | prt.CFrame = cframe | |
| 883 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 884 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 885 | table.insert(Effects, {
| |
| 886 | prt, | |
| 887 | "Cylinder", | |
| 888 | delay, | |
| 889 | x3, | |
| 890 | y3, | |
| 891 | z3, | |
| 892 | msh | |
| 893 | }) | |
| 894 | end | |
| 895 | }, | |
| 896 | Break = {
| |
| 897 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 898 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 899 | prt.Anchored = true | |
| 900 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 901 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 902 | local num = math.random(10, 50) / 1000 | |
| 903 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 904 | table.insert(Effects, {
| |
| 905 | prt, | |
| 906 | "Shatter", | |
| 907 | num, | |
| 908 | prt.CFrame, | |
| 909 | math.random() - math.random(), | |
| 910 | 0, | |
| 911 | math.random(50, 100) / 100 | |
| 912 | }) | |
| 913 | end | |
| 914 | }, | |
| 915 | Spiral = {
| |
| 916 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 917 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 918 | prt.Anchored = true | |
| 919 | prt.CFrame = cframe | |
| 920 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 921 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 922 | table.insert(Effects, {
| |
| 923 | prt, | |
| 924 | "Cylinder", | |
| 925 | delay, | |
| 926 | x3, | |
| 927 | y3, | |
| 928 | z3, | |
| 929 | msh | |
| 930 | }) | |
| 931 | end | |
| 932 | }, | |
| 933 | Push = {
| |
| 934 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 935 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 936 | prt.Anchored = true | |
| 937 | prt.CFrame = cframe | |
| 938 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 939 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 940 | table.insert(Effects, {
| |
| 941 | prt, | |
| 942 | "Cylinder", | |
| 943 | delay, | |
| 944 | x3, | |
| 945 | y3, | |
| 946 | z3, | |
| 947 | msh | |
| 948 | }) | |
| 949 | end | |
| 950 | } | |
| 951 | } | |
| 952 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
| 953 | local fp = IT("Part")
| |
| 954 | fp.formFactor = formfactor | |
| 955 | fp.Parent = parent | |
| 956 | fp.Reflectance = reflectance | |
| 957 | fp.Transparency = transparency | |
| 958 | fp.CanCollide = false | |
| 959 | fp.Locked = true | |
| 960 | fp.BrickColor = brickcolor | |
| 961 | fp.Name = name | |
| 962 | fp.Size = size | |
| 963 | fp.Position = tors.Position | |
| 964 | RemoveOutlines(fp) | |
| 965 | fp.Material = "SmoothPlastic" | |
| 966 | fp:BreakJoints() | |
| 967 | return fp | |
| 968 | end | |
| 969 | ||
| 970 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 971 | local mesh = IT(Mesh) | |
| 972 | mesh.Parent = part | |
| 973 | if Mesh == "SpecialMesh" then | |
| 974 | mesh.MeshType = meshtype | |
| 975 | if meshid ~= "nil" then | |
| 976 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
| 977 | end | |
| 978 | end | |
| 979 | mesh.Offset = offset | |
| 980 | mesh.Scale = scale | |
| 981 | return mesh | |
| 982 | end | |
| 983 | ||
| 984 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 985 | local type = type | |
| 986 | local rng = Instance.new("Part", char)
| |
| 987 | rng.Anchored = true | |
| 988 | rng.BrickColor = color | |
| 989 | rng.CanCollide = false | |
| 990 | rng.FormFactor = 3 | |
| 991 | rng.Name = "Ring" | |
| 992 | rng.Material = "Neon" | |
| 993 | rng.Size = Vector3.new(1, 1, 1) | |
| 994 | rng.Transparency = 0 | |
| 995 | rng.TopSurface = 0 | |
| 996 | rng.BottomSurface = 0 | |
| 997 | rng.CFrame = pos | |
| 998 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 999 | rngm.MeshType = MType | |
| 1000 | rngm.Scale = scale | |
| 1001 | local scaler2 = 1 | |
| 1002 | if type == "Add" then | |
| 1003 | scaler2 = 1 * value | |
| 1004 | elseif type == "Divide" then | |
| 1005 | scaler2 = 1 / value | |
| 1006 | end | |
| 1007 | coroutine.resume(coroutine.create(function() | |
| 1008 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1009 | swait() | |
| 1010 | if type == "Add" then | |
| 1011 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1012 | elseif type == "Divide" then | |
| 1013 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1014 | end | |
| 1015 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1016 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1017 | end | |
| 1018 | rng:Destroy() | |
| 1019 | end)) | |
| 1020 | end | |
| 1021 | ||
| 1022 | function Eviscerate(dude) | |
| 1023 | if dude.Name ~= char then | |
| 1024 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1025 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1026 | local val = IT("BoolValue", dude)
| |
| 1027 | val.Name = "IsHit" | |
| 1028 | local ds = coroutine.wrap(function() | |
| 1029 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1030 | wait(0.5) | |
| 1031 | target = nil | |
| 1032 | coroutine.resume(coroutine.create(function() | |
| 1033 | for i, v in pairs(dude:GetChildren()) do | |
| 1034 | if v:IsA("Accessory") then
| |
| 1035 | v:Destroy() | |
| 1036 | end | |
| 1037 | if v:IsA("Humanoid") then
| |
| 1038 | v:Destroy() | |
| 1039 | end | |
| 1040 | if v:IsA("CharacterMesh") then
| |
| 1041 | v:Destroy() | |
| 1042 | end | |
| 1043 | if v:IsA("Model") then
| |
| 1044 | v:Destroy() | |
| 1045 | end | |
| 1046 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1047 | for x, o in pairs(v:GetChildren()) do | |
| 1048 | if o:IsA("Decal") then
| |
| 1049 | o:Destroy() | |
| 1050 | end | |
| 1051 | end | |
| 1052 | coroutine.resume(coroutine.create(function() | |
| 1053 | v.Material = "Neon" | |
| 1054 | v.CanCollide = false | |
| 1055 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1056 | PartEmmit1.LightEmission = 1 | |
| 1057 | PartEmmit1.Texture = "rbxassetid://284205403" | |
| 1058 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1059 | PartEmmit1.Rate = 150 | |
| 1060 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1061 | PartEmmit1.Size = NumberSequence.new({
| |
| 1062 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1063 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1064 | }) | |
| 1065 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1066 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1067 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1068 | }) | |
| 1069 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1070 | PartEmmit1.VelocitySpread = 30000 | |
| 1071 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1072 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1073 | local BodPoss = IT("BodyPosition", v)
| |
| 1074 | BodPoss.P = 3000 | |
| 1075 | BodPoss.D = 1000 | |
| 1076 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1077 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1078 | v.Color = maincolor.Color | |
| 1079 | coroutine.resume(coroutine.create(function() | |
| 1080 | for i = 0, 49 do | |
| 1081 | swait(1) | |
| 1082 | v.Transparency = v.Transparency + 0.08 | |
| 1083 | end | |
| 1084 | wait(0.5) | |
| 1085 | PartEmmit1.Enabled = false | |
| 1086 | wait(3) | |
| 1087 | v:Destroy() | |
| 1088 | dude:Destroy() | |
| 1089 | end)) | |
| 1090 | end)) | |
| 1091 | end | |
| 1092 | end | |
| 1093 | end)) | |
| 1094 | end) | |
| 1095 | ds() | |
| 1096 | end | |
| 1097 | end | |
| 1098 | ||
| 1099 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1100 | if SinglePlayer then | |
| 1101 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1102 | end | |
| 1103 | local List = {}
| |
| 1104 | for i, v in pairs(workspace:GetChildren()) do | |
| 1105 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1106 | table.insert(List, v) | |
| 1107 | end | |
| 1108 | end | |
| 1109 | return List | |
| 1110 | end | |
| 1111 | ||
| 1112 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
| 1113 | local type = type | |
| 1114 | local rng = Instance.new("Part", char)
| |
| 1115 | rng.Anchored = true | |
| 1116 | rng.BrickColor = color | |
| 1117 | rng.CanCollide = false | |
| 1118 | rng.FormFactor = 3 | |
| 1119 | rng.Name = "Ring" | |
| 1120 | rng.Material = "Neon" | |
| 1121 | rng.Size = Vector3.new(1, 1, 1) | |
| 1122 | rng.Transparency = 0 | |
| 1123 | rng.TopSurface = 0 | |
| 1124 | rng.BottomSurface = 0 | |
| 1125 | rng.CFrame = pos | |
| 1126 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 1127 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1128 | rngm.MeshType = MType | |
| 1129 | rngm.Scale = Vector3.new(x1, y1, z1) | |
| 1130 | local scaler2 = 1 | |
| 1131 | local speeder = FastSpeed | |
| 1132 | if type == "Add" then | |
| 1133 | scaler2 = 1 * value | |
| 1134 | elseif type == "Divide" then | |
| 1135 | scaler2 = 1 / value | |
| 1136 | end | |
| 1137 | coroutine.resume(coroutine.create(function() | |
| 1138 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1139 | swait() | |
| 1140 | if type == "Add" then | |
| 1141 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1142 | elseif type == "Divide" then | |
| 1143 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1144 | end | |
| 1145 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 1146 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 1147 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1148 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 1149 | end | |
| 1150 | rng:Destroy() | |
| 1151 | end)) | |
| 1152 | end | |
| 1153 | ||
| 1154 | function SoulSteal(dude) | |
| 1155 | if dude.Name ~= char then | |
| 1156 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1157 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1158 | local val = IT("BoolValue", dude)
| |
| 1159 | val.Name = "IsHit" | |
| 1160 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
| 1161 | local soulst = coroutine.wrap(function() | |
| 1162 | local soul = Instance.new("Part",dude)
| |
| 1163 | soul.Size = Vector3.new(1,1,1) | |
| 1164 | soul.CanCollide = false | |
| 1165 | soul.Anchored = false | |
| 1166 | soul.Position = torso.Position | |
| 1167 | soul.Transparency = 1 | |
| 1168 | local PartEmmit1 = IT("ParticleEmitter", soul)
| |
| 1169 | PartEmmit1.LightEmission = 1 | |
| 1170 | PartEmmit1.Texture = "rbxassetid://569507414" | |
| 1171 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1172 | PartEmmit1.Rate = 250 | |
| 1173 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
| 1174 | PartEmmit1.Size = NumberSequence.new({
| |
| 1175 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 1176 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1177 | }) | |
| 1178 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1179 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1180 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1181 | }) | |
| 1182 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1183 | PartEmmit1.VelocitySpread = 30000 | |
| 1184 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
| 1185 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
| 1186 | local BodPoss = IT("BodyPosition", soul)
| |
| 1187 | BodPoss.P = 3000 | |
| 1188 | BodPoss.D = 1000 | |
| 1189 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1190 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1191 | wait(1.6) | |
| 1192 | soul.Touched:connect(function(hit) | |
| 1193 | if hit.Parent == char then | |
| 1194 | soul:Destroy() | |
| 1195 | end | |
| 1196 | end) | |
| 1197 | wait(1.2) | |
| 1198 | while soul do | |
| 1199 | swait() | |
| 1200 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1201 | BodPoss.Position = tors.Position | |
| 1202 | end | |
| 1203 | end) | |
| 1204 | soulst() | |
| 1205 | end | |
| 1206 | end | |
| 1207 | function FaceMouse() | |
| 1208 | local Cam = workspace.CurrentCamera | |
| 1209 | return {
| |
| 1210 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 1211 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 1212 | } | |
| 1213 | end | |
| 1214 | ||
| 1215 | BTAUNT = Instance.new("Sound", tors)
| |
| 1216 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1843671833" | |
| 1217 | BTAUNT.Volume = 10 | |
| 1218 | BTAUNT.Pitch = 1 | |
| 1219 | BTAUNT.Looped = true | |
| 1220 | BTAUNT.TimePosition = 0.2 | |
| 1221 | ||
| 1222 | BTAUNT1 = Instance.new("Sound", tors)
| |
| 1223 | BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=0" | |
| 1224 | BTAUNT1.Volume = 10 | |
| 1225 | BTAUNT1.Pitch = 1 | |
| 1226 | BTAUNT1.Looped = true | |
| 1227 | BTAUNT1.TimePosition = 0.2 | |
| 1228 | ||
| 1229 | BTAUNT3 = Instance.new("Sound", tors)
| |
| 1230 | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=2942631642" | |
| 1231 | BTAUNT3.Volume = 10 | |
| 1232 | BTAUNT3.Pitch = 1 | |
| 1233 | BTAUNT3.Looped = true | |
| 1234 | BTAUNT3.TimePosition = 0.2 | |
| 1235 | ||
| 1236 | BTAUNT2 = Instance.new("Sound", tors)
| |
| 1237 | BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=3210544464" | |
| 1238 | BTAUNT2.Volume = 10 | |
| 1239 | BTAUNT2.Pitch = 1 | |
| 1240 | BTAUNT2.Looped = true | |
| 1241 | BTAUNT2.TimePosition = 0.2 | |
| 1242 | ------------------------------------------------------ | |
| 1243 | --End Effect Function-- | |
| 1244 | ------------------------------------------------------- | |
| 1245 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 1246 | local NSound = nil | |
| 1247 | coroutine.resume(coroutine.create(function() | |
| 1248 | NSound = IT("Sound", PARENT)
| |
| 1249 | NSound.Volume = VOLUME | |
| 1250 | NSound.Pitch = PITCH | |
| 1251 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1252 | swait() | |
| 1253 | NSound:play() | |
| 1254 | game:GetService("Debris"):AddItem(NSound, 50)
| |
| 1255 | end)) | |
| 1256 | return NSound | |
| 1257 | end | |
| 1258 | function CameraEnshaking(Length, Intensity) | |
| 1259 | coroutine.resume(coroutine.create(function() | |
| 1260 | local intensity = 1 * Intensity | |
| 1261 | local rotM = 0.01 * Intensity | |
| 1262 | for i = 0, Length, 0.1 do | |
| 1263 | swait() | |
| 1264 | intensity = intensity - 0.05 * Intensity / Length | |
| 1265 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1266 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 1267 | 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) | |
| 1268 | end | |
| 1269 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 1270 | end)) | |
| 1271 | end | |
| 1272 | ------------------------------------------------------- | |
| 1273 | --End Important Functions-- | |
| 1274 | ------------------------------------------------------- | |
| 1275 | ||
| 1276 | ||
| 1277 | ------------------------------------------------------- | |
| 1278 | --Start Customization-- | |
| 1279 | ------------------------------------------------------- | |
| 1280 | local Player_Size = 1 | |
| 1281 | if Player_Size ~= 1 then | |
| 1282 | root.Size = root.Size * Player_Size | |
| 1283 | tors.Size = tors.Size * Player_Size | |
| 1284 | hed.Size = hed.Size * Player_Size | |
| 1285 | ra.Size = ra.Size * Player_Size | |
| 1286 | la.Size = la.Size * Player_Size | |
| 1287 | rl.Size = rl.Size * Player_Size | |
| 1288 | ll.Size = ll.Size * Player_Size | |
| 1289 | ---------------------------------------------------------------------------------- | |
| 1290 | rootj.Parent = root | |
| 1291 | neck.Parent = tors | |
| 1292 | RW.Parent = tors | |
| 1293 | LW.Parent = tors | |
| 1294 | RH.Parent = tors | |
| 1295 | LH.Parent = tors | |
| 1296 | ---------------------------------------------------------------------------------- | |
| 1297 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1298 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1299 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1300 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
| 1301 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
| 1302 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
| 1303 | ---------------------------------------------------------------------------------- | |
| 1304 | 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)) | |
| 1305 | 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)) | |
| 1306 | 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)) | |
| 1307 | 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)) | |
| 1308 | --hat.Parent = Character | |
| 1309 | end | |
| 1310 | ---------------------------------------------------------------------------------- | |
| 1311 | ---------------------------------------------------------------------------------- | |
| 1312 | local equipped = false | |
| 1313 | local idle = 0 | |
| 1314 | local change = 1 | |
| 1315 | local val = 0 | |
| 1316 | local toim = 0 | |
| 1317 | local idleanim = 0.4 | |
| 1318 | local sine = 0 | |
| 1319 | local Sit = 1 | |
| 1320 | ---------------------------------------------------------------------------------- | |
| 1321 | hum.WalkSpeed = 8 | |
| 1322 | hum.JumpPower = 57 | |
| 1323 | hum.Animator.Parent = nil | |
| 1324 | ---------------------------------------------------------------------------------- | |
| 1325 | local Blob = Instance.new("Part", char)
| |
| 1326 | Blob.Name = "Bloby" | |
| 1327 | Blob.CanCollide = false | |
| 1328 | Blob.BrickColor = BrickColor.new("Really black")
| |
| 1329 | Blob.Transparency = 0 | |
| 1330 | Blob.Material = "Plastic" | |
| 1331 | Blob.Size = Vector3.new(1, 1, 2) | |
| 1332 | Blob.TopSurface = Enum.SurfaceType.Smooth | |
| 1333 | Blob.BottomSurface = Enum.SurfaceType.Smooth | |
| 1334 | ||
| 1335 | local Weld = Instance.new("Weld", Blob)
| |
| 1336 | Weld.Part0 = ra | |
| 1337 | Weld.Part1 = Blob | |
| 1338 | Weld.C1 = CFrame.new(0, -2, 1.1) | |
| 1339 | Weld.C0 = CFrame.Angles(Rad(-86),0,0) | |
| 1340 | ||
| 1341 | local M2 = Instance.new("SpecialMesh")
| |
| 1342 | M2.Parent = Blob | |
| 1343 | M2.MeshId = "http://www.roblox.com/asset/?id=2605745972" | |
| 1344 | M2.Scale = Vector3.new(2, 2, 2) | |
| 1345 | ||
| 1346 | --[[local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1347 | naeeym2.AlwaysOnTop = true | |
| 1348 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 1349 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
| 1350 | naeeym2.Adornee = hed | |
| 1351 | naeeym2.Name = "Name" | |
| 1352 | --naeeym2.PlayerToHideFrom = Player | |
| 1353 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1354 | tecks2.BackgroundTransparency = 1 | |
| 1355 | tecks2.TextScaled = true | |
| 1356 | tecks2.BorderSizePixel = 0 | |
| 1357 | tecks2.Text = "Fight Me" | |
| 1358 | tecks2.Font = Enum.Font.Bodoni | |
| 1359 | tecks2.TextSize = 30 | |
| 1360 | tecks2.TextStrokeTransparency = 0 | |
| 1361 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
| 1362 | tecks2.TextStrokeColor3 = Color3.new(205, 84, 75) | |
| 1363 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1364 | tecks2.Parent = naeeym2]] | |
| 1365 | ------------------------------------------------------- | |
| 1366 | --End Customization-- | |
| 1367 | ------------------------------------------------------- | |
| 1368 | ||
| 1369 | ------------------------------------------------------- | |
| 1370 | --Start Attacks N Stuff-- | |
| 1371 | ------------------------------------------------------- | |
| 1372 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1373 | naeeym2.AlwaysOnTop = true | |
| 1374 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 1375 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 1376 | naeeym2.Adornee = hed | |
| 1377 | naeeym2.Name = "Name" | |
| 1378 | ||
| 1379 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1380 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
| |
| 1381 | tecks2.BackgroundTransparency = 1 | |
| 1382 | tecks2.TextScaled = true | |
| 1383 | tecks2.BorderSizePixel = 0 | |
| 1384 | tecks2.Text = "" | |
| 1385 | tecks2.Font = "Fantasy" | |
| 1386 | tecks2.TextSize = 30 | |
| 1387 | tecks2.TextStrokeTransparency = 0 | |
| 1388 | tecks2.TextColor3 = BrickColor.new('Really red').Color
| |
| 1389 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
| |
| 1390 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1391 | tecks2.Parent = naeeym2 | |
| 1392 | textfag = tecks2 | |
| 1393 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
| |
| 1394 | tecks2.Text = "" | |
| 1395 | CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1)
| |
| 1396 | tecks2.Text = "script by doryna2281337" | |
| 1397 | wait(2) | |
| 1398 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1)
| |
| 1399 | tecks2.Text = "" | |
| 1400 | BTAUNT:Play() | |
| 1401 | coroutine.resume(coroutine.create(function() | |
| 1402 | while textfag ~= nil do | |
| 1403 | swait() | |
| 1404 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 1405 | textfag.Rotation = math.random(-3,3) | |
| 1406 | end | |
| 1407 | end)) | |
| 1408 | ||
| 1409 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
| 1410 | for i,v in pairs(char:children()) do | |
| 1411 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
| |
| 1412 | v:Remove() | |
| 1413 | end | |
| 1414 | end | |
| 1415 | shirt = Instance.new("Shirt", char)
| |
| 1416 | shirt.Name = "Shirt" | |
| 1417 | pants = Instance.new("Pants", char)
| |
| 1418 | pants.Name = "Pants" | |
| 1419 | char.Shirt.ShirtTemplate = "rbxassetid://2018917293" | |
| 1420 | char.Pants.PantsTemplate = "rbxassetid://398633812" | |
| 1421 | local Hair2 = Instance.new("Part", char)
| |
| 1422 | Hair2.Name = "Hair2" | |
| 1423 | Hair2.CanCollide = false | |
| 1424 | Hair2.BrickColor = BrickColor.new("CGA brown")
| |
| 1425 | Hair2.Transparency = 0 | |
| 1426 | Hair2.Material = "Plastic" | |
| 1427 | Hair2.Size = Vector3.new(1, 1, 2) | |
| 1428 | Hair2.TopSurface = Enum.SurfaceType.Smooth | |
| 1429 | Hair2.BottomSurface = Enum.SurfaceType.Smooth | |
| 1430 | ||
| 1431 | local Weld = Instance.new("Weld", Hair2)
| |
| 1432 | Weld.Part0 = hed | |
| 1433 | Weld.Part1 = Hair2 | |
| 1434 | Weld.C1 = CFrame.new(0,-0.1,0.60) | |
| 1435 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
| 1436 | ||
| 1437 | local M2 = Instance.new("SpecialMesh")
| |
| 1438 | M2.Parent = Hair2 | |
| 1439 | M2.MeshId = "http://www.roblox.com/asset/?id=1703946602" | |
| 1440 | M2.TextureId = "http://www.roblox.com/asset/?id=916236071" | |
| 1441 | M2.Scale = Vector3.new(1, 1, 1) | |
| 1442 | local l = game.Lighting | |
| 1443 | local sky = Instance.new("Sky",l)
| |
| 1444 | l.TimeOfDay = "12:00:00" | |
| 1445 | l.Brightness = 1 | |
| 1446 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
| 1447 | local AddInstance = function(Object, ...) | |
| 1448 | local Obj = Instance.new(Object) | |
| 1449 | for i,v in next,(...) do | |
| 1450 | Obj[i] = v | |
| 1451 | end | |
| 1452 | return Obj | |
| 1453 | end | |
| 1454 | ---------------------------------------------------- | |
| 1455 | local Reaper = AddInstance("Part",{
| |
| 1456 | Parent = hed, | |
| 1457 | CFrame = hed.CFrame, | |
| 1458 | formFactor = "Symmetric", | |
| 1459 | Size = Vector3.new(1, 1, 1), | |
| 1460 | CanCollide = false, | |
| 1461 | TopSurface = "Smooth", | |
| 1462 | BottomSurface = "Smooth", | |
| 1463 | Locked = true, | |
| 1464 | }) | |
| 1465 | local Weld = AddInstance("Weld",{
| |
| 1466 | Parent = Reaper, | |
| 1467 | Part0 = hed, | |
| 1468 | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), | |
| 1469 | Part1 = Reaper, | |
| 1470 | }) | |
| 1471 | local Mesh = AddInstance("SpecialMesh",{
| |
| 1472 | Parent = Reaper, | |
| 1473 | MeshId = "rbxassetid://0", | |
| 1474 | TextureId = "rbxassetid://0", | |
| 1475 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
| 1476 | VertexColor = Vector3.new(0.3, 0.3, 0.3), | |
| 1477 | }) | |
| 1478 | ------------------------------------------------------- | |
| 1479 | wait() | |
| 1480 | plr = game.Players.LocalPlayer | |
| 1481 | char = plr.Character | |
| 1482 | mouse = plr:GetMouse() | |
| 1483 | whitecolor = Color3.new(191, 183, 177) | |
| 1484 | epicmode = false | |
| 1485 | normal = true | |
| 1486 | for i,v in pairs(char:GetChildren()) do | |
| 1487 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
| 1488 | v:Destroy() | |
| 1489 | end | |
| 1490 | end | |
| 1491 | local shirt = Instance.new("Shirt",char)
| |
| 1492 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
| 1493 | local pants = Instance.new("Pants",char)
| |
| 1494 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
| 1495 | local bdycolors = char["Body Colors"] | |
| 1496 | bdycolors.HeadColor3 = whitecolor | |
| 1497 | bdycolors.LeftArmColor3 = whitecolor | |
| 1498 | bdycolors.LeftLegColor3 = whitecolor | |
| 1499 | bdycolors.RightArmColor3 = whitecolor | |
| 1500 | bdycolors.RightLegColor3 = whitecolor | |
| 1501 | bdycolors.TorsoColor3 = whitecolor | |
| 1502 | for i,v in pairs(char:GetChildren()) do | |
| 1503 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 1504 | v:Destroy() | |
| 1505 | end | |
| 1506 | end | |
| 1507 | ---------------------------------------------------------------------- | |
| 1508 | Circle = nil | |
| 1509 | CircleParts = {}
| |
| 1510 | Equipped = false | |
| 1511 | ||
| 1512 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 1513 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 1514 | end | |
| 1515 | Equipped = true | |
| 1516 | Circle = Instance.new("Model")
| |
| 1517 | Circle.Name = "Circle" | |
| 1518 | Angle = 0 | |
| 1519 | for i = 1, 1 do | |
| 1520 | local CirclePart = Instance.new("Part")
| |
| 1521 | CirclePart.Name = "CirclePart" | |
| 1522 | CirclePart.Transparency = 1 | |
| 1523 | CirclePart.BrickColor = BrickColor.new("Really black")
| |
| 1524 | CirclePart.Material = Enum.Material.Plastic | |
| 1525 | CirclePart.Shape = Enum.PartType.Block | |
| 1526 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
| 1527 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
| 1528 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
| 1529 | CirclePart.Anchored = true | |
| 1530 | CirclePart.CanCollide = false | |
| 1531 | CirclePart.Locked = true | |
| 1532 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
| 1533 | local Aura = Instance.new('ParticleEmitter')
| |
| 1534 | Aura.Name = "Aura" | |
| 1535 | Aura.Texture = "rbxassetid://0" | |
| 1536 | Aura.Parent = CirclePart | |
| 1537 | Aura.LightEmission = 0 | |
| 1538 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
| 1539 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) | |
| 1540 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
| 1541 | Aura.LockedToPart = false | |
| 1542 | Aura.Lifetime = NumberRange.new(1) | |
| 1543 | Aura.Rate = 50 | |
| 1544 | Aura.Speed = NumberRange.new(2.5) | |
| 1545 | Aura.SpreadAngle = Vector2.new(80,80) | |
| 1546 | local BlockMesh = Instance.new("BlockMesh")
| |
| 1547 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
| 1548 | BlockMesh.Parent = CirclePart | |
| 1549 | CirclePart.Parent = Circle | |
| 1550 | local Star = Instance.new("Decal", CirclePart)
| |
| 1551 | Star.Texture = "http://www.roblox.com/asset/?id=124339739" | |
| 1552 | Star.Face = "Top" | |
| 1553 | local Light = Instance.new("PointLight", CirclePart)
| |
| 1554 | Light.Color = Color3.new(.20,0,0) | |
| 1555 | Light.Brightness = 100 | |
| 1556 | Light.Range = 15 | |
| 1557 | table.insert(CircleParts, CirclePart) | |
| 1558 | end | |
| 1559 | Spawn(function() | |
| 1560 | while Equipped and Humanoid.Parent and Torso.Parent do | |
| 1561 | if Angle == 360 then | |
| 1562 | Angle = 0 | |
| 1563 | end | |
| 1564 | Angle = Angle + 0.05 | |
| 1565 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
| |
| 1566 | if Hit then | |
| 1567 | if not Circle.Parent then | |
| 1568 | Circle.Parent = Character | |
| 1569 | end | |
| 1570 | for i, v in pairs(CircleParts) do | |
| 1571 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
| 1572 | end | |
| 1573 | else | |
| 1574 | Circle.Parent = nil | |
| 1575 | end | |
| 1576 | wait() | |
| 1577 | end | |
| 1578 | end) | |
| 1579 | ||
| 1580 | function chatfunc(text, color) | |
| 1581 | local chat = coroutine.wrap(function() | |
| 1582 | if char:FindFirstChild("TalkingBillBoard") ~= nil then
| |
| 1583 | char:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 1584 | end | |
| 1585 | local naeeym2 = Instance.new("BillboardGui", char)
| |
| 1586 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
| 1587 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
| 1588 | naeeym2.Adornee = hed | |
| 1589 | naeeym2.Name = "TalkingBillBoard" | |
| 1590 | local tecks2 = Instance.new("TextLabel", naeeym2)
| |
| 1591 | tecks2.BackgroundTransparency = 1 | |
| 1592 | tecks2.BorderSizePixel = 0 | |
| 1593 | tecks2.Text = "" | |
| 1594 | tecks2.Font = "Fantasy" | |
| 1595 | tecks2.TextSize = 30 | |
| 1596 | tecks2.TextStrokeTransparency = 0 | |
| 1597 | tecks2.TextColor3 = color | |
| 1598 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1599 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
| 1600 | local tecks3 = Instance.new("TextLabel", naeeym2)
| |
| 1601 | tecks3.BackgroundTransparency = 1 | |
| 1602 | tecks3.BorderSizePixel = 0 | |
| 1603 | tecks3.Text = "" | |
| 1604 | tecks3.Font = "Fantasy" | |
| 1605 | tecks3.TextSize = 30 | |
| 1606 | tecks3.TextStrokeTransparency = 0 | |
| 1607 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
| 1608 | tecks3.TextStrokeColor3 = color | |
| 1609 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
| 1610 | coroutine.resume(coroutine.create(function() | |
| 1611 | while true do | |
| 1612 | swait(1) | |
| 1613 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 1614 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 1615 | tecks2.Rotation = math.random(-5, 5) | |
| 1616 | tecks3.Rotation = math.random(-5, 5) | |
| 1617 | end | |
| 1618 | end)) | |
| 1619 | for i = 1, string.len(text) do | |
| 1620 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 1621 | tecks2.Text = string.sub(text, 1, i) | |
| 1622 | tecks3.Text = string.sub(text, 1, i) | |
| 1623 | swait(1) | |
| 1624 | end | |
| 1625 | wait(1) | |
| 1626 | local randomrot = math.random(1, 2) | |
| 1627 | if randomrot == 1 then | |
| 1628 | for i = 1, 50 do | |
| 1629 | swait() | |
| 1630 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
| 1631 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1632 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1633 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
| 1634 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1635 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1636 | end | |
| 1637 | elseif randomrot == 2 then | |
| 1638 | for i = 1, 50 do | |
| 1639 | swait() | |
| 1640 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
| 1641 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1642 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1643 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
| 1644 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1645 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1646 | end | |
| 1647 | end | |
| 1648 | naeeym2:Destroy() | |
| 1649 | end) | |
| 1650 | chat() | |
| 1651 | end | |
| 1652 | --------------------------------------------------------- | |
| 1653 | Spawn(function() | |
| 1654 | while Equipped and Humanoid.Parent and Torso.Parent do | |
| 1655 | if Angle == 360 then | |
| 1656 | Angle = 0 | |
| 1657 | end | |
| 1658 | Angle = Angle + 0.05 | |
| 1659 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
| |
| 1660 | if Hit then | |
| 1661 | if not Circle.Parent then | |
| 1662 | Circle.Parent = Character | |
| 1663 | end | |
| 1664 | for i, v in pairs(CircleParts) do | |
| 1665 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
| 1666 | end | |
| 1667 | else | |
| 1668 | Circle.Parent = nil | |
| 1669 | end | |
| 1670 | wait() | |
| 1671 | end | |
| 1672 | end) | |
| 1673 | attack = false | |
| 1674 | hum.WalkSpeed = 16 | |
| 1675 | ||
| 1676 | ||
| 1677 | ||
| 1678 | function banana() | |
| 1679 | attack = true | |
| 1680 | swait() | |
| 1681 | - | Magic(1, "Add", root.CFrame, Vector3.new(50, 100, 50), 4, BrickC("Really black"), "Sphere")
|
| 1681 | + | hum.CameraOffset = Vector3.new(0, 8, 0) |
| 1682 | - | Magic(1, "Add", root.CFrame, Vector3.new(30, 60, 30), 4, BrickC("Really black"), "Sphere")
|
| 1682 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 8 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.2) |
| 1683 | - | Magic(1, "Add", root.CFrame, Vector3.new(3, 600, 3), 4, BrickC("Really black"), "Sphere")
|
| 1683 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) |
| 1684 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
| 1685 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
| 1686 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
| 1687 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
| 1688 | swait() | |
| 1689 | Cso("732572828", hed, 3.5, 1)
| |
| 1690 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 10)) do | |
| 1691 | if v:FindFirstChild("Head") then
| |
| 1692 | Eviscerate(v) | |
| 1693 | end | |
| 1694 | end | |
| 1695 | end | |
| 1696 | ||
| 1697 | mouse.KeyDown:connect(function(key) | |
| 1698 | ||
| 1699 | attack = false | |
| 1700 | if key == "y" then | |
| 1701 | banana() | |
| 1702 | end | |
| 1703 | end) | |
| 1704 | mouse.Button1Down:connect(function(key) | |
| 1705 | if attack == false then | |
| 1706 | end | |
| 1707 | end) | |
| 1708 | ||
| 1709 | ||
| 1710 | ||
| 1711 | ||
| 1712 | --------------------------------------------------------- | |
| 1713 | ||
| 1714 | ------------------------------------------------------- | |
| 1715 | --Start Animations-- | |
| 1716 | ------------------------------------------------------- | |
| 1717 | while true do | |
| 1718 | swait() | |
| 1719 | sine = sine + change | |
| 1720 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1721 | local velderp = root.Velocity.y | |
| 1722 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
| 1723 | if equipped == true or equipped == false then | |
| 1724 | if attack == false then | |
| 1725 | idle = idle + 1 | |
| 1726 | else | |
| 1727 | idle = 0 | |
| 1728 | end | |
| 1729 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 1730 | Anim = "Jump" | |
| 1731 | if attack == false then | |
| 1732 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
| 1733 | 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) | |
| 1734 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1735 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1736 | 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) | |
| 1737 | 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) | |
| 1738 | end | |
| 1739 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 1740 | Anim = "Fall" | |
| 1741 | if attack == false then | |
| 1742 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
| 1743 | 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) | |
| 1744 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
| 1745 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
| 1746 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
| 1747 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
| 1748 | end | |
| 1749 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1750 | Anim = "Idle" | |
| 1751 | change = 1 | |
| 1752 | if attack == false then | |
| 1753 | 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.08) | |
| 1754 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3) | |
| 1755 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
| 1756 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
| 1757 | RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08) | |
| 1758 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
| 1759 | end | |
| 1760 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
| 1761 | Anim = "Walk" | |
| 1762 | change = 1 | |
| 1763 | if attack == false then | |
| 1764 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15) | |
| 1765 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 1766 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1767 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1768 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1) | |
| 1769 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
| 1770 | end | |
| 1771 | elseif torvel >= 25 and hitfloor ~= nil then | |
| 1772 | Anim = "Sprint" | |
| 1773 | change = 1.35 | |
| 1774 | if attack == false then | |
| 1775 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
| 1776 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 1777 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1778 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1779 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
| 1780 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
| 1781 | end | |
| 1782 | end | |
| 1783 | end | |
| 1784 | if 0 < #Effects then | |
| 1785 | for e = 1, #Effects do | |
| 1786 | if Effects[e] ~= nil then | |
| 1787 | local Thing = Effects[e] | |
| 1788 | if Thing ~= nil then | |
| 1789 | local Part = Thing[1] | |
| 1790 | local Mode = Thing[2] | |
| 1791 | local Delay = Thing[3] | |
| 1792 | local IncX = Thing[4] | |
| 1793 | local IncY = Thing[5] | |
| 1794 | local IncZ = Thing[6] | |
| 1795 | if 1 >= Thing[1].Transparency then | |
| 1796 | if Thing[2] == "Block1" then | |
| 1797 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1798 | local Mesh = Thing[1].Mesh | |
| 1799 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1800 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1801 | elseif Thing[2] == "Block2" then | |
| 1802 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 1803 | local Mesh = Thing[7] | |
| 1804 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1805 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1806 | elseif Thing[2] == "Block3" then | |
| 1807 | 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) | |
| 1808 | local Mesh = Thing[7] | |
| 1809 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1810 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1811 | elseif Thing[2] == "Cylinder" then | |
| 1812 | local Mesh = Thing[1].Mesh | |
| 1813 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1814 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1815 | elseif Thing[2] == "Blood" then | |
| 1816 | local Mesh = Thing[7] | |
| 1817 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 1818 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1819 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1820 | elseif Thing[2] == "Elec" then | |
| 1821 | local Mesh = Thing[1].Mesh | |
| 1822 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1823 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1824 | elseif Thing[2] == "Disappear" then | |
| 1825 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1826 | elseif Thing[2] == "Shatter" then | |
| 1827 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1828 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1829 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1830 | Thing[6] = Thing[6] + Thing[5] | |
| 1831 | end | |
| 1832 | else | |
| 1833 | Part.Parent = nil | |
| 1834 | table.remove(Effects, e) | |
| 1835 | end | |
| 1836 | end | |
| 1837 | end | |
| 1838 | end | |
| 1839 | end | |
| 1840 | end | |
| 1841 | ------------------------------------------------------- | |
| 1842 | --End Animations And Script-- | |
| 1843 | ------------------------------------------------------- |