SHOW:
|
|
- or go back to the newest paste.
| 1 | function Smooth(part) | |
| 2 | part.TopSurface = "Smooth" | |
| 3 | part.BottomSurface = "Smooth" | |
| 4 | part.RightSurface = "Smooth" | |
| 5 | part.LeftSurface = "Smooth" | |
| 6 | part.FrontSurface = "Smooth" | |
| 7 | part.BackSurface = "Smooth" | |
| 8 | end | |
| 9 | ||
| 10 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 11 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 12 | local RealPlayer = Player | |
| 13 | do print("hi")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 14 | ||
| 15 | plr = owner | |
| 16 | char = plr.Character | |
| 17 | tors = char.Torso | |
| 18 | root = char.HumanoidRootPart | |
| 19 | ||
| 20 | IT = Instance.new | |
| 21 | CF = CFrame.new | |
| 22 | VT = Vector3.new | |
| 23 | RAD = math.rad | |
| 24 | C3 = Color3.new | |
| 25 | UD2 = UDim2.new | |
| 26 | BRICKC = BrickColor.new | |
| 27 | ANGLES = CFrame.Angles | |
| 28 | EULER = CFrame.fromEulerAnglesXYZ | |
| 29 | COS = math.cos | |
| 30 | ACOS = math.acos | |
| 31 | SIN = math.sin | |
| 32 | ASIN = math.asin | |
| 33 | ABS = math.abs | |
| 34 | MRANDOM = math.random | |
| 35 | FLOOR = math.floor | |
| 36 | CHARACTER = char | |
| 37 | ||
| 38 | local ANIMATORSK = CHARACTER:FindFirstChild("Animate")
| |
| 39 | if ANIMATORSK then | |
| 40 | ANIMATORSK:Destroy() | |
| 41 | local ROOT = CHARACTER.HumanoidRootPart | |
| 42 | ROOT.Anchored = false | |
| 43 | --[[ | |
| 44 | local RIGHTARM = CHARACTER["Right Arm"] | |
| 45 | RIGHTARM.BrickColor = BrickColor.new("Bright yellow")
| |
| 46 | local LEFTARM = CHARACTER["Left Arm"] | |
| 47 | LEFTARM.BrickColor = BrickColor.new("Bright yellow")
| |
| 48 | local RIGHTLEG = CHARACTER["Right Leg"] | |
| 49 | RIGHTLEG.BrickColor = BrickColor.new("Bright green")
| |
| 50 | local LEFTLEG = CHARACTER["Left Leg"] | |
| 51 | LEFTLEG.BrickColor = BrickColor.new("Bright green")
| |
| 52 | CHARACTER.Head.BrickColor = BrickColor.new("Bright yellow")
| |
| 53 | ]]-- | |
| 54 | ||
| 55 | for _,v in pairs (CHARACTER.Torso:children()) do | |
| 56 | if v:IsA("Motor6D") then
| |
| 57 | v.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
| 58 | end | |
| 59 | end | |
| 60 | ||
| 61 | TORSO = CHARACTER.Torso | |
| 62 | ||
| 63 | RootJoint = ROOT["RootJoint"] | |
| 64 | Neck = TORSO["Neck"] | |
| 65 | RightShoulder = TORSO["Right Shoulder"] | |
| 66 | LeftShoulder = TORSO["Left Shoulder"] | |
| 67 | RightHip = TORSO["Right Hip"] | |
| 68 | LeftHip = TORSO["Left Hip"] | |
| 69 | local BODY = {}
| |
| 70 | local astupchair = Instance.new("Part",CHARACTER)
| |
| 71 | astupchair.Name = "Wheelchair" | |
| 72 | astupchair.Transparency = 1 | |
| 73 | local CHAIR = CHARACTER.Wheelchair | |
| 74 | for index, CHILD in pairs(CHARACTER:GetDescendants()) do | |
| 75 | if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
| |
| 76 | table.insert(BODY,CHILD) | |
| 77 | end | |
| 78 | end | |
| 79 | local ATTACKING = false | |
| 80 | if script:FindFirstChild("Color") then
| |
| 81 | script.Color.Parent = game.Lighting | |
| 82 | end | |
| 83 | local HIT = false | |
| 84 | local MUSIC = Instance.new("Sound",TORSO)
| |
| 85 | local DEAD = false | |
| 86 | MUSIC:Play() | |
| 87 | local CLUBSMESH = 2761335666 | |
| 88 | local DIAMONDMESH = 1254392112 | |
| 89 | local SPADEMESH = 2760895053 | |
| 90 | local HEARTMESH = 105992239 --VT(3.5,3.5,3.5) | |
| 91 | local SCYTHEMESH = 455516381 | |
| 92 | local SINE = 0 | |
| 93 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 94 | end | |
| 95 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 96 | ArtificialHB.Name = "ArtificialHB" | |
| 97 | ||
| 98 | script:WaitForChild("ArtificialHB")
| |
| 99 | ||
| 100 | frame = 1/60 | |
| 101 | tf = 0 | |
| 102 | allowframeloss = false | |
| 103 | tossremainder = false | |
| 104 | lastframe = tick() | |
| 105 | script.ArtificialHB:Fire() | |
| 106 | ||
| 107 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 108 | tf = tf + s | |
| 109 | if tf >= frame then | |
| 110 | if allowframeloss then | |
| 111 | script.ArtificialHB:Fire() | |
| 112 | lastframe = tick() | |
| 113 | else | |
| 114 | for i = 1, math.floor(tf / frame) do | |
| 115 | script.ArtificialHB:Fire() | |
| 116 | end | |
| 117 | lastframe = tick() | |
| 118 | end | |
| 119 | if tossremainder then | |
| 120 | tf = 0 | |
| 121 | else | |
| 122 | tf = tf - frame * math.floor(tf / frame) | |
| 123 | end | |
| 124 | end | |
| 125 | end) | |
| 126 | ||
| 127 | function PositiveAngle(NUMBER) | |
| 128 | if NUMBER >= 0 then | |
| 129 | NUMBER = 0 | |
| 130 | end | |
| 131 | return NUMBER | |
| 132 | end | |
| 133 | ||
| 134 | function NegativeAngle(NUMBER) | |
| 135 | if NUMBER <= 0 then | |
| 136 | NUMBER = 0 | |
| 137 | end | |
| 138 | return NUMBER | |
| 139 | end | |
| 140 | ||
| 141 | function Swait(NUMBER) | |
| 142 | if NUMBER == 0 or NUMBER == nil then | |
| 143 | ArtificialHB.Event:wait() | |
| 144 | else | |
| 145 | for i = 1, NUMBER do | |
| 146 | ArtificialHB.Event:wait() | |
| 147 | end | |
| 148 | end | |
| 149 | end | |
| 150 | ||
| 151 | DEAD = false | |
| 152 | SINE = 0 | |
| 153 | TORSOROT = 0 | |
| 154 | HIT = false | |
| 155 | ||
| 156 | function Clerp(a, b, t) | |
| 157 | return a:lerp(b, t) | |
| 158 | end | |
| 159 | ||
| 160 | ATTACKING = false | |
| 161 | ||
| 162 | function ClerpBody(TABLE,PRIORITY) | |
| 163 | if PRIORITY == "Attack" or ATTACKING == false then | |
| 164 | RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35) | |
| 165 | if HIT == false then | |
| 166 | Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35) | |
| 167 | end | |
| 168 | RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35) | |
| 169 | LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35) | |
| 170 | RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35) | |
| 171 | LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35) | |
| 172 | end | |
| 173 | end | |
| 174 | ||
| 175 | RootJoint.C0 = RootJoint.C0 * CFrame.Angles(RAD(-90), RAD(0), RAD(180)) | |
| 176 | ||
| 177 | local ROOT = CHARACTER.HumanoidRootPart | |
| 178 | HUMANOID = CHARACTER.Humanoid | |
| 179 | local BODY = {}
| |
| 180 | local astupchair = Instance.new("Part",CHARACTER)
| |
| 181 | astupchair.Name = "Wheelchair" | |
| 182 | astupchair.Transparency = 1 | |
| 183 | local CHAIR = CHARACTER.Wheelchair | |
| 184 | for index, CHILD in pairs(CHARACTER:GetDescendants()) do | |
| 185 | if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR or CHILD.Name == "Handle" then
| |
| 186 | table.insert(BODY,CHILD) | |
| 187 | end | |
| 188 | end | |
| 189 | ||
| 190 | local CLUBSMESH = 2761335666 | |
| 191 | local DIAMONDMESH = 1254392112 | |
| 192 | local SPADEMESH = 2760895053 | |
| 193 | local HEARTMESH = 105992239 --VT(3.5,3.5,3.5) | |
| 194 | local SCYTHEMESH = 455516381 | |
| 195 | ||
| 196 | function Transparent(CY) | |
| 197 | for E = 1, #BODY do | |
| 198 | if BODY[E].ClassName ~= "Beam" then | |
| 199 | BODY[E].Transparency = CY | |
| 200 | else | |
| 201 | BODY[E].Transparency = NumberSequence.new(CY) | |
| 202 | end | |
| 203 | end | |
| 204 | end | |
| 205 | ||
| 206 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 207 | local NEWMESH = IT(MESH) | |
| 208 | if MESH == "SpecialMesh" then | |
| 209 | NEWMESH.MeshType = MESHTYPE | |
| 210 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 211 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 212 | end | |
| 213 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 214 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 215 | end | |
| 216 | end | |
| 217 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 218 | NEWMESH.Scale = SCALE | |
| 219 | NEWMESH.Parent = PARENT | |
| 220 | return NEWMESH | |
| 221 | end | |
| 222 | ||
| 223 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 224 | local NEWPART = IT("Part")
| |
| 225 | NEWPART.formFactor = FORMFACTOR | |
| 226 | NEWPART.Reflectance = REFLECTANCE | |
| 227 | NEWPART.Transparency = TRANSPARENCY | |
| 228 | NEWPART.CanCollide = false | |
| 229 | NEWPART.Locked = true | |
| 230 | NEWPART.Anchored = true | |
| 231 | if ANCHOR == false then | |
| 232 | NEWPART.Anchored = false | |
| 233 | end | |
| 234 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 235 | NEWPART.Name = NAME | |
| 236 | NEWPART.Size = SIZE | |
| 237 | NEWPART.Position = TORSO.Position | |
| 238 | NEWPART.Material = MATERIAL | |
| 239 | NEWPART:BreakJoints() | |
| 240 | NEWPART.Parent = PARENT | |
| 241 | return NEWPART | |
| 242 | end | |
| 243 | ||
| 244 | local S = IT("Sound")
| |
| 245 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 246 | local NEWSOUND = nil | |
| 247 | coroutine.resume(coroutine.create(function() | |
| 248 | NEWSOUND = S:Clone() | |
| 249 | NEWSOUND.Parent = PARENT | |
| 250 | NEWSOUND.Volume = VOLUME | |
| 251 | NEWSOUND.Pitch = PITCH | |
| 252 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 253 | NEWSOUND:play() | |
| 254 | if DOESLOOP == true then | |
| 255 | NEWSOUND.Looped = true | |
| 256 | else | |
| 257 | repeat wait(1) until NEWSOUND.Playing == false | |
| 258 | NEWSOUND:remove() | |
| 259 | end | |
| 260 | end)) | |
| 261 | return NEWSOUND | |
| 262 | end | |
| 263 | ||
| 264 | function sandbox(var,func) | |
| 265 | local env = getfenv(func) | |
| 266 | local newenv = setmetatable({},{
| |
| 267 | __index = function(self,k) | |
| 268 | if k=="script" then | |
| 269 | return var | |
| 270 | else | |
| 271 | return env[k] | |
| 272 | end | |
| 273 | end, | |
| 274 | }) | |
| 275 | setfenv(func,newenv) | |
| 276 | return func | |
| 277 | end | |
| 278 | cors = {}
| |
| 279 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 280 | Sound0 = Instance.new("Sound")
| |
| 281 | Sound1 = Instance.new("Sound")
| |
| 282 | Sound2 = Instance.new("Sound")
| |
| 283 | Sound3 = Instance.new("Sound")
| |
| 284 | Sound4 = Instance.new("Sound")
| |
| 285 | Sound5 = Instance.new("Sound")
| |
| 286 | Sound6 = Instance.new("Sound")
| |
| 287 | Sound7 = Instance.new("Sound")
| |
| 288 | Sound8 = Instance.new("Sound")
| |
| 289 | Sound9 = Instance.new("Sound")
| |
| 290 | Sound10 = Instance.new("Sound")
| |
| 291 | Sound0.Name = "ByeBye" | |
| 292 | Sound0.Parent = mas | |
| 293 | Sound0.MaxDistance = 300 | |
| 294 | Sound0.EmitterSize = 35 | |
| 295 | Sound0.MinDistance = 35 | |
| 296 | Sound0.SoundId = "rbxassetid://2545211516" | |
| 297 | Sound0.Volume = 5 | |
| 298 | Sound1.Name = "ChaosChaos" | |
| 299 | Sound1.Parent = mas | |
| 300 | Sound1.MaxDistance = 300 | |
| 301 | Sound1.EmitterSize = 35 | |
| 302 | Sound1.MinDistance = 35 | |
| 303 | Sound1.SoundId = "rbxassetid://2545008459" | |
| 304 | Sound1.Volume = 5 | |
| 305 | Sound2.Name = "Chuckle" | |
| 306 | Sound2.Parent = mas | |
| 307 | Sound2.MaxDistance = 300 | |
| 308 | Sound2.EmitterSize = 35 | |
| 309 | Sound2.MinDistance = 35 | |
| 310 | Sound2.SoundId = "rbxassetid://2545010175" | |
| 311 | Sound2.Volume = 5 | |
| 312 | Sound3.Name = "Deathed" | |
| 313 | Sound3.Parent = mas | |
| 314 | Sound3.MaxDistance = 300 | |
| 315 | Sound3.EmitterSize = 35 | |
| 316 | Sound3.MinDistance = 35 | |
| 317 | Sound3.SoundId = "rbxassetid://2637401925" | |
| 318 | Sound3.Volume = 2 | |
| 319 | Sound4.Name = "Ha1" | |
| 320 | Sound4.Parent = mas | |
| 321 | Sound4.MaxDistance = 300 | |
| 322 | Sound4.EmitterSize = 35 | |
| 323 | Sound4.MinDistance = 35 | |
| 324 | Sound4.SoundId = "rbxassetid://2606661976" | |
| 325 | Sound4.Volume = 5 | |
| 326 | Sound5.Name = "Ha2" | |
| 327 | Sound5.Parent = mas | |
| 328 | Sound5.MaxDistance = 300 | |
| 329 | Sound5.EmitterSize = 35 | |
| 330 | Sound5.MinDistance = 35 | |
| 331 | Sound5.SoundId = "rbxassetid://2606662454" | |
| 332 | Sound5.Volume = 5 | |
| 333 | Sound6.Name = "Laugh" | |
| 334 | Sound6.Parent = mas | |
| 335 | Sound6.MaxDistance = 300 | |
| 336 | Sound6.EmitterSize = 35 | |
| 337 | Sound6.MinDistance = 35 | |
| 338 | Sound6.SoundId = "rbxassetid://2545211765" | |
| 339 | Sound6.Volume = 5 | |
| 340 | Sound7.Name = "MeDoAnything" | |
| 341 | Sound7.Parent = mas | |
| 342 | Sound7.MaxDistance = 300 | |
| 343 | Sound7.EmitterSize = 35 | |
| 344 | Sound7.MinDistance = 35 | |
| 345 | Sound7.SoundId = "rbxassetid://2544975373" | |
| 346 | Sound7.Volume = 5 | |
| 347 | Sound8.Name = "Metamorph" | |
| 348 | Sound8.Parent = mas | |
| 349 | Sound8.MaxDistance = 300 | |
| 350 | Sound8.EmitterSize = 35 | |
| 351 | Sound8.MinDistance = 35 | |
| 352 | Sound8.SoundId = "rbxassetid://2545011398" | |
| 353 | Sound8.Volume = 5 | |
| 354 | Sound9.Name = "Neo" | |
| 355 | Sound9.Parent = mas | |
| 356 | Sound9.MaxDistance = 300 | |
| 357 | Sound9.EmitterSize = 35 | |
| 358 | Sound9.MinDistance = 35 | |
| 359 | Sound9.SoundId = "rbxassetid://2545018472" | |
| 360 | Sound9.Volume = 5 | |
| 361 | Sound10.Name = "OH" | |
| 362 | Sound10.Parent = mas | |
| 363 | Sound10.MaxDistance = 300 | |
| 364 | Sound10.EmitterSize = 35 | |
| 365 | Sound10.MinDistance = 35 | |
| 366 | Sound10.SoundId = "rbxassetid://2545012765" | |
| 367 | Sound10.Volume = 5 | |
| 368 | for i,v in pairs(mas:GetChildren()) do | |
| 369 | v.Parent = ROOT | |
| 370 | pcall(function() v:MakeJoints() end) | |
| 371 | end | |
| 372 | mas:Destroy() | |
| 373 | for i,v in pairs(cors) do | |
| 374 | spawn(function() | |
| 375 | pcall(v) | |
| 376 | end) | |
| 377 | end | |
| 378 | ||
| 379 | local HATS = Instance.new("Model", nil)
| |
| 380 | ||
| 381 | function GETHATS() | |
| 382 | for i,c in pairs (HATS:GetChildren()) do | |
| 383 | if c:IsA("Hat") or c:IsA("Accessory") then
| |
| 384 | c.Parent = CHARACTER | |
| 385 | end | |
| 386 | end | |
| 387 | end | |
| 388 | ||
| 389 | function RIDHATS() | |
| 390 | for i,c in pairs (CHARACTER:GetChildren()) do | |
| 391 | if c:IsA("Hat") or c:IsA("Accessory") then
| |
| 392 | c.Parent = HATS | |
| 393 | end | |
| 394 | end | |
| 395 | end | |
| 396 | ||
| 397 | function ChaosOrAnything() | |
| 398 | local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
| |
| 399 | PLAY[MRANDOM(1,2)]:Play() | |
| 400 | end | |
| 401 | ||
| 402 | Debris = game:GetService("Debris")
| |
| 403 | ||
| 404 | function OhOhOh(TARGET) | |
| 405 | ATTACKING = true | |
| 406 | - | local FOE = TARGET.Torso |
| 406 | + | |
| 407 | - | if FOE then |
| 407 | + | |
| 408 | repeat | |
| 409 | Swait() | |
| 410 | E = E + 1 | |
| 411 | ClerpBody({
| |
| 412 | CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 413 | CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0), | |
| 414 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0), | |
| 415 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0), | |
| 416 | CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 417 | CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 418 | },"Attack") | |
| 419 | until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false | |
| 420 | for i = 1, MRANDOM(3,5) do | |
| 421 | local TO = FOE.Position | |
| 422 | local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15) | |
| 423 | CHARACTER:SetPrimaryPartCFrame(MOVETO) | |
| 424 | Transparent(0) | |
| 425 | ROOT.OH:Play() | |
| 426 | for i = 1, 5 do | |
| 427 | ClerpBody({
| |
| 428 | CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 429 | CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0), | |
| 430 | CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0), | |
| 431 | CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0), | |
| 432 | CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 433 | CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 434 | },"Attack") | |
| 435 | end | |
| 436 | for i = 1, 3 do | |
| 437 | local ANGLE = (50-(25*i))/1.25 | |
| 438 | coroutine.resume(coroutine.create(function() | |
| 439 | local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0) | |
| 440 | local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false) | |
| 441 | CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
| |
| 442 | CLUB.CFrame = TOFIREFROM | |
| 443 | local GO = IT("BodyVelocity",CLUB)
| |
| 444 | GO.Velocity = CLUB.CFrame.lookVector*65 | |
| 445 | Debris:AddItem(CLUB,1) | |
| 446 | CLUB.Touched:Connect(function(HIT) | |
| 447 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
| |
| 448 | CLUB:Remove() | |
| 449 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 450 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
| |
| 451 | end | |
| 452 | end) | |
| 453 | end)) | |
| 454 | end | |
| 455 | for i = 1, 35 do | |
| 456 | Swait() | |
| 457 | ClerpBody({
| |
| 458 | CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 459 | CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0), | |
| 460 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0), | |
| 461 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0), | |
| 462 | CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 463 | CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 464 | },"Attack") | |
| 465 | Transparent(i/35) | |
| 466 | end | |
| 467 | local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 468 | if human and human.Health <= 0 or DEAD == true then | |
| 469 | break | |
| 470 | end | |
| 471 | end | |
| 472 | ATTACKING = false | |
| 473 | for i = 1, 25 do | |
| 474 | Swait() | |
| 475 | Transparent((25-i)/25) | |
| 476 | end | |
| 477 | Transparent(0) | |
| 478 | end | |
| 479 | function Diamonds(TARGET) | |
| 480 | ChaosOrAnything() | |
| 481 | ATTACKING = true | |
| 482 | coroutine.resume(coroutine.create(function() | |
| 483 | repeat | |
| 484 | - | local FOE = TARGET.Torso |
| 484 | + | |
| 485 | - | if FOE then |
| 485 | + | |
| 486 | ClerpBody({
| |
| 487 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 488 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 489 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 490 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 491 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 492 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 493 | },"Attack") | |
| 494 | until ATTACKING == false | |
| 495 | end)) | |
| 496 | for i = 1, MRANDOM(25,35) do | |
| 497 | coroutine.resume(coroutine.create(function() | |
| 498 | local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true) | |
| 499 | CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
| |
| 500 | DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5) | |
| 501 | for i = 1, 15 do | |
| 502 | Swait() | |
| 503 | DIAMOND.Transparency = (15-i)/15 | |
| 504 | DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35) | |
| 505 | end | |
| 506 | DIAMOND.Anchored = false | |
| 507 | DIAMOND.Transparency = 0 | |
| 508 | local GO = IT("BodyVelocity",DIAMOND)
| |
| 509 | GO.Velocity = DIAMOND.CFrame.lookVector*15 | |
| 510 | Debris:AddItem(DIAMOND,1) | |
| 511 | DIAMOND.Touched:Connect(function(HIT) | |
| 512 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
| |
| 513 | DIAMOND:Remove() | |
| 514 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 515 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
| |
| 516 | end | |
| 517 | end) | |
| 518 | for i = 1, 5 do | |
| 519 | Swait() | |
| 520 | GO.Velocity = DIAMOND.CFrame.lookVector*(15*i) | |
| 521 | end | |
| 522 | end)) | |
| 523 | local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 524 | if human and human.Health <= 0 or DEAD == true then | |
| 525 | break | |
| 526 | end | |
| 527 | Swait(7) | |
| 528 | end | |
| 529 | ATTACKING = false | |
| 530 | end | |
| 531 | function RingAround(TARGET) | |
| 532 | ATTACKING = true | |
| 533 | ChaosOrAnything() | |
| 534 | local E = 0 | |
| 535 | repeat | |
| 536 | Swait() | |
| 537 | E = E + 1 | |
| 538 | ClerpBody({
| |
| 539 | - | local FOE = TARGET.Torso |
| 539 | + | |
| 540 | - | if FOE then |
| 540 | + | |
| 541 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 542 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 543 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 544 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 545 | },"Attack") | |
| 546 | until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false | |
| 547 | coroutine.resume(coroutine.create(function() | |
| 548 | repeat | |
| 549 | Swait() | |
| 550 | CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2)) | |
| 551 | ClerpBody({
| |
| 552 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 553 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 554 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 555 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 556 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 557 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 558 | },"Attack") | |
| 559 | until ATTACKING == false | |
| 560 | end)) | |
| 561 | for i = 1, MRANDOM(2,4) do | |
| 562 | local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0) | |
| 563 | local SPADES = {}
| |
| 564 | for i = 1, 10 do | |
| 565 | local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true) | |
| 566 | CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
| |
| 567 | SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35) | |
| 568 | SPADE.Touched:Connect(function(HIT) | |
| 569 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
| |
| 570 | SPADE:Remove() | |
| 571 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 572 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
| |
| 573 | end | |
| 574 | end) | |
| 575 | table.insert(SPADES,SPADE) | |
| 576 | end | |
| 577 | for i = 1, 25 do | |
| 578 | for E = 1, #SPADES do | |
| 579 | SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5) | |
| 580 | SPADES[E].Transparency = (10-i)/9.5 | |
| 581 | end | |
| 582 | Swait() | |
| 583 | end | |
| 584 | wait(0.2) | |
| 585 | for E = 1, #SPADES do | |
| 586 | coroutine.resume(coroutine.create(function() | |
| 587 | local SPADE = SPADES[E] | |
| 588 | for i = 1, 15 do | |
| 589 | SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15) | |
| 590 | Swait() | |
| 591 | end | |
| 592 | SPADE.Anchored = false | |
| 593 | local GO = IT("BodyVelocity",SPADE)
| |
| 594 | GO.Velocity = SPADE.CFrame.lookVector*5 | |
| 595 | GO.MaxForce = GO.MaxForce * 100 | |
| 596 | Debris:AddItem(SPADE,1) | |
| 597 | SPADE.Touched:Connect(function(HIT) | |
| 598 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
| |
| 599 | SPADE:Remove() | |
| 600 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 601 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
| |
| 602 | end | |
| 603 | end) | |
| 604 | for i = 1, 15 do | |
| 605 | Swait() | |
| 606 | GO.Velocity = SPADE.CFrame.lookVector*(5*i) | |
| 607 | end | |
| 608 | end)) | |
| 609 | Swait(5) | |
| 610 | end | |
| 611 | local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 612 | if human and human.Health <= 0 or DEAD == true then | |
| 613 | break | |
| 614 | end | |
| 615 | end | |
| 616 | wait(0.5) | |
| 617 | ATTACKING = false | |
| 618 | end | |
| 619 | function HeartsGoesOut(TARGET) | |
| 620 | ChaosOrAnything() | |
| 621 | ATTACKING = true | |
| 622 | coroutine.resume(coroutine.create(function() | |
| 623 | repeat | |
| 624 | Swait() | |
| 625 | CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2)) | |
| 626 | ClerpBody({
| |
| 627 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 628 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 629 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 630 | - | local FOE = TARGET.Torso |
| 630 | + | |
| 631 | - | if FOE then |
| 631 | + | |
| 632 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 633 | },"Attack") | |
| 634 | until ATTACKING == false | |
| 635 | end)) | |
| 636 | for i = 1, MRANDOM(5,7) do | |
| 637 | local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35) | |
| 638 | SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0)) | |
| 639 | coroutine.resume(coroutine.create(function() | |
| 640 | local HEARTS = {}
| |
| 641 | for i = 1, 4 do | |
| 642 | local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true) | |
| 643 | CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
| |
| 644 | HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0) | |
| 645 | HEART.Touched:Connect(function(HIT) | |
| 646 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
| |
| 647 | HEART:Remove() | |
| 648 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 649 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
| |
| 650 | end | |
| 651 | end) | |
| 652 | table.insert(HEARTS,HEART) | |
| 653 | end | |
| 654 | for i = 1, 10 do | |
| 655 | Swait() | |
| 656 | for E = 1, #HEARTS do | |
| 657 | HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10) | |
| 658 | HEARTS[E].Transparency = (10-i)/9.5 | |
| 659 | end | |
| 660 | end | |
| 661 | local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude | |
| 662 | for i = 1, 100 do | |
| 663 | Swait() | |
| 664 | SPAWN = SPAWN*CF(0,0,-1) | |
| 665 | for E = 1, #HEARTS do | |
| 666 | HEARTS[E].Transparency = 0 | |
| 667 | HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST) | |
| 668 | end | |
| 669 | end | |
| 670 | for E = 1, #HEARTS do | |
| 671 | HEARTS[E]:Destroy() | |
| 672 | end | |
| 673 | end)) | |
| 674 | Swait(35) | |
| 675 | local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 676 | if human and human.Health <= 0 or DEAD == true then | |
| 677 | break | |
| 678 | end | |
| 679 | end | |
| 680 | wait(0.5) | |
| 681 | ATTACKING = false | |
| 682 | end | |
| 683 | ||
| 684 | function Meta(TARGET) | |
| 685 | --mas.Sound8:Play() | |
| 686 | ATTACKING = true | |
| 687 | local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true) | |
| 688 | CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
| |
| 689 | SCYTHE.CFrame = TORSO.CFrame | |
| 690 | for i = 1, 3 do | |
| 691 | for i = 1, 15 do | |
| 692 | Swait() | |
| 693 | ClerpBody({
| |
| 694 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 695 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 696 | - | function Meta(TARGET) |
| 696 | + | |
| 697 | - | local FOE = TARGET.Torso |
| 697 | + | |
| 698 | - | if FOE then |
| 698 | + | |
| 699 | - | ROOT.Metamorph:Play() |
| 699 | + | |
| 700 | },"Attack") | |
| 701 | Transparent(i/15) | |
| 702 | SCYTHE.Transparency = (15-i)/15 | |
| 703 | SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0) | |
| 704 | end | |
| 705 | for i = 1, 15 do | |
| 706 | Swait() | |
| 707 | ClerpBody({
| |
| 708 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 709 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 710 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 711 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 712 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 713 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 714 | },"Attack") | |
| 715 | Transparent((15-i)/15) | |
| 716 | SCYTHE.Transparency = i/15 | |
| 717 | SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0) | |
| 718 | end | |
| 719 | end | |
| 720 | for i = 1, 15 do | |
| 721 | Swait() | |
| 722 | ClerpBody({
| |
| 723 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 724 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 725 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 726 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 727 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 728 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 729 | },"Attack") | |
| 730 | Transparent(i/15) | |
| 731 | SCYTHE.Transparency = (15-i)/15 | |
| 732 | SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0) | |
| 733 | end | |
| 734 | Transparent(1) | |
| 735 | SCYTHE.Transparency = 0 | |
| 736 | local SCYTHES = {SCYTHE}
| |
| 737 | for i = 1, 3 do | |
| 738 | local COPY = SCYTHE:Clone() | |
| 739 | COPY.Parent = workspace | |
| 740 | COPY.CFrame = SCYTHE.CFrame | |
| 741 | table.insert(SCYTHES,COPY) | |
| 742 | end | |
| 743 | for E = 1, #SCYTHES do | |
| 744 | local DELAY = false | |
| 745 | SCYTHES[E].Touched:Connect(function(HIT) | |
| 746 | if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
| |
| 747 | HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
| |
| 748 | CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
| |
| 749 | DELAY = true | |
| 750 | wait(1) | |
| 751 | DELAY = false | |
| 752 | end | |
| 753 | end) | |
| 754 | end | |
| 755 | local NOW = ROOT.CFrame | |
| 756 | CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0)) | |
| 757 | RIDHATS() | |
| 758 | HUMANOID.Parent = nil | |
| 759 | local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
| |
| 760 | for i = 1, 750 do | |
| 761 | Swait() | |
| 762 | for E = 1, #SCYTHES do | |
| 763 | SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,CF(FOE.Position.X,Y,FOE.Position.Z)*ANGLES(0,RAD((360/4*E)+SINE),0)*CF(0,0,45*SIN(i/50)),0.1).p)*ANGLES(0,RAD(SINE*5),0) | |
| 764 | end | |
| 765 | if human and human.Health <= 0 or DEAD == true then | |
| 766 | break | |
| 767 | end | |
| 768 | end | |
| 769 | for i = 1, 25 do | |
| 770 | for E = 1, #SCYTHES do | |
| 771 | SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0) | |
| 772 | end | |
| 773 | - | local Y = FOE.Position.Y |
| 773 | + | |
| 774 | end | |
| 775 | CHARACTER:SetPrimaryPartCFrame(NOW) | |
| 776 | HUMANOID.Parent = CHARACTER | |
| 777 | for i = 1, 15 do | |
| 778 | Swait() | |
| 779 | ClerpBody({
| |
| 780 | CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)), | |
| 781 | CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0), | |
| 782 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0), | |
| 783 | CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0), | |
| 784 | CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 785 | CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5), | |
| 786 | },"Attack") | |
| 787 | Transparent((15-i)/15) | |
| 788 | for E = 1, #SCYTHES do | |
| 789 | SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0) | |
| 790 | SCYTHES[E].Transparency = i/15 | |
| 791 | end | |
| 792 | end | |
| 793 | for E = 1, #SCYTHES do | |
| 794 | SCYTHES[E]:Remove() | |
| 795 | end | |
| 796 | GETHATS() | |
| 797 | ATTACKING = false | |
| 798 | end | |
| 799 | ||
| 800 | function findNearestTorso(pos) | |
| 801 | local list = game.Workspace:children() | |
| 802 | local torso = nil | |
| 803 | local dist = 10000 | |
| 804 | local temp = nil | |
| 805 | local human = nil | |
| 806 | local temp2 = nil | |
| 807 | for x = 1, #list do | |
| 808 | temp2 = list[x] | |
| 809 | if (temp2.className == "Model") and (temp2 ~= script.Parent) then | |
| 810 | temp = temp2:findFirstChild("HumanoidRootPart")
| |
| 811 | human = temp2:findFirstChild("Humanoid")
| |
| 812 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 813 | if (temp.Position - pos).magnitude < dist then | |
| 814 | torso = temp | |
| 815 | dist = (temp.Position - pos).magnitude | |
| 816 | end | |
| 817 | end | |
| 818 | end | |
| 819 | end | |
| 820 | return torso | |
| 821 | end | |
| 822 | ||
| 823 | MOUSE = plr:GetMouse() | |
| 824 | MOUSE.KeyDown:connect(function(KEY) | |
| 825 | if KEY == "c" and ATTACKING == false then | |
| 826 | Meta(FOE) | |
| 827 | end | |
| 828 | if KEY == "x" and ATTACKING == false then | |
| 829 | local FOE = findNearestTorso(root.Position).Parent | |
| 830 | if FOE then | |
| 831 | RingAround(FOE) | |
| 832 | end | |
| 833 | end | |
| 834 | if KEY == "v" and ATTACKING == false then | |
| 835 | local FOE = findNearestTorso(root.Position).Parent | |
| 836 | if FOE then | |
| 837 | HeartsGoesOut(FOE) | |
| 838 | end | |
| 839 | end | |
| 840 | if KEY == "z" and ATTACKING == false then | |
| 841 | local FOE = findNearestTorso(root.Position).Parent | |
| 842 | if FOE then | |
| 843 | OhOhOh(FOE) | |
| 844 | end | |
| 845 | end | |
| 846 | if KEY == "v" and ATTACKING == false then | |
| 847 | local FOE = findNearestTorso(root.Position).Parent | |
| 848 | if FOE then | |
| 849 | Diamonds(FOE) | |
| 850 | end | |
| 851 | end | |
| 852 | end) | |
| 853 | ||
| 854 | coroutine.resume(coroutine.create(function() | |
| 855 | game:GetService("RunService").Heartbeat:connect(function()
| |
| 856 | local DEFAULTS = {
| |
| 857 | CF(0,0,0), | |
| 858 | CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0), | |
| 859 | CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0), | |
| 860 | CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0), | |
| 861 | CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0), | |
| 862 | CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0), | |
| 863 | } | |
| 864 | SINE = SINE + 1 | |
| 865 | end) | |
| 866 | while true do | |
| 867 | TORSOROT = 35 | |
| 868 | for i = 1, 5 do | |
| 869 | ClerpBody({
| |
| 870 | CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)), | |
| 871 | CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0), | |
| 872 | CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0), | |
| 873 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0), | |
| 874 | CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1), | |
| 875 | CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2), | |
| 876 | },nil) | |
| 877 | end | |
| 878 | for i = 1, 15 do | |
| 879 | Swait() | |
| 880 | ClerpBody({
| |
| 881 | CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)), | |
| 882 | CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0), | |
| 883 | CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0), | |
| 884 | CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0), | |
| 885 | CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5), | |
| 886 | CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2), | |
| 887 | },nil) | |
| 888 | if DEAD == true then | |
| 889 | break | |
| 890 | end | |
| 891 | end | |
| 892 | if DEAD == true then | |
| 893 | break | |
| 894 | end | |
| 895 | TORSOROT = -35 | |
| 896 | for i = 1, 5 do | |
| 897 | ClerpBody({
| |
| 898 | CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)), | |
| 899 | CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0), | |
| 900 | CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0), | |
| 901 | CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0), | |
| 902 | CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2), | |
| 903 | CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1), | |
| 904 | },nil) | |
| 905 | end | |
| 906 | for i = 1, 15 do | |
| 907 | Swait() | |
| 908 | ClerpBody({
| |
| 909 | CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)), | |
| 910 | CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0), | |
| 911 | CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0), | |
| 912 | CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0), | |
| 913 | CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2), | |
| 914 | CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5), | |
| 915 | },nil) | |
| 916 | if DEAD == true then | |
| 917 | break | |
| 918 | end | |
| 919 | end | |
| 920 | if DEAD == true then | |
| 921 | break | |
| 922 | end | |
| 923 | end | |
| 924 | end)) | |
| 925 | ||
| 926 | coroutine.resume(coroutine.create(function() | |
| 927 | while true do | |
| 928 | Swait() | |
| 929 | if ATTACKING == false then | |
| 930 | ROOT.Anchored = false | |
| 931 | else | |
| 932 | ROOT.Anchored = true | |
| 933 | end | |
| 934 | end | |
| 935 | end)) |