Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Smooth(part)
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.RightSurface = "Smooth"
- part.LeftSurface = "Smooth"
- part.FrontSurface = "Smooth"
- part.BackSurface = "Smooth"
- end
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- plr = owner
- char = plr.Character
- tors = char.Torso
- root = char.HumanoidRootPart
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- CHARACTER = char
- local ANIMATORSK = CHARACTER:FindFirstChild("Animate")
- if ANIMATORSK then
- ANIMATORSK:Destroy()
- local ROOT = CHARACTER.HumanoidRootPart
- ROOT.Anchored = false
- --[[
- local RIGHTARM = CHARACTER["Right Arm"]
- RIGHTARM.BrickColor = BrickColor.new("Bright yellow")
- local LEFTARM = CHARACTER["Left Arm"]
- LEFTARM.BrickColor = BrickColor.new("Bright yellow")
- local RIGHTLEG = CHARACTER["Right Leg"]
- RIGHTLEG.BrickColor = BrickColor.new("Bright green")
- local LEFTLEG = CHARACTER["Left Leg"]
- LEFTLEG.BrickColor = BrickColor.new("Bright green")
- CHARACTER.Head.BrickColor = BrickColor.new("Bright yellow")
- ]]--
- for _,v in pairs (CHARACTER.Torso:children()) do
- if v:IsA("Motor6D") then
- v.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- end
- end
- TORSO = CHARACTER.Torso
- RootJoint = ROOT["RootJoint"]
- Neck = TORSO["Neck"]
- RightShoulder = TORSO["Right Shoulder"]
- LeftShoulder = TORSO["Left Shoulder"]
- RightHip = TORSO["Right Hip"]
- LeftHip = TORSO["Left Hip"]
- local BODY = {}
- local astupchair = Instance.new("Part",CHARACTER)
- astupchair.Name = "Wheelchair"
- astupchair.Transparency = 1
- local CHAIR = CHARACTER.Wheelchair
- for index, CHILD in pairs(CHARACTER:GetDescendants()) do
- if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
- table.insert(BODY,CHILD)
- end
- end
- local ATTACKING = false
- if script:FindFirstChild("Color") then
- script.Color.Parent = game.Lighting
- end
- local HIT = false
- local MUSIC = Instance.new("Sound",TORSO)
- local DEAD = false
- MUSIC:Play()
- local CLUBSMESH = 2761335666
- local DIAMONDMESH = 1254392112
- local SPADEMESH = 2760895053
- local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
- local SCYTHEMESH = 455516381
- local SINE = 0
- local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1/60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- DEAD = false
- SINE = 0
- TORSOROT = 0
- HIT = false
- function Clerp(a, b, t)
- return a:lerp(b, t)
- end
- ATTACKING = false
- function ClerpBody(TABLE,PRIORITY)
- if PRIORITY == "Attack" or ATTACKING == false then
- RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
- if HIT == false then
- Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
- end
- RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
- LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
- RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
- LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
- end
- end
- RootJoint.C0 = RootJoint.C0 * CFrame.Angles(RAD(-90), RAD(0), RAD(180))
- local ROOT = CHARACTER.HumanoidRootPart
- HUMANOID = CHARACTER.Humanoid
- local BODY = {}
- local astupchair = Instance.new("Part",CHARACTER)
- astupchair.Name = "Wheelchair"
- astupchair.Transparency = 1
- local CHAIR = CHARACTER.Wheelchair
- for index, CHILD in pairs(CHARACTER:GetDescendants()) do
- if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR or CHILD.Name == "Handle" then
- table.insert(BODY,CHILD)
- end
- end
- local CLUBSMESH = 2761335666
- local DIAMONDMESH = 1254392112
- local SPADEMESH = 2760895053
- local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
- local SCYTHEMESH = 455516381
- function Transparent(CY)
- for E = 1, #BODY do
- if BODY[E].ClassName ~= "Beam" then
- BODY[E].Transparency = CY
- else
- BODY[E].Transparency = NumberSequence.new(CY)
- end
- end
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = TORSO.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Sound0 = Instance.new("Sound")
- Sound1 = Instance.new("Sound")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Sound0.Name = "ByeBye"
- Sound0.Parent = mas
- Sound0.MaxDistance = 300
- Sound0.EmitterSize = 35
- Sound0.MinDistance = 35
- Sound0.SoundId = "rbxassetid://2545211516"
- Sound0.Volume = 5
- Sound1.Name = "ChaosChaos"
- Sound1.Parent = mas
- Sound1.MaxDistance = 300
- Sound1.EmitterSize = 35
- Sound1.MinDistance = 35
- Sound1.SoundId = "rbxassetid://2545008459"
- Sound1.Volume = 5
- Sound2.Name = "Chuckle"
- Sound2.Parent = mas
- Sound2.MaxDistance = 300
- Sound2.EmitterSize = 35
- Sound2.MinDistance = 35
- Sound2.SoundId = "rbxassetid://2545010175"
- Sound2.Volume = 5
- Sound3.Name = "Deathed"
- Sound3.Parent = mas
- Sound3.MaxDistance = 300
- Sound3.EmitterSize = 35
- Sound3.MinDistance = 35
- Sound3.SoundId = "rbxassetid://2637401925"
- Sound3.Volume = 2
- Sound4.Name = "Ha1"
- Sound4.Parent = mas
- Sound4.MaxDistance = 300
- Sound4.EmitterSize = 35
- Sound4.MinDistance = 35
- Sound4.SoundId = "rbxassetid://2606661976"
- Sound4.Volume = 5
- Sound5.Name = "Ha2"
- Sound5.Parent = mas
- Sound5.MaxDistance = 300
- Sound5.EmitterSize = 35
- Sound5.MinDistance = 35
- Sound5.SoundId = "rbxassetid://2606662454"
- Sound5.Volume = 5
- Sound6.Name = "Laugh"
- Sound6.Parent = mas
- Sound6.MaxDistance = 300
- Sound6.EmitterSize = 35
- Sound6.MinDistance = 35
- Sound6.SoundId = "rbxassetid://2545211765"
- Sound6.Volume = 5
- Sound7.Name = "MeDoAnything"
- Sound7.Parent = mas
- Sound7.MaxDistance = 300
- Sound7.EmitterSize = 35
- Sound7.MinDistance = 35
- Sound7.SoundId = "rbxassetid://2544975373"
- Sound7.Volume = 5
- Sound8.Name = "Metamorph"
- Sound8.Parent = mas
- Sound8.MaxDistance = 300
- Sound8.EmitterSize = 35
- Sound8.MinDistance = 35
- Sound8.SoundId = "rbxassetid://2545011398"
- Sound8.Volume = 5
- Sound9.Name = "Neo"
- Sound9.Parent = mas
- Sound9.MaxDistance = 300
- Sound9.EmitterSize = 35
- Sound9.MinDistance = 35
- Sound9.SoundId = "rbxassetid://2545018472"
- Sound9.Volume = 5
- Sound10.Name = "OH"
- Sound10.Parent = mas
- Sound10.MaxDistance = 300
- Sound10.EmitterSize = 35
- Sound10.MinDistance = 35
- Sound10.SoundId = "rbxassetid://2545012765"
- Sound10.Volume = 5
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = ROOT
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local HATS = Instance.new("Model", nil)
- function GETHATS()
- for i,c in pairs (HATS:GetChildren()) do
- if c:IsA("Hat") or c:IsA("Accessory") then
- c.Parent = CHARACTER
- end
- end
- end
- function RIDHATS()
- for i,c in pairs (CHARACTER:GetChildren()) do
- if c:IsA("Hat") or c:IsA("Accessory") then
- c.Parent = HATS
- end
- end
- end
- function ChaosOrAnything()
- local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
- PLAY[MRANDOM(1,2)]:Play()
- end
- Debris = game:GetService("Debris")
- function OhOhOh(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ATTACKING = true
- ChaosOrAnything()
- local E = 0
- repeat
- Swait()
- E = E + 1
- ClerpBody({
- CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
- for i = 1, MRANDOM(3,5) do
- local TO = FOE.Position
- local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
- CHARACTER:SetPrimaryPartCFrame(MOVETO)
- Transparent(0)
- ROOT.OH:Play()
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- end
- for i = 1, 3 do
- local ANGLE = (50-(25*i))/1.25
- coroutine.resume(coroutine.create(function()
- local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
- local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
- CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
- CLUB.CFrame = TOFIREFROM
- local GO = IT("BodyVelocity",CLUB)
- GO.Velocity = CLUB.CFrame.lookVector*65
- Debris:AddItem(CLUB,1)
- CLUB.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- CLUB:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
- end
- end)
- end))
- end
- for i = 1, 35 do
- Swait()
- ClerpBody({
- CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/35)
- end
- local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Health <= 0 or DEAD == true then
- break
- end
- end
- ATTACKING = false
- for i = 1, 25 do
- Swait()
- Transparent((25-i)/25)
- end
- Transparent(0)
- end
- end
- function Diamonds(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ChaosOrAnything()
- ATTACKING = true
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(25,35) do
- coroutine.resume(coroutine.create(function()
- local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
- CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
- DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
- for i = 1, 15 do
- Swait()
- DIAMOND.Transparency = (15-i)/15
- DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
- end
- DIAMOND.Anchored = false
- DIAMOND.Transparency = 0
- local GO = IT("BodyVelocity",DIAMOND)
- GO.Velocity = DIAMOND.CFrame.lookVector*15
- Debris:AddItem(DIAMOND,1)
- DIAMOND.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- DIAMOND:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
- end
- end)
- for i = 1, 5 do
- Swait()
- GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
- end
- end))
- local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Health <= 0 or DEAD == true then
- break
- end
- Swait(7)
- end
- ATTACKING = false
- end
- end
- function RingAround(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ATTACKING = true
- ChaosOrAnything()
- local E = 0
- repeat
- Swait()
- E = E + 1
- ClerpBody({
- CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(2,4) do
- local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
- local SPADES = {}
- for i = 1, 10 do
- local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
- CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
- SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
- SPADE.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- SPADE:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
- end
- end)
- table.insert(SPADES,SPADE)
- end
- for i = 1, 25 do
- for E = 1, #SPADES do
- SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
- SPADES[E].Transparency = (10-i)/9.5
- end
- Swait()
- end
- wait(0.2)
- for E = 1, #SPADES do
- coroutine.resume(coroutine.create(function()
- local SPADE = SPADES[E]
- for i = 1, 15 do
- SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
- Swait()
- end
- SPADE.Anchored = false
- local GO = IT("BodyVelocity",SPADE)
- GO.Velocity = SPADE.CFrame.lookVector*5
- GO.MaxForce = GO.MaxForce * 100
- Debris:AddItem(SPADE,1)
- SPADE.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- SPADE:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
- end
- end)
- for i = 1, 15 do
- Swait()
- GO.Velocity = SPADE.CFrame.lookVector*(5*i)
- end
- end))
- Swait(5)
- end
- local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Health <= 0 or DEAD == true then
- break
- end
- end
- wait(0.5)
- ATTACKING = false
- end
- end
- function HeartsGoesOut(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ChaosOrAnything()
- ATTACKING = true
- coroutine.resume(coroutine.create(function()
- repeat
- Swait()
- CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- until ATTACKING == false
- end))
- for i = 1, MRANDOM(5,7) do
- local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
- SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
- coroutine.resume(coroutine.create(function()
- local HEARTS = {}
- for i = 1, 4 do
- local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
- CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
- HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
- HEART.Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
- HEART:Remove()
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
- end
- end)
- table.insert(HEARTS,HEART)
- end
- for i = 1, 10 do
- Swait()
- for E = 1, #HEARTS do
- HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
- HEARTS[E].Transparency = (10-i)/9.5
- end
- end
- local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
- for i = 1, 100 do
- Swait()
- SPAWN = SPAWN*CF(0,0,-1)
- for E = 1, #HEARTS do
- HEARTS[E].Transparency = 0
- HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
- end
- end
- for E = 1, #HEARTS do
- HEARTS[E]:Destroy()
- end
- end))
- Swait(35)
- local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Health <= 0 or DEAD == true then
- break
- end
- end
- wait(0.5)
- ATTACKING = false
- end
- end
- function Meta(TARGET)
- local FOE = TARGET.Torso
- if FOE then
- ROOT.Metamorph:Play()
- ATTACKING = true
- local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
- CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
- SCYTHE.CFrame = TORSO.CFrame
- for i = 1, 3 do
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/15)
- SCYTHE.Transparency = (15-i)/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent((15-i)/15)
- SCYTHE.Transparency = i/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent(i/15)
- SCYTHE.Transparency = (15-i)/15
- SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
- end
- Transparent(1)
- SCYTHE.Transparency = 0
- local SCYTHES = {SCYTHE}
- for i = 1, 3 do
- local COPY = SCYTHE:Clone()
- COPY.Parent = workspace
- COPY.CFrame = SCYTHE.CFrame
- table.insert(SCYTHES,COPY)
- end
- for E = 1, #SCYTHES do
- local DELAY = false
- SCYTHES[E].Touched:Connect(function(HIT)
- if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
- HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
- CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
- DELAY = true
- wait(1)
- DELAY = false
- end
- end)
- end
- local NOW = ROOT.CFrame
- CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
- RIDHATS()
- HUMANOID.Parent = nil
- local Y = FOE.Position.Y
- local human = TARGET.Parent:FindFirstChildOfClass("Humanoid")
- for i = 1, 750 do
- Swait()
- for E = 1, #SCYTHES do
- 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)
- end
- if human and human.Health <= 0 or DEAD == true then
- break
- end
- end
- for i = 1, 25 do
- for E = 1, #SCYTHES do
- SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
- end
- Swait()
- end
- CHARACTER:SetPrimaryPartCFrame(NOW)
- HUMANOID.Parent = CHARACTER
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
- 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),
- 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),
- CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
- },"Attack")
- Transparent((15-i)/15)
- for E = 1, #SCYTHES do
- SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
- SCYTHES[E].Transparency = i/15
- end
- end
- for E = 1, #SCYTHES do
- SCYTHES[E]:Remove()
- end
- GETHATS()
- ATTACKING = false
- end
- end
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 10000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("HumanoidRootPart")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- MOUSE = plr:GetMouse()
- MOUSE.KeyDown:connect(function(KEY)
- if KEY == "c" and ATTACKING == false then
- local FOE = findNearestTorso(root.Position).Parent
- if FOE then
- Meta(FOE)
- end
- end
- if KEY == "x" and ATTACKING == false then
- local FOE = findNearestTorso(root.Position).Parent
- if FOE then
- RingAround(FOE)
- end
- end
- if KEY == "v" and ATTACKING == false then
- local FOE = findNearestTorso(root.Position).Parent
- if FOE then
- HeartsGoesOut(FOE)
- end
- end
- if KEY == "z" and ATTACKING == false then
- local FOE = findNearestTorso(root.Position).Parent
- if FOE then
- OhOhOh(FOE)
- end
- end
- if KEY == "v" and ATTACKING == false then
- local FOE = findNearestTorso(root.Position).Parent
- if FOE then
- Diamonds(FOE)
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- game:GetService("RunService").Heartbeat:connect(function()
- local DEFAULTS = {
- CF(0,0,0),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
- CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
- }
- SINE = SINE + 1
- end)
- while true do
- TORSOROT = 35
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
- CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
- CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
- },nil)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
- CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
- CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
- CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
- },nil)
- if DEAD == true then
- break
- end
- end
- if DEAD == true then
- break
- end
- TORSOROT = -35
- for i = 1, 5 do
- ClerpBody({
- CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
- CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
- CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
- },nil)
- end
- for i = 1, 15 do
- Swait()
- ClerpBody({
- CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
- CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
- CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
- CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
- CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
- CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
- },nil)
- if DEAD == true then
- break
- end
- end
- if DEAD == true then
- break
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- Swait()
- ATTACKING = false
- if ATTACKING == false then
- ROOT.Anchored = false
- else
- ROOT.Anchored = true
- end
- end
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement