SHOW:
|
|
- or go back to the newest paste.
| 1 | --just put this on the top of a script and boom 89% works | |
| 2 | --note this does not work on big scripts | |
| 3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 4 | local Player,game,owner = owner,game | |
| 5 | local RealPlayer = Player | |
| 6 | do | |
| 7 | local rp = RealPlayer | |
| 8 | script.Parent = rp.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 t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,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 then | |
| 34 | for _,f in pairs(t.Functions) do | |
| 35 | f(...) | |
| 36 | end | |
| 37 | end | |
| 38 | end | |
| 39 | m.TrigEvent = te | |
| 40 | UIS.TrigEvent = te | |
| 41 | ||
| 42 | Event.OnServerEvent:Connect(function(plr,io) | |
| 43 | if plr~=rp then return end | |
| 44 | m.Target = io.Target | |
| 45 | m.Hit = io.Hit | |
| 46 | if not io.isMouse then | |
| 47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 50 | end | |
| 51 | for _,t in pairs(CAS.Actions) do | |
| 52 | for _,k in pairs(t.Keys) do | |
| 53 | if k==io.KeyCode then | |
| 54 | t.Function(t.Name,io.UserInputState,io) | |
| 55 | end | |
| 56 | end | |
| 57 | end | |
| 58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 60 | end | |
| 61 | end) | |
| 62 | Event.Parent = NLS([==[ | |
| 63 | local Player = game:GetService("Players").LocalPlayer
| |
| 64 | local Event = script:WaitForChild("UserInput_Event")
| |
| 65 | ||
| 66 | local Mouse = Player:GetMouse() | |
| 67 | local UIS = game:GetService("UserInputService")
| |
| 68 | local input = function(io,a) | |
| 69 | if a then return end | |
| 70 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 72 | end | |
| 73 | UIS.InputBegan:Connect(input) | |
| 74 | UIS.InputEnded:Connect(input) | |
| 75 | ||
| 76 | local h,t | |
| 77 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 78 | --If player is not moving their mouse, client won't fire events | |
| 79 | while wait(1/30) do | |
| 80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 81 | h,t=Mouse.Hit,Mouse.Target | |
| 82 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 83 | end | |
| 84 | end]==],Player.Character) | |
| 85 | ||
| 86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 87 | --Real game object | |
| 88 | local _rg = game | |
| 89 | ||
| 90 | --Metatable for fake service | |
| 91 | local fsmt = {
| |
| 92 | __index = function(self,k) | |
| 93 | local s = rawget(self,"_RealService") | |
| 94 | if s then return s[k] end | |
| 95 | end, | |
| 96 | __newindex = function(self,k,v) | |
| 97 | local s = rawget(self,"_RealService") | |
| 98 | if s then s[k]=v end | |
| 99 | end, | |
| 100 | __call = function(self,...) | |
| 101 | local s = rawget(self,"_RealService") | |
| 102 | if s then return s(...) end | |
| 103 | end | |
| 104 | } | |
| 105 | local function FakeService(t,RealService) | |
| 106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 107 | return setmetatable(t,fsmt) | |
| 108 | end | |
| 109 | ||
| 110 | --Fake game object | |
| 111 | local g = {
| |
| 112 | GetService = function(self,s) | |
| 113 | return self[s] | |
| 114 | end, | |
| 115 | Players = FakeService({
| |
| 116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 117 | },"Players"), | |
| 118 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 120 | } | |
| 121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 122 | g.service = g.GetService | |
| 123 | ||
| 124 | g.RunService = FakeService({
| |
| 125 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 126 | BindToRenderStep = function(self,name,_,fun) | |
| 127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 128 | end, | |
| 129 | UnbindFromRenderStep = function(self,name) | |
| 130 | self._btrs[name]:Disconnect() | |
| 131 | end, | |
| 132 | },"RunService") | |
| 133 | ||
| 134 | setmetatable(g,{
| |
| 135 | __index=function(self,s) | |
| 136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 138 | end, | |
| 139 | __newindex = fsmt.__newindex, | |
| 140 | __call = fsmt.__call | |
| 141 | }) | |
| 142 | --Changing owner to fake player object to support owner:GetMouse() | |
| 143 | game,owner = g,g.Players.LocalPlayer | |
| 144 | end | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | ||
| 149 | -- edited by Tabby_Cxt -- | |
| 150 | -- InSaNe bYe -- | |
| 151 | -- The weight of the air is torture -- | |
| 152 | -- Discord: Nebula the Zorua#6969 | |
| 153 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
| 154 | ||
| 155 | ||
| 156 | --// Initializing \\-- | |
| 157 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
| |
| 158 | local Plrs = S.Players | |
| 159 | local Plr = Plrs.LocalPlayer | |
| 160 | local Char = Plr.Character | |
| 161 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
| 162 | local RArm = Char["Right Arm"] | |
| 163 | local LArm = Char["Left Arm"] | |
| 164 | local RLeg = Char["Right Leg"] | |
| 165 | local LLeg = Char["Left Leg"] | |
| 166 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
| 167 | local Torso = Char.Torso | |
| 168 | Player = game:GetService("Players").LocalPlayer
| |
| 169 | Character = Player.Character | |
| 170 | Head = Character["Head"] | |
| 171 | local Head = Char.Head | |
| 172 | local NeutralAnims = true | |
| 173 | local Attack = false | |
| 174 | local BloodPuddles = {}
| |
| 175 | local Effects = {}
| |
| 176 | local Debounces = {Debounces={}}
| |
| 177 | local Mouse = Plr:GetMouse() | |
| 178 | local Hit = {}
| |
| 179 | local Sine = 0 | |
| 180 | local Change = 1 | |
| 181 | local Twitch = false | |
| 182 | local LastTwitch = 0; | |
| 183 | local Victim = nil; | |
| 184 | VT = Vector3.new | |
| 185 | BRICKC = BrickColor.new | |
| 186 | --// Debounce System \\-- | |
| 187 | ||
| 188 | ||
| 189 | function Debounces:New(name,cooldown) | |
| 190 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
| |
| 191 | setmetatable(aaaaa,{__index = Debounces})
| |
| 192 | Debounces.Debounces[name] = aaaaa | |
| 193 | return aaaaa | |
| 194 | end | |
| 195 | ||
| 196 | function Debounces:Use(overrideUsable) | |
| 197 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
| 198 | if(self.Usable or overrideUsable)then | |
| 199 | self.Usable = false | |
| 200 | self.CoolingDown = true | |
| 201 | local LastUse = time() | |
| 202 | self.LastUse = LastUse | |
| 203 | delay(self.Cooldown or 2,function() | |
| 204 | if(self.LastUse == LastUse)then | |
| 205 | self.CoolingDown = false | |
| 206 | self.Usable = true | |
| 207 | end | |
| 208 | end) | |
| 209 | end | |
| 210 | end | |
| 211 | ||
| 212 | function Debounces:Get(name) | |
| 213 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
| |
| 214 | for i,v in next, Debounces.Debounces do | |
| 215 | if(i == name)then | |
| 216 | return v; | |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | ||
| 221 | function Debounces:GetProgressPercentage() | |
| 222 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
| 223 | if(self.CoolingDown and not self.Usable)then | |
| 224 | return math.max( | |
| 225 | math.floor( | |
| 226 | ( | |
| 227 | (time()-self.LastUse)/self.Cooldown or 2 | |
| 228 | )*100 | |
| 229 | ) | |
| 230 | ) | |
| 231 | else | |
| 232 | return 100 | |
| 233 | end | |
| 234 | end | |
| 235 | ||
| 236 | --// Shortcut Variables \\-- | |
| 237 | C4 = Color3.new | |
| 238 | ANGLES = CFrame.Angles | |
| 239 | RAD = math.rad | |
| 240 | CD = CFrame.new | |
| 241 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
| |
| 242 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
| |
| 243 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
| |
| 244 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
| |
| 245 | local R3 = {N=Region3.new}
| |
| 246 | local De = S.Debris | |
| 247 | local WS = workspace | |
| 248 | local Lght = S.Lighting | |
| 249 | local RepS = S.ReplicatedStorage | |
| 250 | local IN = Instance.new | |
| 251 | --// Instance Creation Functions \\-- | |
| 252 | ||
| 253 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 254 | local NEWMESH = IN(MESH) | |
| 255 | if MESH == "SpecialMesh" then | |
| 256 | NEWMESH.MeshType = MESHTYPE | |
| 257 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 258 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 259 | end | |
| 260 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 261 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 262 | end | |
| 263 | end | |
| 264 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 265 | NEWMESH.Scale = SCALE | |
| 266 | NEWMESH.Parent = PARENT | |
| 267 | return NEWMESH | |
| 268 | end | |
| 269 | ||
| 270 | function MakeForm(PART,TYPE) | |
| 271 | if TYPE == "Cyl" then | |
| 272 | local MSH = IN("CylinderMesh",PART)
| |
| 273 | elseif TYPE == "Ball" then | |
| 274 | local MSH = IN("SpecialMesh",PART)
| |
| 275 | MSH.MeshType = "Sphere" | |
| 276 | elseif TYPE == "Wedge" then | |
| 277 | local MSH = IN("SpecialMesh",PART)
| |
| 278 | MSH.MeshType = "Wedge" | |
| 279 | end | |
| 280 | end | |
| 281 | ||
| 282 | ||
| 283 | ||
| 284 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 285 | local NEWWELD = IN(TYPE) | |
| 286 | NEWWELD.Part0 = PART0 | |
| 287 | NEWWELD.Part1 = PART1 | |
| 288 | NEWWELD.C0 = C0 | |
| 289 | NEWWELD.C1 = C1 | |
| 290 | NEWWELD.Parent = PARENT | |
| 291 | return NEWWELD | |
| 292 | end | |
| 293 | ||
| 294 | ||
| 295 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 296 | local NEWPART = IN("Part")
| |
| 297 | NEWPART.formFactor = FORMFACTOR | |
| 298 | NEWPART.Reflectance = REFLECTANCE | |
| 299 | NEWPART.Transparency = TRANSPARENCY | |
| 300 | NEWPART.CanCollide = false | |
| 301 | NEWPART.Locked = true | |
| 302 | NEWPART.Anchored = true | |
| 303 | if ANCHOR == false then | |
| 304 | NEWPART.Anchored = false | |
| 305 | end | |
| 306 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 307 | NEWPART.Name = NAME | |
| 308 | NEWPART.Size = SIZE | |
| 309 | NEWPART.Position = Torso.Position | |
| 310 | NEWPART.Material = MATERIAL | |
| 311 | NEWPART:BreakJoints() | |
| 312 | NEWPART.Parent = PARENT | |
| 313 | return NEWPART | |
| 314 | end | |
| 315 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(.1,.1,.1),false) | |
| 316 | PRT.Color = C4(0,0,0) | |
| 317 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CD(0,0.2,0), CD(0, 0, 0))
| |
| 318 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(.1,.1,.1)*1.05, VT(0,0,0))
| |
| 319 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(.1,.1,.1),false) | |
| 320 | PRT.Color = C4(0,0,0) | |
| 321 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CD(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CD(0, 0, 0))
| |
| 322 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
| |
| 323 | for i = 1, 16 do | |
| 324 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
| 325 | FACE.Color = C4(0,0,0) | |
| 326 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 327 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CD(0,0.45-(i-1)/25,0), CD(0, 0, 0))
| |
| 328 | end | |
| 329 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
| 330 | MakeForm(EYE,"Ball") | |
| 331 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CD(0.15,0.26,-0.55), CD(0, 0, 0))
| |
| 332 | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
| 333 | MakeForm(EYE2,"Ball") | |
| 334 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CD(-0.15,0.26,-0.55), CD(0, 0, 0))
| |
| 335 | local LASTPART = Head | |
| 336 | for i = 1, 20 do | |
| 337 | local MATH = (1-(i/25)) | |
| 338 | if LASTPART == Head then | |
| 339 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 340 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CD(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CD(0, 0, 0))
| |
| 341 | LASTPART = Horn | |
| 342 | Horn.Color = C4((i*3-3)/255,0,0) | |
| 343 | else | |
| 344 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 345 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CD(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CD(0, 0, 0))
| |
| 346 | LASTPART = Horn | |
| 347 | Horn.Color = C4((i*3-3)/255,0,0) | |
| 348 | end | |
| 349 | end | |
| 350 | local LASTPART = Head | |
| 351 | for i = 1, 20 do | |
| 352 | local MATH = (1-(i/25)) | |
| 353 | if LASTPART == Head then | |
| 354 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 355 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CD(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CD(0, 0, 0))
| |
| 356 | LASTPART = Horn | |
| 357 | Horn.Color = C4((i*3-3)/255,0,0) | |
| 358 | else | |
| 359 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 360 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CD(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CD(0, 0, 0))
| |
| 361 | LASTPART = Horn | |
| 362 | Horn.Color = C4((i*3-3)/255,0,0) | |
| 363 | end | |
| 364 | end | |
| 365 | ||
| 366 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
| 367 | local Sound = IN("Sound")
| |
| 368 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
| 369 | Sound.Pitch = pitch or 1 | |
| 370 | Sound.Volume = volume or 1 | |
| 371 | Sound.Looped = looped or false | |
| 372 | if(autoPlay)then | |
| 373 | coroutine.wrap(function() | |
| 374 | repeat wait() until Sound.IsLoaded | |
| 375 | Sound.Playing = autoPlay or false | |
| 376 | end)() | |
| 377 | end | |
| 378 | if(not looped and effect)then | |
| 379 | Sound.Stopped:connect(function() | |
| 380 | Sound.Volume = 0 | |
| 381 | Sound:destroy() | |
| 382 | end) | |
| 383 | elseif(effect)then | |
| 384 | warn("Sound can't be looped and a sound effect!")
| |
| 385 | end | |
| 386 | Sound.Parent =parent or Torso | |
| 387 | return Sound | |
| 388 | end | |
| 389 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
| 390 | local part = IN("Part")
| |
| 391 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
| 392 | part.Material = material or Enum.Material.SmoothPlastic | |
| 393 | part.TopSurface,part.BottomSurface=10,10 | |
| 394 | part.Size = size or V3.N(1,1,1) | |
| 395 | part.CFrame = cframe or CF.N(0,0,0) | |
| 396 | part.Anchored = anchored or true | |
| 397 | part.CanCollide = cancollide or false | |
| 398 | part.Parent = parent or Char | |
| 399 | return part | |
| 400 | end | |
| 401 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
| 402 | local part = IN("SpecialMesh")
| |
| 403 | part.MeshId = meshid or "" | |
| 404 | part.TextureId = textid or "" | |
| 405 | part.Scale = scale or V3.N(1,1,1) | |
| 406 | part.Offset = offset or V3.N(0,0,0) | |
| 407 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
| 408 | part.Parent = parent | |
| 409 | return part | |
| 410 | end | |
| 411 | ||
| 412 | NewInstance = function(instance,parent,properties) | |
| 413 | local inst = Instance.new(instance,parent) | |
| 414 | if(properties)then | |
| 415 | for i,v in next, properties do | |
| 416 | pcall(function() inst[i] = v end) | |
| 417 | end | |
| 418 | end | |
| 419 | return inst; | |
| 420 | end | |
| 421 | ||
| 422 | ||
| 423 | ||
| 424 | --// Extended ROBLOX tables \\-- | |
| 425 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
| |
| 426 | --// Customization \\-- | |
| 427 | ||
| 428 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
| 429 | local Remove_Hats = false | |
| 430 | local Remove_Clothing = false | |
| 431 | local PlayerSize = 1 | |
| 432 | local DamageColor = BrickColor.new'Really red' | |
| 433 | local MusicID = 885591406 | |
| 434 | local TwitchMinTime = 2 | |
| 435 | local BloodColor = BrickColor.new'Maroon' | |
| 436 | local BloodMaterial = Enum.Material.Glass | |
| 437 | local Target1Id = "rbxassetid://359972767" | |
| 438 | local Target2Id = "rbxassetid://14561581" | |
| 439 | local Whitelist = {
| |
| 440 | [{32467146,"Tabby_Cxt"}] = {"Sorry, my Blazey..","OwO?","Ah, I'm sorry.. I thought you were an enemy.","Why did I even think of doing that.."},
| |
| 441 | [{19081129,"CKbackup"}] = {"S-sugarie! My bad!", "Ah, I'm sorry, my furry friend.","Why did I even think of doing that.."},
| |
| 442 | [{5719877,"Nebula_Zorua"}] = {"My creator!","N-nebula!?","I'm sorry, my creator!","F-father..?","Daddy..?","Sorry, Nebby..!"},
| |
| 443 | [{19909695,"makhail07"}] = {"Cretty!~","Yeef me dadi~","Marshdaddy~","Makhail, the edge master","Hello there, friend..~"},
| |
| 444 | [{44083134,"Fifkee"}] = {(function() return Plr.UserId == 5719877 and "Uh.. Who're you again?" or "You're Nebula's friend.. Right?" end)(),"Uuhh.. hi?","I nearly killed ya.","Oh. It's you."},
| |
| 445 | } | |
| 446 | ||
| 447 | --// Whitelist System \\-- | |
| 448 | ||
| 449 | function IsWhitelisted(id,who) | |
| 450 | for i,v in next, Whitelist do | |
| 451 | if(i[1] == id or i[2] == who)then | |
| 452 | return v | |
| 453 | end | |
| 454 | end | |
| 455 | return nil | |
| 456 | end | |
| 457 | ||
| 458 | --// Weapon and GUI creation, and Character Customization \\-- | |
| 459 | ||
| 460 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
| 461 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
| 462 | local Effects = IN("Folder",Char)
| |
| 463 | Effects.Name = "Effects" | |
| 464 | ||
| 465 | local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
| |
| 466 | FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 467 | RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 468 | LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 469 | RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 470 | LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 471 | ||
| 472 | local Target = NewInstance("BillboardGui",Char,{Name='Target',Adornee=nil,LightInfluence=0,AlwaysOnTop=true,Size = UDim2.new(10,0,10,0)})
| |
| 473 | local TargetImg1 = NewInstance("ImageLabel",Target,{BackgroundTransparency=1,Position = UDim2.new(.5,0,.5,0),Size = UDim2.new(1,0,1,0),AnchorPoint = Vector2.new(.5,.5),Image=Target1Id,ImageColor = C3.N(0,0,0),ImageTransparency=1})
| |
| 474 | local TargetImg2 = TargetImg1:Clone(); | |
| 475 | TargetImg2.Size = UDim2.new(1.4,0,1.4,0); | |
| 476 | TargetImg2.Image = Target2Id | |
| 477 | TargetImg2.Parent = Target | |
| 478 | if(PlayerSize ~= 1)then | |
| 479 | for _,v in next, Char:GetDescendats() do | |
| 480 | if(v:IsA'BasePart')then | |
| 481 | v.Size = v.Size * PlayerSize | |
| 482 | end | |
| 483 | end | |
| 484 | end | |
| 485 | ||
| 486 | local Music = Sound(Char,MusicID,1,3,true,false,true) | |
| 487 | Music.Name = 'Music' | |
| 488 | ||
| 489 | --// Stop animations \\-- | |
| 490 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
| 491 | v:Stop(); | |
| 492 | end | |
| 493 | ||
| 494 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
| 495 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
| 496 | ||
| 497 | --// Joints \\-- | |
| 498 | ||
| 499 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
| |
| 500 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
| |
| 501 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
| |
| 502 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 503 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 504 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
| |
| 505 | ||
| 506 | local LSC0 = LS.C0 | |
| 507 | local RSC0 = RS.C0 | |
| 508 | local NKC0 = NK.C0 | |
| 509 | local LHC0 = LH.C0 | |
| 510 | local RHC0 = RH.C0 | |
| 511 | local RJC0 = RJ.C0 | |
| 512 | ||
| 513 | --// Artificial HB \\-- | |
| 514 | ||
| 515 | local ArtificialHB = IN("BindableEvent", script)
| |
| 516 | ArtificialHB.Name = "Heartbeat" | |
| 517 | ||
| 518 | script:WaitForChild("Heartbeat")
| |
| 519 | ||
| 520 | local tf = 0 | |
| 521 | local allowframeloss = false | |
| 522 | local tossremainder = false | |
| 523 | local lastframe = tick() | |
| 524 | local frame = 1/Frame_Speed | |
| 525 | ArtificialHB:Fire() | |
| 526 | ||
| 527 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 528 | tf = tf + s | |
| 529 | if tf >= frame then | |
| 530 | if allowframeloss then | |
| 531 | script.Heartbeat:Fire() | |
| 532 | lastframe = tick() | |
| 533 | else | |
| 534 | for i = 1, math.floor(tf / frame) do | |
| 535 | ArtificialHB:Fire() | |
| 536 | end | |
| 537 | lastframe = tick() | |
| 538 | end | |
| 539 | if tossremainder then | |
| 540 | tf = 0 | |
| 541 | else | |
| 542 | tf = tf - frame * math.floor(tf / frame) | |
| 543 | end | |
| 544 | end | |
| 545 | end) | |
| 546 | ||
| 547 | function swait(num) | |
| 548 | if num == 0 or num == nil then | |
| 549 | ArtificialHB.Event:wait() | |
| 550 | else | |
| 551 | for i = 0, num do | |
| 552 | ArtificialHB.Event:wait() | |
| 553 | end | |
| 554 | end | |
| 555 | end | |
| 556 | ||
| 557 | ||
| 558 | --// Effect Function(s) \\-- | |
| 559 | ||
| 560 | local blood = NewInstance("ParticleEmitter",nil,{
| |
| 561 | Color = ColorSequence.new(C3.N(.8,0,0)), | |
| 562 | LightEmission=.1, | |
| 563 | LightInfluence=1, | |
| 564 | ZOffset=.9, | |
| 565 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2,0),NumberSequenceKeypoint.new(1,3,0)},
| |
| 566 | Texture="rbxassetid://284205403", | |
| 567 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
| |
| 568 | Acceleration = V3.N(0,-15,0), | |
| 569 | Lifetime = NumberRange.new(1,2), | |
| 570 | Rate=50, | |
| 571 | Speed = NumberRange.new(5,15), | |
| 572 | SpreadAngle = Vector2.new(15,15), | |
| 573 | Enabled = false, | |
| 574 | EmissionDirection = 'Back', | |
| 575 | }) | |
| 576 | ||
| 577 | function Blood(prt,amount) | |
| 578 | local part = Instance.new("Part",Effects)
| |
| 579 | part.Transparency = 1 | |
| 580 | part.Size = prt.Size | |
| 581 | part.Anchored = true | |
| 582 | part.CanCollide = false | |
| 583 | part.CFrame = CF.N(prt.Position,Torso.Position) | |
| 584 | S.Debris:AddItem(part,5) | |
| 585 | local prtcl = blood:Clone() | |
| 586 | prtcl.Parent = part | |
| 587 | prtcl:Emit(amount) | |
| 588 | end | |
| 589 | ||
| 590 | function BloodDrop(pos,dir,maxsize) | |
| 591 | local owo = NewInstance("Part",Char,{Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.25,.25,.25), CanCollide = false})
| |
| 592 | owo.CFrame=CF.N(pos,dir) | |
| 593 | local bv = Instance.new("BodyVelocity",owo)
| |
| 594 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 595 | bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15 | |
| 596 | bv.Name = "MOVE" | |
| 597 | game:service'Debris':AddItem(bv,0.05) | |
| 598 | local touch | |
| 599 | touch = owo.Touched:connect(function(hit) | |
| 600 | if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then | |
| 601 | touch:disconnect() | |
| 602 | BloodPuddle(owo.Position+V3.N(0,1,0),3,maxsize,owo) | |
| 603 | owo:destroy() | |
| 604 | end | |
| 605 | end) | |
| 606 | end | |
| 607 | function BloodPuddle(position,range,maxSize,where) | |
| 608 | local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new( | |
| 609 | position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range | |
| 610 | ),{where,Char},false,true)
| |
| 611 | if(hit)then | |
| 612 | if(BloodPuddles[hit])then | |
| 613 | BloodPuddles[hit].Frame = 0 | |
| 614 | if(hit:FindFirstChild'CylinderMesh' and hit.CylinderMesh.Scale.Z < BloodPuddles[hit].MaxSize)then | |
| 615 | hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1) | |
| 616 | end | |
| 617 | else | |
| 618 | local Puddle = NewInstance('Part',hit,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
| |
| 619 | local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
| |
| 620 | BloodPuddles[Puddle] = {MaxSize=maxSize or 7,Frame=0}
| |
| 621 | end | |
| 622 | end | |
| 623 | end | |
| 624 | ||
| 625 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
| 626 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
| 627 | local tween = S.TweenService:Create(obj, info, props) | |
| 628 | ||
| 629 | tween:Play() | |
| 630 | end | |
| 631 | ||
| 632 | function Bezier(startpos, pos2, pos3, endpos, t) | |
| 633 | local A = startpos:lerp(pos2, t) | |
| 634 | local B = pos2:lerp(pos3, t) | |
| 635 | local C = pos3:lerp(endpos, t) | |
| 636 | local lerp1 = A:lerp(B, t) | |
| 637 | local lerp2 = B:lerp(C, t) | |
| 638 | local cubic = lerp1:lerp(lerp2, t) | |
| 639 | return cubic | |
| 640 | end | |
| 641 | ||
| 642 | function Effect(data) | |
| 643 | local FX = data.Effect or 'Resize-AndFade' | |
| 644 | local Parent = data.Parent or Effects | |
| 645 | local Color = data.Color or C3.N(0,0,0) | |
| 646 | local Size = data.Size or V3.N(1,1,1) | |
| 647 | local MoveDir = data.MoveDirection or nil | |
| 648 | local MeshData = data.Mesh or nil | |
| 649 | local SndData = data.Sound or nil | |
| 650 | local Frames = data.Frames or 45 | |
| 651 | local Manual = data.Manual or nil | |
| 652 | local Material = data.Material or nil | |
| 653 | local CFra = data.CFrame or Torso.CFrame | |
| 654 | local Settings = data.FXSettings or {}
| |
| 655 | local Snd,Prt,Msh; | |
| 656 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
| 657 | Prt = Manual | |
| 658 | else | |
| 659 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
| 660 | end | |
| 661 | if(typeof(MeshData) == 'table')then | |
| 662 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
| 663 | elseif(typeof(MeshData) == 'Instance')then | |
| 664 | Msh = MeshData:Clone() | |
| 665 | Msh.Parent = Prt | |
| 666 | end | |
| 667 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
| 668 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
| 669 | end | |
| 670 | if(Snd)then | |
| 671 | repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
| 672 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
| 673 | end | |
| 674 | local MoveSpeed = nil; | |
| 675 | if(MoveDir)then | |
| 676 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
| 677 | end | |
| 678 | local Inc = M.RNG()-M.RNG() | |
| 679 | local Thingie = 0 | |
| 680 | local Thingie2 = M.RNG(50,100)/100 | |
| 681 | ||
| 682 | coroutine.wrap(function() | |
| 683 | if(FX ~= 'Arc')then | |
| 684 | for i = 1, Frames do | |
| 685 | if(FX == 'Resize-AndFade')then | |
| 686 | if(not Settings.EndSize)then | |
| 687 | Settings.EndSize = V3.N(0,0,0) | |
| 688 | end | |
| 689 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
| 690 | if(Settings.EndIsIncrement)then | |
| 691 | Prt.Size = Prt.Size - Settings.EndSize | |
| 692 | else | |
| 693 | Prt.Size = Prt.Size - grow/Frames | |
| 694 | end | |
| 695 | Prt.Transparency = (i/Frames) | |
| 696 | elseif(FX == 'Resize+AndFade')then | |
| 697 | if(not Settings.EndSize)then | |
| 698 | Settings.EndSize = Size*2 | |
| 699 | end | |
| 700 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
| 701 | if(Settings.EndIsIncrement)then | |
| 702 | Prt.Size = Prt.Size + Settings.EndSize | |
| 703 | else | |
| 704 | Prt.Size = Prt.Size + grow/Frames | |
| 705 | end | |
| 706 | Prt.Transparency = (i/Frames) | |
| 707 | elseif(FX == 'Fade')then | |
| 708 | Prt.Transparency = (i/Frames) | |
| 709 | end | |
| 710 | if(Settings.RandomizeCFrame)then | |
| 711 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
| 712 | end | |
| 713 | if(MoveDir and MoveSpeed)then | |
| 714 | local Orientation = Prt.Orientation | |
| 715 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
| 716 | Prt.Orientation = Orientation | |
| 717 | end | |
| 718 | if(swait and typeof(swait) == 'function')then | |
| 719 | swait() | |
| 720 | else | |
| 721 | wait() | |
| 722 | end | |
| 723 | end | |
| 724 | Prt:destroy() | |
| 725 | else | |
| 726 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
| 727 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
| 728 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 729 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 730 | assert(start ~= nil,"You need to specify a start point!") | |
| 731 | assert(endP ~= nil,"You need to specify an end point!") | |
| 732 | for i = 0, 1, Settings.Speed or 0.01 do | |
| 733 | if(Settings.Home)then | |
| 734 | endP = Settings.Home.CFrame | |
| 735 | end | |
| 736 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, i) | |
| 737 | if(swait and typeof(swait) == 'function')then | |
| 738 | swait() | |
| 739 | else | |
| 740 | wait() | |
| 741 | end | |
| 742 | end | |
| 743 | if(Settings.RemoveOnGoal)then | |
| 744 | Prt:destroy() | |
| 745 | end | |
| 746 | end | |
| 747 | end)() | |
| 748 | return Prt,Msh,Snd | |
| 749 | end | |
| 750 | ||
| 751 | ||
| 752 | function SoulSteal(whom) | |
| 753 | local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart') | |
| 754 | print(torso) | |
| 755 | if(torso and torso:IsA'BasePart')then | |
| 756 | local Model = Instance.new("Model",Effects)
| |
| 757 | Model.Name = whom.Name.."'s Soul" | |
| 758 | whom:BreakJoints() | |
| 759 | local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) | |
| 760 | Soul.Name = 'Head' | |
| 761 | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
| |
| 762 | Effect{
| |
| 763 | Effect="Arc", | |
| 764 | Manual = Soul, | |
| 765 | FXSettings={
| |
| 766 | Start=torso.CFrame, | |
| 767 | Home = Torso, | |
| 768 | RemoveOnGoal = true, | |
| 769 | } | |
| 770 | } | |
| 771 | local lastPoint = Soul.CFrame.p | |
| 772 | ||
| 773 | for i = 0, 1, 0.01 do | |
| 774 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
| 775 | local mag = (lastPoint - Soul.Position).magnitude | |
| 776 | Effect{
| |
| 777 | Effect = "Fade", | |
| 778 | CFrame = point * CF.N(0, mag/2, 0), | |
| 779 | Size = V3.N(.5,mag+.5,.5), | |
| 780 | Color = Soul.BrickColor | |
| 781 | } | |
| 782 | lastPoint = Soul.CFrame.p | |
| 783 | swait() | |
| 784 | end | |
| 785 | for i = 1, 5 do | |
| 786 | Effect{
| |
| 787 | Effect="Fade", | |
| 788 | Color = BrickColor.new'Really red', | |
| 789 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
| 790 | } | |
| 791 | end | |
| 792 | end | |
| 793 | end | |
| 794 | ||
| 795 | --// Other Functions \\ -- | |
| 796 | ||
| 797 | function Ragdoll(who,half,glitching) | |
| 798 | who:breakJoints() | |
| 799 | pcall(function() | |
| 800 | who.HumanoidRootPart:destroy() | |
| 801 | end) | |
| 802 | local who = who | |
| 803 | local hhh = who:FindFirstChildOfClass'Humanoid' | |
| 804 | local t = GetTorso(who) | |
| 805 | if(hhh.RigType == Enum.HumanoidRigType.R6)then | |
| 806 | local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head' | |
| 807 | local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()})
| |
| 808 | local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
| |
| 809 | local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()})
| |
| 810 | local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()})
| |
| 811 | local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()})
| |
| 812 | local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()})
| |
| 813 | local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()})
| |
| 814 | ||
| 815 | local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2})
| |
| 816 | local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2})
| |
| 817 | local HC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=45,Attachment0=NJ,Attachment1=NJ2})
| |
| 818 | ||
| 819 | local CollideRA = NewInstance('Part',who,{Size=RArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
| |
| 820 | local CollideLA = NewInstance('Part',who,{Size=LArm.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
| |
| 821 | local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'})
| |
| 822 | NewInstance('Weld',CollideRA,{Part0=RA,Part1=CollideRA})
| |
| 823 | NewInstance('Weld',CollideLA,{Part0=LA,Part1=CollideLA})
| |
| 824 | NewInstance('Weld',CollideHD,{Part0=HD,Part1=CollideHD})
| |
| 825 | ||
| 826 | if(not half)then | |
| 827 | local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()})
| |
| 828 | local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()})
| |
| 829 | local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()})
| |
| 830 | local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()})
| |
| 831 | local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2})
| |
| 832 | local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2})
| |
| 833 | end | |
| 834 | if(glitching)then | |
| 835 | swait(120) | |
| 836 | local pow = 75 | |
| 837 | local FT,RA,LA,RL,LL = Instance.new("SpecialMesh",t),Instance.new("SpecialMesh",RA),Instance.new("SpecialMesh",LA),Instance.new("SpecialMesh",RL),Instance.new("SpecialMesh",LL)
| |
| 838 | FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 839 | RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 840 | LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 841 | RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 842 | LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",V3.N(PlayerSize,PlayerSize,PlayerSize) | |
| 843 | for i = 0, 1, .1 do | |
| 844 | for _,v in next, who:GetDescendants() do | |
| 845 | if(v:IsA'DataModelMesh')then | |
| 846 | v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100) | |
| 847 | elseif(v:IsA'BasePart')then | |
| 848 | v.Transparency = i | |
| 849 | end | |
| 850 | end | |
| 851 | swait() | |
| 852 | end | |
| 853 | who:destroy() | |
| 854 | end | |
| 855 | else | |
| 856 | if(glitching)then | |
| 857 | swait(120) | |
| 858 | for i = 0, 1, .1 do | |
| 859 | for _,v in next, hhh:children() do | |
| 860 | if(v:IsA'NumberValue')then | |
| 861 | v.Value = M.RNG(0,10) | |
| 862 | end | |
| 863 | end | |
| 864 | local pow = 75 | |
| 865 | for _,v in next, who:GetDescendants() do | |
| 866 | if(v:IsA'DataModelMesh')then | |
| 867 | v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100) | |
| 868 | elseif(v:IsA'BasePart')then | |
| 869 | v.Transparency = i | |
| 870 | end | |
| 871 | end | |
| 872 | swait() | |
| 873 | end | |
| 874 | who:destroy() | |
| 875 | end | |
| 876 | -- TODO: R15 Ragdoll | |
| 877 | end | |
| 878 | end | |
| 879 | ||
| 880 | ||
| 881 | function getRegion(point,range,ignore) | |
| 882 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
| 883 | end | |
| 884 | ||
| 885 | function RandomChoice(table) | |
| 886 | return table[M.RNG(1,#table)] | |
| 887 | end | |
| 888 | ||
| 889 | function Chat(text) | |
| 890 | coroutine.wrap(function() | |
| 891 | if Char:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 892 | Char:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 893 | end | |
| 894 | local oText = text; | |
| 895 | text = "" | |
| 896 | for i = 1, #oText do | |
| 897 | if(i%2 == 1)then | |
| 898 | text = text..oText:sub(i,i):upper() | |
| 899 | else | |
| 900 | text = text..oText:sub(i,i):lower() | |
| 901 | end | |
| 902 | end | |
| 903 | local Bill = Instance.new("BillboardGui",Char)
| |
| 904 | Bill.Size = UDim2.new(0,100,0,40) | |
| 905 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 906 | Bill.Adornee = Char.Head | |
| 907 | Bill.Name = "TalkingBillBoard" | |
| 908 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 909 | Hehe.BackgroundTransparency = 1 | |
| 910 | Hehe.BorderSizePixel = 0 | |
| 911 | Hehe.Text = "" | |
| 912 | Hehe.Font = "Bodoni" | |
| 913 | Hehe.TextSize = 40 | |
| 914 | Hehe.TextStrokeTransparency = 0 | |
| 915 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 916 | coroutine.resume(coroutine.create(function() | |
| 917 | while Hehe ~= nil do | |
| 918 | swait() | |
| 919 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 920 | Hehe.Rotation = M.RNG(-M.RNG(5,15),M.RNG(5,15)) | |
| 921 | local aa = math.random(0, 255)/255 | |
| 922 | local bb = math.random(0, 255)/255 | |
| 923 | Hehe.TextColor3 = C3.N(aa,aa,aa) | |
| 924 | Hehe.TextStrokeColor3 = C3.N(bb,bb,bb) | |
| 925 | end | |
| 926 | end)) | |
| 927 | for i = 1,string.len(text),1 do | |
| 928 | swait(5) | |
| 929 | Hehe.Text = string.sub(text,1,i) | |
| 930 | end | |
| 931 | swait(90) | |
| 932 | for i = 0, 1, .025 do | |
| 933 | swait() | |
| 934 | Hehe.TextStrokeTransparency = i | |
| 935 | Hehe.TextTransparency = i | |
| 936 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 937 | end | |
| 938 | Bill:Destroy() | |
| 939 | end)() | |
| 940 | end | |
| 941 | ||
| 942 | ||
| 943 | function clerp(startCF,endCF,alpha) | |
| 944 | return startCF:lerp(endCF, alpha) | |
| 945 | end | |
| 946 | ||
| 947 | function GetTorso(char) | |
| 948 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
| 949 | end | |
| 950 | ||
| 951 | ||
| 952 | function ShowDamage(Pos, Text, Time, Color) | |
| 953 | coroutine.wrap(function() | |
| 954 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 955 | local Text = (Text or "") | |
| 956 | local Time = (Time or 2) | |
| 957 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 958 | local EffectPart = NewInstance("Part",Effects,{
| |
| 959 | Material=Enum.Material.SmoothPlastic, | |
| 960 | Reflectance = 0, | |
| 961 | Transparency = 1, | |
| 962 | BrickColor = BrickColor.new(Color), | |
| 963 | Name = "Effect", | |
| 964 | Size = Vector3.new(0,0,0), | |
| 965 | Anchored = true | |
| 966 | }) | |
| 967 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{
| |
| 968 | Size = UDim2.new(2, 0, 2, 0), | |
| 969 | Adornee = EffectPart, | |
| 970 | }) | |
| 971 | local TextLabel = NewInstance("TextLabel",BillboardGui,{
| |
| 972 | BackgroundTransparency = 1, | |
| 973 | Size = UDim2.new(1, 0, 1, 0), | |
| 974 | Text = Text, | |
| 975 | Font = "Arial", | |
| 976 | TextColor3 = Color, | |
| 977 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 978 | TextStrokeTransparency=0, | |
| 979 | TextScaled = true, | |
| 980 | }) | |
| 981 | EffectPart.Parent = game:GetService("Workspace")
| |
| 982 | delay(0, function() | |
| 983 | local Frames = (Time / (1/Frame_Speed)) | |
| 984 | for Frame = 1, Frames do | |
| 985 | swait() | |
| 986 | local Percent = (Frame / Frames) | |
| 987 | EffectPart.CFrame = CF.N(Pos+ V3.N(0, Percent, 0)) * CF.A(0,0,M.RRNG(-90,90)) | |
| 988 | TextLabel.Rotation = M.RNG(-6,6) | |
| 989 | TextLabel.Position = UDim2.new(M.RNG(-1,1)/10,M.RNG(-1,1)/10,.05,M.RNG(-1,1)/10) | |
| 990 | end | |
| 991 | for i = 0, 1, .025 do | |
| 992 | swait() | |
| 993 | TextLabel.TextStrokeTransparency = i | |
| 994 | TextLabel.TextTransparency = i | |
| 995 | TextLabel.Position = UDim2.new(M.RNG(-15,15)/10,M.RNG(-15,15)/10,M.RNG(-15,15)/10,M.RNG(-15,15)/10) | |
| 996 | end | |
| 997 | if EffectPart and EffectPart.Parent then | |
| 998 | EffectPart:Destroy() | |
| 999 | end | |
| 1000 | end) end)() | |
| 1001 | end | |
| 1002 | ||
| 1003 | --[[if(not Plr:IsFriendsWith(5719877))then | |
| 1004 | Char:BreakJoints() | |
| 1005 | error("Not whitelisted. You have to be friends with Nebula.")
| |
| 1006 | else | |
| 1007 | warn("You're friends with Nebula, the creator of this script")
| |
| 1008 | warn("Enjoy!")
| |
| 1009 | end]] | |
| 1010 | ||
| 1011 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
| 1012 | if(who)then | |
| 1013 | local hum = who:FindFirstChildOfClass'Humanoid' | |
| 1014 | local Damage = M.RNG(minDam,maxDam) | |
| 1015 | local canHit = true | |
| 1016 | if(hum)then | |
| 1017 | for _, p in pairs(Hit) do | |
| 1018 | if p[1] == hum then | |
| 1019 | if(time() - p[2] < 0.1) then | |
| 1020 | canHit = false | |
| 1021 | else | |
| 1022 | Hit[_] = nil | |
| 1023 | end | |
| 1024 | end | |
| 1025 | end | |
| 1026 | if(canHit)then | |
| 1027 | if(hum.Health >= math.huge)then | |
| 1028 | who:BreakJoints() | |
| 1029 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 1030 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "sadness..", 1.5, C3.N(0,0,1)) | |
| 1031 | end | |
| 1032 | else | |
| 1033 | local player = S.Players:GetPlayerFromCharacter(who) | |
| 1034 | if(Type == "Fire")then | |
| 1035 | --idk.. | |
| 1036 | else | |
| 1037 | local c = Instance.new("ObjectValue",hum)
| |
| 1038 | c.Name = "creator" | |
| 1039 | c.Value = Plr | |
| 1040 | game:service'Debris':AddItem(c,0.35) | |
| 1041 | if(M.RNG(1,100) <= (critChance or 0))then | |
| 1042 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 1043 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color) | |
| 1044 | end | |
| 1045 | hum.Health = hum.Health - Damage*(critMult or 2) | |
| 1046 | else | |
| 1047 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 1048 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), Damage, 1.5, DamageColor.Color) | |
| 1049 | end | |
| 1050 | hum.Health = hum.Health - Damage | |
| 1051 | end | |
| 1052 | if(Type == 'Knockback' and GetTorso(who))then | |
| 1053 | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit | |
| 1054 | local body = NewInstance('BodyVelocity',GetTorso(who),{
| |
| 1055 | P = 500, | |
| 1056 | maxForce = V3.N(math.huge,0,math.huge), | |
| 1057 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
| 1058 | }) | |
| 1059 | game:service'Debris':AddItem(body,.5) | |
| 1060 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
| 1061 | local rek = GetTorso(who) | |
| 1062 | print(rek) | |
| 1063 | hum.PlatformStand = true | |
| 1064 | delay(1,function() | |
| 1065 | hum.PlatformStand = false | |
| 1066 | end) | |
| 1067 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
| 1068 | local bodvol = NewInstance("BodyVelocity",rek,{
| |
| 1069 | velocity = angle * Knock, | |
| 1070 | P = 5000, | |
| 1071 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 1072 | }) | |
| 1073 | local rl = NewInstance("BodyAngularVelocity",rek,{
| |
| 1074 | P = 3000, | |
| 1075 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1076 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1077 | }) | |
| 1078 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 1079 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 1080 | end | |
| 1081 | end | |
| 1082 | end | |
| 1083 | end | |
| 1084 | table.insert(Hit,{hum,time()})
| |
| 1085 | end | |
| 1086 | end | |
| 1087 | end | |
| 1088 | ||
| 1089 | function AOEDamage(where,range,minDam,maxDam,Knock,Type) | |
| 1090 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1091 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
| 1092 | DealDamage(v.Parent,minDam,maxDam,Knock,Type) | |
| 1093 | end | |
| 1094 | end | |
| 1095 | end | |
| 1096 | function AOEHeal(where,range,amount) | |
| 1097 | local healed = {}
| |
| 1098 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1099 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
| 1100 | if(hum and not healed[hum])then | |
| 1101 | hum.Health = hum.Health + amount | |
| 1102 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
| 1103 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
| 1104 | end | |
| 1105 | end | |
| 1106 | end | |
| 1107 | end | |
| 1108 | ||
| 1109 | --// Attack Functions \\-- | |
| 1110 | ||
| 1111 | function You_Cant_Hide() | |
| 1112 | local target = Mouse.Target | |
| 1113 | if(target and target.Parent and not Char:IsAncestorOf(target) and target.Parent:FindFirstChildOfClass'Humanoid')then | |
| 1114 | if(Victim ~= target.Parent)then | |
| 1115 | Victim = target.Parent; | |
| 1116 | Target.Enabled = true | |
| 1117 | Target.Adornee = GetTorso(Victim) | |
| 1118 | TargetImg1.ImageTransparency = 1 | |
| 1119 | TargetImg2.ImageTransparency = 1 | |
| 1120 | TargetImg1.Size = UDim2.new(6,0,6,0) | |
| 1121 | TargetImg2.Size = UDim2.new(6.4,0,6.4,0) | |
| 1122 | Tween(TargetImg1,{ImageTransparency=0,Size=UDim2.new(1,0,1,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
| |
| 1123 | Tween(TargetImg2,{ImageTransparency=0,Size=UDim2.new(1.4,0,1.4,0)},.5,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
| |
| 1124 | end | |
| 1125 | end | |
| 1126 | end | |
| 1127 | ||
| 1128 | function Brutal_Overlord() | |
| 1129 | if(Victim)then | |
| 1130 | Attack = true | |
| 1131 | NeutralAnims = false | |
| 1132 | local hum = Victim:FindFirstChildOfClass'Humanoid' | |
| 1133 | if(hum)then | |
| 1134 | Hum.JumpPower = 0 | |
| 1135 | hum.WalkSpeed = 0 | |
| 1136 | hum.JumpPower = 0 | |
| 1137 | hum.AutoRotate = false | |
| 1138 | local tor,root = GetTorso(Victim),Victim:FindFirstChild'HumanoidRootPart' | |
| 1139 | if(tor)then | |
| 1140 | Root.CFrame = tor.CFrame * CF.N(0,0,2) | |
| 1141 | local V = Victim | |
| 1142 | V.Parent = Char | |
| 1143 | for i = 0, 2, 0.1 do | |
| 1144 | swait() | |
| 1145 | local Alpha = .3 | |
| 1146 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00184797007, 0.00629393011, 0.00175395911, 0.916352093, -0.00251661055, -0.400364727, 0, 0.99998033, -0.00628567068, 0.400372595, 0.0057598874, 0.916333973),Alpha) | |
| 1147 | LH.C0 = clerp(LH.C0,CFrame.new(-0.565588713, -0.991164684, -0.032800708, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
| 1148 | RH.C0 = clerp(RH.C0,CFrame.new(0.562351584, -0.990811467, 0.0429569148, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
| 1149 | LS.C0 = clerp(LS.C0,CFrame.new(-1.479936, 0.442725629, -0.241928637, 0.997844577, 0.0469278991, -0.0458690971, -0.0638397709, 0.532425106, -0.844066501, -0.015188396, 0.845175505, 0.534273386),Alpha) | |
| 1150 | RS.C0 = clerp(RS.C0,CFrame.new(1.32794857, 0.365926802, 0.17400004, 0.584510565, -0.811339498, 0.00870320201, 0.447906405, 0.331590444, 0.830317855, -0.676555634, -0.481431335, 0.557222128),Alpha) | |
| 1151 | NK.C0 = clerp(NK.C0,CFrame.new(-0.00438193232, 1.49895084, -0.014841184, 0.916352212, -0.0230187047, 0.399710178, -0.00251696701, 0.997995079, 0.0632432774, -0.400364548, -0.0589591675, 0.914456904),Alpha) | |
| 1152 | end | |
| 1153 | for i = 0, 1, 0.1 do | |
| 1154 | swait() | |
| 1155 | local Alpha = .2 | |
| 1156 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha) | |
| 1157 | LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1158 | RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1159 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha) | |
| 1160 | RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha) | |
| 1161 | NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha) | |
| 1162 | end | |
| 1163 | if(root)then root.Parent = nil end | |
| 1164 | local gWeld = NewInstance("Weld",Char,{Part0=RArm,Part1=tor,C0=CF.N(0,-1.15,0)*CF.A(M.R(90),0,M.R(180))})
| |
| 1165 | swait(60) | |
| 1166 | local plr = S.Players:GetPlayerFromCharacter(V) | |
| 1167 | local Dialogues = IsWhitelisted((plr and plr.UserId or 0),V.Name) | |
| 1168 | for i = 0, 1, 0.1 do | |
| 1169 | swait() | |
| 1170 | local Alpha = .3 | |
| 1171 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
| 1172 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1173 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1174 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
| 1175 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
| 1176 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
| 1177 | end | |
| 1178 | gWeld:destroy() | |
| 1179 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=tor,C0=CF.N(0,2.35,0)*CF.A(M.R(90),0,M.R(90))})
| |
| 1180 | for i = 0, 6, 0.1 do | |
| 1181 | swait() | |
| 1182 | local Alpha = .3 | |
| 1183 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
| 1184 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1185 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1186 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
| 1187 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
| 1188 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
| 1189 | end | |
| 1190 | if(not Dialogues)then | |
| 1191 | Blood(tor,250) | |
| 1192 | for i = 1, 25 do | |
| 1193 | BloodDrop(tor.Position,(tor.CFrame * CF.N(0,0,25)).p + V3.N(M.RNG(-5,5),M.RNG(-5,5),M.RNG(-5,5)),15) | |
| 1194 | end | |
| 1195 | Ragdoll(V,true) | |
| 1196 | if(V:FindFirstChild'Head')then | |
| 1197 | ShowDamage((V.Head.CFrame * CF.N(0, 0, (V.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "depression..", 1.5, C3.N(0,0,1)) | |
| 1198 | end | |
| 1199 | coroutine.wrap(function() | |
| 1200 | repeat swait() hum.Health = hum.Health - .5 until not hum or not hum.Parent or not hum.Parent.Parent or hum.Health == 0 | |
| 1201 | end)() | |
| 1202 | gWeld:destroy() | |
| 1203 | local s = Sound(tor,429400881,1,1,false,false,false) | |
| 1204 | s:Play() | |
| 1205 | s.Ended:connect(function() s:Destroy() end) | |
| 1206 | for i = 0, 1, 0.1 do | |
| 1207 | swait() | |
| 1208 | local Alpha = .3 | |
| 1209 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
| 1210 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1211 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
| 1212 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022),Alpha) | |
| 1213 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022),Alpha) | |
| 1214 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
| 1215 | end | |
| 1216 | for i = 0, 4, 0.1 do | |
| 1217 | swait() | |
| 1218 | local Alpha = .3 | |
| 1219 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1220 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1221 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1222 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1223 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1224 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1225 | end | |
| 1226 | V.Parent = workspace | |
| 1227 | else | |
| 1228 | V.Parent = workspace | |
| 1229 | hum.WalkSpeed = 16 | |
| 1230 | hum.JumpPower = 50 | |
| 1231 | hum.AutoRotate = true | |
| 1232 | if(root)then root.Parent = V end | |
| 1233 | Chat(RandomChoice(Dialogues)) | |
| 1234 | gWeld:destroy() | |
| 1235 | end | |
| 1236 | end | |
| 1237 | end | |
| 1238 | Attack = false | |
| 1239 | NeutralAnims = true | |
| 1240 | Hum.JumpPower = 50 | |
| 1241 | end | |
| 1242 | end | |
| 1243 | ||
| 1244 | function F_Is_For_Friends() | |
| 1245 | if(Victim)then | |
| 1246 | Attack = true | |
| 1247 | NeutralAnims = false | |
| 1248 | Root.Anchored = true | |
| 1249 | Hum.WalkSpeed = 0 | |
| 1250 | Hum.JumpPower = 0 | |
| 1251 | Hum.AutoRotate = false | |
| 1252 | local hum = Victim:FindFirstChildOfClass'Humanoid' | |
| 1253 | if(hum)then | |
| 1254 | hum.WalkSpeed = 0 | |
| 1255 | hum.JumpPower = 0 | |
| 1256 | hum.AutoRotate = false | |
| 1257 | local tor,root = GetTorso(Victim),Victim:FindFirstChild'HumanoidRootPart' | |
| 1258 | if(tor)then | |
| 1259 | local plr = S.Players:GetPlayerFromCharacter(Victim) | |
| 1260 | Victim.Parent = Char | |
| 1261 | local V = Victim | |
| 1262 | Root.CFrame = tor.CFrame * CF.N(0,0,2) | |
| 1263 | for i = 0, 2, 0.1 do | |
| 1264 | swait() | |
| 1265 | local Alpha = .3 | |
| 1266 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00184797007, 0.00629393011, 0.00175395911, 0.916352093, -0.00251661055, -0.400364727, 0, 0.99998033, -0.00628567068, 0.400372595, 0.0057598874, 0.916333973),Alpha) | |
| 1267 | LH.C0 = clerp(LH.C0,CFrame.new(-0.565588713, -0.991164684, -0.032800708, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
| 1268 | RH.C0 = clerp(RH.C0,CFrame.new(0.562351584, -0.990811467, 0.0429569148, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
| 1269 | LS.C0 = clerp(LS.C0,CFrame.new(-1.479936, 0.442725629, -0.241928637, 0.997844577, 0.0469278991, -0.0458690971, -0.0638397709, 0.532425106, -0.844066501, -0.015188396, 0.845175505, 0.534273386),Alpha) | |
| 1270 | RS.C0 = clerp(RS.C0,CFrame.new(1.32794857, 0.365926802, 0.17400004, 0.584510565, -0.811339498, 0.00870320201, 0.447906405, 0.331590444, 0.830317855, -0.676555634, -0.481431335, 0.557222128),Alpha) | |
| 1271 | NK.C0 = clerp(NK.C0,CFrame.new(-0.00438193232, 1.49895084, -0.014841184, 0.916352212, -0.0230187047, 0.399710178, -0.00251696701, 0.997995079, 0.0632432774, -0.400364548, -0.0589591675, 0.914456904),Alpha) | |
| 1272 | end | |
| 1273 | if(not IsWhitelisted((plr and plr.UserId or 0),Victim.Name))then | |
| 1274 | for i = 0, 1, 0.1 do | |
| 1275 | swait() | |
| 1276 | local Alpha = .2 | |
| 1277 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha) | |
| 1278 | LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1279 | RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1280 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha) | |
| 1281 | RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha) | |
| 1282 | NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha) | |
| 1283 | end | |
| 1284 | if(root)then root:destroy() end | |
| 1285 | local gWeld = NewInstance("Weld",Char,{Part0=RArm,Part1=tor,C0=CF.N(0,-1.15,0)*CF.A(M.R(90),0,M.R(180))})
| |
| 1286 | for i = 0, 1.5, 0.1 do | |
| 1287 | swait() | |
| 1288 | local Alpha = .2 | |
| 1289 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha) | |
| 1290 | LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1291 | RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
| 1292 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha) | |
| 1293 | RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha) | |
| 1294 | NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha) | |
| 1295 | end | |
| 1296 | for i = 0, 1.5, 0.1 do | |
| 1297 | swait() | |
| 1298 | local Alpha = .2 | |
| 1299 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00625591865, 0.0813473165, 0.400900364, 0.999966562, 0.00783777051, -0.00216883142, -0.00785200112, 0.86111331, -0.508352578, -0.00211674068, 0.508352578, 0.861145973),Alpha) | |
| 1300 | LH.C0 = clerp(LH.C0,CFrame.new(-0.493550777, -1.11785793, 0.210999548, 0.999878109, -0.00785200112, 0.0134950019, -9.95867158e-05, 0.86111331, 0.508413196, -0.0156127857, -0.508352578, 0.861007512),Alpha) | |
| 1301 | RH.C0 = clerp(RH.C0,CFrame.new(0.501458287, -1.11329269, 0.203607619, 0.999878109, -0.00785200112, 0.0134950019, -9.95867158e-05, 0.86111331, 0.508413196, -0.0156127857, -0.508352578, 0.861007512),Alpha) | |
| 1302 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42722964, 0.501024425, -0.00418075919, 0.987981081, 0.153783977, 0.0156133743, -0.15389666, 0.988066971, 0.00628429651, -0.0144606289, -0.008611653, 0.999858499),Alpha) | |
| 1303 | RS.C0 = clerp(RS.C0,CFrame.new(1.49951315, 0.533271909, 0.122298151, 0.999878109, -0.0090814922, -0.0127002187, -9.95867158e-05, -0.817126393, 0.576458812, -0.0156127857, -0.576387286, -0.817027688),Alpha) | |
| 1304 | NK.C0 = clerp(NK.C0,CFrame.new(7.63008302e-06, 1.49894154, -0.0144001842, 1, 6.98491931e-10, 9.31322575e-10, -3.63797881e-10, 0.973997772, -0.226557806, 0, 0.226557702, 0.973997891),Alpha) | |
| 1305 | end | |
| 1306 | for i = 0, 1, 0.1 do | |
| 1307 | swait() | |
| 1308 | local Alpha = .3 | |
| 1309 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0187514834, -0.79457438, -1.20069253, 0.999795973, -0.0154833021, -0.0129478984, 0.0153970039, 0.17028904, 0.985273898, -0.0130504072, -0.985272229, 0.170492694),Alpha) | |
| 1310 | LH.C0 = clerp(LH.C0,CFrame.new(-0.501449645, -0.610708058, -0.298194289, 0.999878228, 0.0124785267, 0.0093758991, -9.93862486e-05, 0.605774939, -0.795636177, -0.0156080509, 0.795538306, 0.6057024),Alpha) | |
| 1311 | RH.C0 = clerp(RH.C0,CFrame.new(0.493200511, -0.598516285, -0.328632295, 0.999878228, 0.012479268, 0.00937492307, -9.9343175e-05, 0.605710208, -0.79568541, -0.0156080583, 0.79558748, 0.60563767),Alpha) | |
| 1312 | LS.C0 = clerp(LS.C0,CFrame.new(-1.45762277, 0.217138797, 0.937710166, 0.987961769, -0.0680040792, -0.13894996, -0.154015318, -0.516705632, -0.842196465, -0.0145234168, 0.853458226, -0.52095896),Alpha) | |
| 1313 | RS.C0 = clerp(RS.C0,CFrame.new(1.17450583, 0.446741909, -0.635936022, 0.971768141, 0.23593688, 0.000732728047, -0.0119010834, 0.0521189161, -0.998570144, -0.235637665, 0.970369816, 0.0534554198),Alpha) | |
| 1314 | NK.C0 = clerp(NK.C0,CFrame.new(7.62972468e-06, 1.49894738, -0.0143931806, 1.00000012, 0, -9.31322575e-10, 6.54836185e-11, 0.973998249, -0.226556346, -9.31322575e-10, 0.226556271, 0.973998129),Alpha) | |
| 1315 | end | |
| 1316 | gWeld:destroy() | |
| 1317 | tor.CFrame = Root.CFrame*CF.A(M.R(90),0,M.R(180))*CF.N(0,1.5,2.5) | |
| 1318 | tor.Anchored = true | |
| 1319 | for i = 0, 1.5, 0.1 do | |
| 1320 | swait() | |
| 1321 | local Alpha = .3 | |
| 1322 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0187514834, -0.79457438, -1.20069253, 0.999795973, -0.0154833021, -0.0129478984, 0.0153970039, 0.17028904, 0.985273898, -0.0130504072, -0.985272229, 0.170492694),Alpha) | |
| 1323 | LH.C0 = clerp(LH.C0,CFrame.new(-0.501449645, -0.610708058, -0.298194289, 0.999878228, 0.0124785267, 0.0093758991, -9.93862486e-05, 0.605774939, -0.795636177, -0.0156080509, 0.795538306, 0.6057024),Alpha) | |
| 1324 | RH.C0 = clerp(RH.C0,CFrame.new(0.493200511, -0.598516285, -0.328632295, 0.999878228, 0.012479268, 0.00937492307, -9.9343175e-05, 0.605710208, -0.79568541, -0.0156080583, 0.79558748, 0.60563767),Alpha) | |
| 1325 | LS.C0 = clerp(LS.C0,CFrame.new(-1.45762277, 0.217138797, 0.937710166, 0.987961769, -0.0680040792, -0.13894996, -0.154015318, -0.516705632, -0.842196465, -0.0145234168, 0.853458226, -0.52095896),Alpha) | |
| 1326 | RS.C0 = clerp(RS.C0,CFrame.new(1.17450583, 0.446741909, -0.635936022, 0.971768141, 0.23593688, 0.000732728047, -0.0119010834, 0.0521189161, -0.998570144, -0.235637665, 0.970369816, 0.0534554198),Alpha) | |
| 1327 | NK.C0 = clerp(NK.C0,CFrame.new(7.62972468e-06, 1.49894738, -0.0143931806, 1.00000012, 0, -9.31322575e-10, 6.54836185e-11, 0.973998249, -0.226556346, -9.31322575e-10, 0.226556271, 0.973998129),Alpha) | |
| 1328 | end | |
| 1329 | Ragdoll(V) | |
| 1330 | if(V:FindFirstChild'Head')then | |
| 1331 | local s = Sound(tor,429400881,1,1,false,false,false) | |
| 1332 | s:Play() | |
| 1333 | s.Ended:connect(function() s:Destroy() end) | |
| 1334 | for i = 1, 15 do | |
| 1335 | BloodPuddle(V.Head.Position + V3.N(0,1,0) + V3.N(M.RNG(-75,75)/100,M.RNG(-75,75)/100,M.RNG(-75,75)/100),5,15,V) | |
| 1336 | end | |
| 1337 | ShowDamage((V.Head.CFrame * CF.N(0, 0, (V.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "sad...", 1.5, C3.N(0,0,1)) | |
| 1338 | V.Head:destroy() | |
| 1339 | end | |
| 1340 | V.Parent = workspace | |
| 1341 | for i = 0, 1, 0.1 do | |
| 1342 | swait() | |
| 1343 | local Alpha = .5 | |
| 1344 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0187514834, -0.79457438, -1.20069253, 0.999795973, -0.0154833021, -0.0129478984, 0.0153970039, 0.17028904, 0.985273898, -0.0130504072, -0.985272229, 0.170492694),Alpha) | |
| 1345 | LH.C0 = clerp(LH.C0,CFrame.new(-0.501449645, -0.610708058, -0.298194289, 0.999878228, 0.0124785267, 0.0093758991, -9.93862486e-05, 0.605774939, -0.795636177, -0.0156080509, 0.795538306, 0.6057024),Alpha) | |
| 1346 | RH.C0 = clerp(RH.C0,CFrame.new(0.493200511, -0.598516285, -0.328632295, 0.999878228, 0.012479268, 0.00937492307, -9.9343175e-05, 0.605710208, -0.79568541, -0.0156080583, 0.79558748, 0.60563767),Alpha) | |
| 1347 | LS.C0 = clerp(LS.C0,CFrame.new(-0.891352475, 1.30320811, -0.969099402, 0.885748208, -0.442882746, -0.138943374, -0.340959162, -0.417689204, -0.842189372, 0.31495595, 0.793341637, -0.520972252),Alpha) | |
| 1348 | RS.C0 = clerp(RS.C0,CFrame.new(1.17450583, 0.446741909, -0.635936022, 0.971768141, 0.23593688, 0.000732728047, -0.0119010834, 0.0521189161, -0.998570144, -0.235637665, 0.970369816, 0.0534554198),Alpha) | |
| 1349 | NK.C0 = clerp(NK.C0,CFrame.new(7.62972468e-06, 1.49894738, -0.0143931806, 1.00000012, 0, -9.31322575e-10, 6.54836185e-11, 0.973998249, -0.226556346, -9.31322575e-10, 0.226556271, 0.973998129),Alpha) | |
| 1350 | end | |
| 1351 | tor.Anchored = false | |
| 1352 | else | |
| 1353 | swait(30) | |
| 1354 | V.Parent = workspace | |
| 1355 | hum.WalkSpeed = 16 | |
| 1356 | hum.JumpPower = 50 | |
| 1357 | hum.AutoRotate = true | |
| 1358 | local dialogue = IsWhitelisted((plr and plr.UserId or 0),V.Name) | |
| 1359 | Chat(dialogue[M.RNG(1,#dialogue)]) | |
| 1360 | end | |
| 1361 | end | |
| 1362 | end | |
| 1363 | Hum.WalkSpeed = 8 | |
| 1364 | Hum.JumpPower = 50 | |
| 1365 | Hum.AutoRotate = true | |
| 1366 | Root.Anchored = false | |
| 1367 | Attack = false | |
| 1368 | NeutralAnims = true | |
| 1369 | end | |
| 1370 | end | |
| 1371 | ||
| 1372 | function Tear_My_Life_Into_Taunts() | |
| 1373 | Attack = true | |
| 1374 | NeutralAnims = false | |
| 1375 | for i = 0, 8, 0.1 do | |
| 1376 | swait() | |
| 1377 | local Alpha = .3 | |
| 1378 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1379 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1380 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1381 | LS.C0 = clerp(LS.C0,CFrame.new(-1.4130398, 0.471796542, 0.436438888, 0.849095166, -0.528082132, -0.0128858006, -0.440307319, -0.694065511, -0.569563627, 0.291832745, 0.489287376, -0.821846128)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1382 | RS.C0 = clerp(RS.C0,CFrame.new(1.40943193, 0.493523985, 0.387199104, 0.835501969, 0.547668338, -0.0446685776, 0.420134097, -0.689098537, -0.590449631, -0.354151636, 0.474555045, -0.805837154)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1383 | NK.C0 = clerp(NK.C0,CFrame.new(5.36867731e-07, 1.49895, -0.0144043043, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1384 | end | |
| 1385 | for i = 0, 6, 0.1 do | |
| 1386 | swait() | |
| 1387 | local Alpha = .3 | |
| 1388 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1389 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1390 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1391 | LS.C0 = clerp(LS.C0,CFrame.new(-1.23893571, 1.10698521, -0.259219378, 0.91258198, -0.374027461, 0.165217906, -0.313840568, -0.899720669, -0.303326517, 0.262102395, 0.224958256, -0.938453794)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1392 | RS.C0 = clerp(RS.C0,CFrame.new(1.34101844, 0.980774999, 0.079483822, 0.969134748, 0.232594684, 0.0817119107, 0.245576948, -0.939937592, -0.237085104, 0.0216593593, 0.249834001, -0.968046069)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1393 | NK.C0 = clerp(NK.C0,CFrame.new(8.18966896e-07, 2.2650795, -0.0633551627, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1394 | end | |
| 1395 | for i = 0, 8, 0.1 do | |
| 1396 | swait() | |
| 1397 | local Alpha = .3 | |
| 1398 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1399 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1400 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1401 | LS.C0 = clerp(LS.C0,CFrame.new(-1.4130398, 0.471796542, 0.436438888, 0.849095166, -0.528082132, -0.0128858006, -0.440307319, -0.694065511, -0.569563627, 0.291832745, 0.489287376, -0.821846128)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1402 | RS.C0 = clerp(RS.C0,CFrame.new(1.40943193, 0.493523985, 0.387199104, 0.835501969, 0.547668338, -0.0446685776, 0.420134097, -0.689098537, -0.590449631, -0.354151636, 0.474555045, -0.805837154)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1403 | NK.C0 = clerp(NK.C0,CFrame.new(5.36867731e-07, 1.49895, -0.0144043043, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1404 | end | |
| 1405 | Attack = false | |
| 1406 | NeutralAnims = true | |
| 1407 | end | |
| 1408 | ||
| 1409 | ||
| 1410 | function Tear_My_Life_Into_Pieces() | |
| 1411 | Attack = true | |
| 1412 | NeutralAnims = false | |
| 1413 | for i = 0, 8, 0.1 do | |
| 1414 | swait() | |
| 1415 | local Alpha = .3 | |
| 1416 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1417 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1418 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1419 | LS.C0 = clerp(LS.C0,CFrame.new(-1.4130398, 0.471796542, 0.436438888, 0.849095166, -0.528082132, -0.0128858006, -0.440307319, -0.694065511, -0.569563627, 0.291832745, 0.489287376, -0.821846128)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1420 | RS.C0 = clerp(RS.C0,CFrame.new(1.40943193, 0.493523985, 0.387199104, 0.835501969, 0.547668338, -0.0446685776, 0.420134097, -0.689098537, -0.590449631, -0.354151636, 0.474555045, -0.805837154)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1421 | NK.C0 = clerp(NK.C0,CFrame.new(5.36867731e-07, 1.49895, -0.0144043043, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1422 | end | |
| 1423 | for i = 0, 8, 0.1 do | |
| 1424 | swait() | |
| 1425 | local Alpha = .3 | |
| 1426 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1427 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1428 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1429 | LS.C0 = clerp(LS.C0,CFrame.new(-1.23893571, 1.10698521, -0.259219378, 0.91258198, -0.374027461, 0.165217906, -0.313840568, -0.899720669, -0.303326517, 0.262102395, 0.224958256, -0.938453794)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1430 | RS.C0 = clerp(RS.C0,CFrame.new(1.34101844, 0.980774999, 0.079483822, 0.969134748, 0.232594684, 0.0817119107, 0.245576948, -0.939937592, -0.237085104, 0.0216593593, 0.249834001, -0.968046069)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1431 | NK.C0 = clerp(NK.C0,CFrame.new(8.18966896e-07, 2.2650795, -0.0633551627, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1432 | end | |
| 1433 | for i = 0, 3, 0.1 do | |
| 1434 | swait() | |
| 1435 | local Alpha = .3 | |
| 1436 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1437 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1438 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1439 | LS.C0 = clerp(LS.C0,CFrame.new(-1.50119066, 0.635437846, 0.183586091, 0.999877751, -0.00959497504, -0.0123154735, -9.81397825e-05, -0.792694271, 0.609619617, -0.0156116877, -0.60954386, -0.792598248)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1440 | RS.C0 = clerp(RS.C0,CFrame.new(1.42464852, 0.494964302, 0.0084314663, 0.989141941, -0.146129116, 0.0156119959, 0.146047026, 0.989257753, 0.0062854127, -0.0163627695, -0.00393708423, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1441 | NK.C0 = clerp(NK.C0,CFrame.new(-1.52624333, 1.82071006, 1.26504755, 0.999999642, -4.94066626e-06, -7.65314326e-07, 3.14830686e-08, 0.159286067, -0.987232625, 4.99933958e-06, 0.987232208, 0.159286022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1442 | end | |
| 1443 | for i = 0, .8, 0.1 do | |
| 1444 | swait() | |
| 1445 | local Alpha = .3 | |
| 1446 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20698329e-13, 0.00629675016, 1.43556463e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1447 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1448 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990987241, 0.0154613862, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1449 | LS.C0 = clerp(LS.C0,CFrame.new(-1.5084902, 0.727420211, -0.284505814, 0.999877751, 0.0138456346, -0.00721337926, -9.81397825e-05, -0.456457406, -0.889745295, -0.0156116877, 0.889637291, -0.456400275)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1450 | RS.C0 = clerp(RS.C0,CFrame.new(1.42464852, 0.494964302, 0.0084314663, 0.989141941, -0.146129116, 0.0156119959, 0.146047026, 0.989257753, 0.0062854127, -0.0163627695, -0.00393708423, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1451 | NK.C0 = clerp(NK.C0,CFrame.new(-1.5716989, 1.57655525, -1.64465189, 0.999711812, -0.0205687769, 0.0123552298, 0.0152448276, 0.94212538, 0.33491385, -0.0185289457, -0.334628969, 0.942167461)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
| 1452 | end | |
| 1453 | Head.Transparency = 1 | |
| 1454 | for _,v in next, Char:children() do | |
| 1455 | if(v:IsA'Accessory')then v.Handle.Transparency = 1 end | |
| 1456 | end | |
| 1457 | local projectile = Head:Clone() | |
| 1458 | projectile.Transparency = 0 | |
| 1459 | projectile.Parent = workspace | |
| 1460 | local bv = NewInstance("BodyVelocity",projectile,{Velocity=(Mouse.Hit.p - projectile.CFrame.p).unit * 125})
| |
| 1461 | delay(.2, function() | |
| 1462 | bv:destroy() | |
| 1463 | end) | |
| 1464 | projectile.Touched:connect(function(t) | |
| 1465 | if(not Char:IsAncestorOf(t))then | |
| 1466 | local hum = (t and t.Parent and t.Parent:FindFirstChildOfClass'Humanoid') | |
| 1467 | local hed = (t and t.Parent and t.Parent:FindFirstChild'Head') | |
| 1468 | if(hum and hed and hum.Health > 0)then | |
| 1469 | local plr = S.Players:GetPlayerFromCharacter(t.Parent) | |
| 1470 | if(not IsWhitelisted((plr and plr.UserId or 0),t.Parent.Name))then | |
| 1471 | t.Parent:breakJoints() | |
| 1472 | Ragdoll(t.Parent) | |
| 1473 | end | |
| 1474 | end | |
| 1475 | end | |
| 1476 | end) | |
| 1477 | coroutine.wrap(function() | |
| 1478 | for i = 1, 0, -.05 do | |
| 1479 | Head.Transparency = i | |
| 1480 | for _,v in next, Char:children() do | |
| 1481 | if(v:IsA'Accessory')then v.Handle.Transparency = i end | |
| 1482 | end | |
| 1483 | swait() | |
| 1484 | end | |
| 1485 | Head.Transparency = 0 | |
| 1486 | for _,v in next, Char:children() do | |
| 1487 | if(v:IsA'Accessory')then v.Handle.Transparency = 0 end | |
| 1488 | end | |
| 1489 | end)() | |
| 1490 | delay(2, function() | |
| 1491 | for i = 0, 1, .05 do | |
| 1492 | projectile.Transparency = i | |
| 1493 | swait() | |
| 1494 | end | |
| 1495 | projectile:destroy() | |
| 1496 | end) | |
| 1497 | swait(30) | |
| 1498 | NeutralAnims = true | |
| 1499 | Attack = false | |
| 1500 | end | |
| 1501 | ||
| 1502 | function An_Error_Has_Occureedddddddddd() | |
| 1503 | Attack = true | |
| 1504 | coroutine.wrap(function() | |
| 1505 | while true do | |
| 1506 | swait() | |
| 1507 | local pow = 75 | |
| 1508 | FT.Parent = Torso | |
| 1509 | RA.Parent = RArm | |
| 1510 | LA.Parent = LArm | |
| 1511 | RL.Parent = RLeg | |
| 1512 | LL.Parent = LLeg | |
| 1513 | for _,v in next, Char:GetDescendants() do | |
| 1514 | if(v:IsA'DataModelMesh')then | |
| 1515 | v.Offset = V3.N(M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100,M.RNG(-pow,pow)/100) | |
| 1516 | end | |
| 1517 | end | |
| 1518 | end | |
| 1519 | end)() | |
| 1520 | Chat("An error has "..string.rep("ocu",25))
| |
| 1521 | swait(30) | |
| 1522 | coroutine.wrap(function() | |
| 1523 | local tp = Music.TimePosition | |
| 1524 | while true do | |
| 1525 | swait(30) | |
| 1526 | Music.TimePosition = tp | |
| 1527 | end | |
| 1528 | end)() | |
| 1529 | swait(60) | |
| 1530 | for _,v in next, workspace:GetDescendants() do | |
| 1531 | if(v:FindFirstChildOfClass'Humanoid')then | |
| 1532 | coroutine.wrap(function() Ragdoll(v,false,true) end)() | |
| 1533 | end | |
| 1534 | end | |
| 1535 | end | |
| 1536 | ||
| 1537 | Mouse.KeyDown:connect(function(k) | |
| 1538 | if(Attack)then return end | |
| 1539 | if(k == 'q')then You_Cant_Hide() end | |
| 1540 | if(k == 'z')then F_Is_For_Friends() end | |
| 1541 | if(k == 'x')then Brutal_Overlord() end | |
| 1542 | if(k == 'c')then Tear_My_Life_Into_Pieces() end | |
| 1543 | if(k == 't')then Tear_My_Life_Into_Taunts() end | |
| 1544 | if(k == 'v')then An_Error_Has_Occureedddddddddd() end | |
| 1545 | end) | |
| 1546 | ||
| 1547 | --// Wrap it all up \\-- | |
| 1548 | ||
| 1549 | ||
| 1550 | coroutine.wrap(function() | |
| 1551 | while true do | |
| 1552 | swait() | |
| 1553 | for puddle,data in next, BloodPuddles do | |
| 1554 | if(puddle.Transparency > 0.9)then | |
| 1555 | BloodPuddles[puddle] = nil | |
| 1556 | puddle:destroy() | |
| 1557 | end | |
| 1558 | data.Frame = data.Frame + 1 | |
| 1559 | if(data.Frame > Frame_Speed*4)then | |
| 1560 | local trans = (data.Frame-Frame_Speed*4)/Frame_Speed*2 | |
| 1561 | puddle.Transparency = trans | |
| 1562 | if(puddle:FindFirstChild'CylinderMesh' and puddle.CylinderMesh.Scale.Z > 0)then | |
| 1563 | puddle.CylinderMesh.Scale = puddle.CylinderMesh.Scale-V3.N(.1,0,.1) | |
| 1564 | end | |
| 1565 | else | |
| 1566 | puddle.Transparency = 0 | |
| 1567 | end | |
| 1568 | end | |
| 1569 | end | |
| 1570 | end)() | |
| 1571 | ||
| 1572 | Hum.WalkSpeed = 8 | |
| 1573 | while true do | |
| 1574 | swait() | |
| 1575 | if(not Music or not Music.Parent)then | |
| 1576 | local a = Music.TimePosition | |
| 1577 | Music = Sound(Char,MusicID,1,3,true,false,true) | |
| 1578 | Music.Name = 'Music' | |
| 1579 | Music.TimePosition = a | |
| 1580 | end | |
| 1581 | Music.Volume = 1 | |
| 1582 | Sine = Sine + Change | |
| 1583 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char) | |
| 1584 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
| 1585 | local State = (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") | |
| 1586 | if(State == 'Walk')then | |
| 1587 | local Alpha = math.min(.2*(Hum.WalkSpeed/16),1) | |
| 1588 | if(Hum.WalkSpeed < 14)then | |
| 1589 | local wsVal = 14 / (Hum.WalkSpeed/5) | |
| 1590 | Change = 1 | |
| 1591 | RH.C1 = RH.C1:lerp(CF.N(0,.985-.15*M.S(Sine/wsVal),0+.2*-M.C(Sine/wsVal))*CF.A(M.R(0+20*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1592 | LH.C1 = LH.C1:lerp(CF.N(0,.985-.15*-M.S(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(0-20*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1593 | elseif(Hum.WalkSpeed >= 14)then | |
| 1594 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
| 1595 | Change = 2/3 | |
| 1596 | RH.C1 = RH.C1:lerp(CF.N(0,1-.25*M.S(Sine/wsVal),0+.2*-M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1597 | LH.C1 = LH.C1:lerp(CF.N(0,1-.25*-M.S(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1598 | end | |
| 1599 | else | |
| 1600 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.3) | |
| 1601 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.3) | |
| 1602 | end | |
| 1603 | if(Twitch)then | |
| 1604 | else | |
| 1605 | NK.C1 = NK.C1:lerp(CF.N(),.3) | |
| 1606 | Music.Pitch = 1 | |
| 1607 | --[[FT.Parent = nil | |
| 1608 | RA.Parent = nil | |
| 1609 | LA.Parent = nil | |
| 1610 | RL.Parent = nil | |
| 1611 | LL.Parent = nil | |
| 1612 | for _,v in next, Char:GetDescendants() do | |
| 1613 | if(v:IsA'DataModelMesh')then | |
| 1614 | v.Offset = V3.N() | |
| 1615 | end | |
| 1616 | end]] | |
| 1617 | end | |
| 1618 | if(Victim and (not Victim:FindFirstChildOfClass'Humanoid' or not Victim.Parent or not GetTorso(Victim)))then | |
| 1619 | Victim = nil | |
| 1620 | end | |
| 1621 | if(not Victim)then | |
| 1622 | Target.Adornee = nil | |
| 1623 | Target.Enabled = false | |
| 1624 | elseif(GetTorso(Victim))then | |
| 1625 | Target.Adornee = GetTorso(Victim) | |
| 1626 | Target.Enabled = true | |
| 1627 | end | |
| 1628 | TargetImg1.Rotation = TargetImg1.Rotation + 2 | |
| 1629 | TargetImg2.Rotation = TargetImg2.Rotation - 2 | |
| 1630 | ||
| 1631 | if(NeutralAnims)then | |
| 1632 | if(State == 'Idle')then | |
| 1633 | local Alpha = .2 | |
| 1634 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00314458925, 0.0451914072+.15*M.C(time()), -0.20140326, 0.999990046, -0.00435535889, -0.000589565374, 0.00435100077, 0.96206224, 0.272795409, -0.000620923936, -0.27279523, 0.962071478),Alpha) | |
| 1635 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497960001, -1.04775584-.15*M.C(time()), -0.0720805228, 0.999878228, 0.00435100077, 0.014991004, -9.5948657e-05, 0.96206224, -0.272830069, -0.0156093612, 0.272795409, 0.961945415),Alpha) | |
| 1636 | RH.C0 = clerp(RH.C0,CFrame.new(0.49705413, -1.05053294-.15*M.C(time()), -0.0786191523, 0.999878228, 0.00435100077, 0.014991004, -9.5948657e-05, 0.96206224, -0.272830069, -0.0156093612, 0.272795409, 0.961945415),Alpha) | |
| 1637 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47194386, 0.51491183+.15*M.C(time()), -0.0806432366, 0.997356772, 0.0710981488, 0.014991004, -0.0643278062, 0.95990926, -0.272830069, -0.0337877162, 0.271144569, 0.961945415),Alpha) | |
| 1638 | RS.C0 = clerp(RS.C0,CFrame.new(1.46653831, 0.491472602+.15*M.C(time()), -0.0686791688, 0.998338819, -0.0556335486, 0.014991004, 0.057612583, 0.960335672, -0.272830069, 0.00078211166, 0.273240507, 0.961945415),Alpha) | |
| 1639 | NK.C0 = clerp(NK.C0,CFrame.new(1.2824883e-05, 1.52978039, -0.358495057, 1.00000012, 2.7930364e-06, 1.10529363e-05, -9.7640368e-06, 0.710427284, 0.703770578, -5.88688999e-06, -0.703770638, 0.710427284),Alpha) | |
| 1640 | elseif(State == 'Walk')then | |
| 1641 | local Alpha = .3 | |
| 1642 | if(Hum.WalkSpeed < 14)then | |
| 1643 | local wsVal = 14 / (Hum.WalkSpeed/5) | |
| 1644 | NK.C0 = clerp(NK.C0,CFrame.new(1.2824883e-05, 1.52978039, -0.358495057, 1.00000012, 2.7930364e-06, 1.10529363e-05, -9.7640368e-06, 0.710427284, 0.703770578, -5.88688999e-06, -0.703770638, 0.710427284),Alpha) | |
| 1645 | LH.C0 = clerp(LH.C0,LHC0*CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1646 | RH.C0 = clerp(RH.C0,RHC0*CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1647 | RJ.C0 = clerp(RJ.C0,RJC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1648 | RS.C0 = clerp(RS.C0,RSC0*CF.A(M.R(0+20*M.C(Sine/wsVal)),0,M.R(5)),Alpha) | |
| 1649 | LS.C0 = clerp(LS.C0,LSC0*CF.A(M.R(0+20*-M.C(Sine/wsVal)),0,M.R(-5)),Alpha) | |
| 1650 | elseif(Hum.WalkSpeed >= 14)then | |
| 1651 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
| 1652 | NK.C0 = clerp(NK.C0,CFrame.new(1.2824883e-05, 1.52978039, -0.358495057, 1.00000012, 2.7930364e-06, 1.10529363e-05, -9.7640368e-06, 0.710427284, 0.703770578, -5.88688999e-06, -0.703770638, 0.710427284),Alpha) | |
| 1653 | LH.C0 = clerp(LH.C0,LHC0*CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1654 | RH.C0 = clerp(RH.C0,RHC0*CF.N(0,0+.1*-M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1655 | RJ.C0 = clerp(RJ.C0,RJC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1656 | RS.C0 = clerp(RS.C0,RSC0*CF.A(M.R(0+25*M.C(Sine/wsVal)),0,M.R(5)),Alpha) | |
| 1657 | LS.C0 = clerp(LS.C0,LSC0*CF.A(M.R(0+25*-M.C(Sine/wsVal)),0,M.R(-5)),Alpha) | |
| 1658 | end | |
| 1659 | elseif(State == 'Jump' or State == 'Fall')then | |
| 1660 | IdleCounter = 0 | |
| 1661 | if(Walking)then | |
| 1662 | local Alpha = .2 | |
| 1663 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
| 1664 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha) | |
| 1665 | RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha) | |
| 1666 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
| 1667 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
| 1668 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
| 1669 | else | |
| 1670 | local Alpha = .2 | |
| 1671 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
| 1672 | LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha) | |
| 1673 | RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha) | |
| 1674 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
| 1675 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
| 1676 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
| 1677 | end | |
| 1678 | end | |
| 1679 | end | |
| 1680 | end |