Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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("FE Compatibility code by Mokiros")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
- --[[NIGHTOWLACE_WEAPONRY]]--
- wait(1 / 60)
- Effects = { }
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local char = Player.Character
- local mouse = Player:GetMouse()
- local m = Instance.new('Model', Character)
- m.Name = "WeaponModel"
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local equipped = false
- local attack = false
- local Anim = 'Idle'
- local idle = 0
- local attacktype = 1
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local FPS = 0
- local grabbed = false
- local cn = CFrame.new
- local mr = math.rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- Humanoid.Animator:Destroy()
- Character.Animate:Destroy()
- --[[Credits to SazErenos for his Artificial Heartbeat]]--
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 2, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Garamond"
- text.TextStrokeColor3 = Color3.new(128,128,128)
- text.Text = "Dragonborn"
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 1.5, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = false
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Garamond"
- text.TextStrokeColor3 = Color3.new(128,128,128)
- text.Text = "by bannaboy43"
- ---------------------shout---------------------------------------------------------
- local plr = game:GetService"Players".LocalPlayer;local mouse = plr:GetMouse()
- repeat wait() until plr.Character;local char = plr.Character;local hr = char:WaitForChild"HumanoidRootPart";local plrHum;repeat wait()plrHum = char:FindFirstChildWhichIsA"Humanoid" until plrHum~=nil;local keydown = false;local playing = false;rt = 0 ;m = Instance.new"Part";meshID = 'rbxassetid://1471350128' ;gc = game.Workspace.CurrentCamera;BLAST_FORCE = 2000
- local s;fire = function()local pos = hr.CFrame + hr.CFrame.lookVector *5 + Vector3.new(0,1.5,0)for i =1,1 do local m2 = m:Clone();local mesh = Instance.new("FileMesh")mesh.MeshId = 'rbxassetid://1471350128';mesh.Parent= m2;m2.Size = Vector3.new(5,5,.5);local bv = Instance.new'BodyVelocity';
- bv.MaxForce= Vector3.new(math.huge,math.huge,math.huge);m2.CFrame = pos;bv.Velocity = m2.CFrame.lookVector *180;m2.Locked = true;m2.CanCollide = false;m2.Anchored = false;bv.Parent = m2;m2.Parent = workspace;coroutine.resume(coroutine.create(function()for a =1,5 do m2.Size = Vector3.new(a*2,a*2,.5)mesh.Scale = Vector3.new(a*2,a*2,.5)wait();end;end));m2.Touched:connect(function(hit)
- if hit.Name ~= "Baseplate" and hit.Name ~="Base" then
- hit.Anchored = false;hit:BreakJoints()local blastForce = Instance.new('BodyForce', hit) blastForce.force = m2.CFrame.lookVector * BLAST_FORCE * hit:GetMass()
- game.Debris:AddItem(blastForce,.1)end;end)wait()game.Debris:AddItem(m2,2)end;--[[GETOUT OF ME CODE M8]]end;deb = function ()hr.Anchored = false;wait(rt)keydown = false end;mouse.KeyDown:connect(function(key)key = key:lower()if key == 't' and keydown == false then local m2 =m:Clone()s=nil;m2.Locked = true;m2.Size = Vector3.new(5,5,.5)keydown = true;while keydown == true do hr.Anchored = true
- hr.CFrame = CFrame.new(hr.Position,mouse.Hit.p)m2.Size = m2.Size + Vector3.new(.5,.5,0)
- m2.CFrame = hr.CFrame+ hr.CFrame.lookVector *2;s = m2.Size;wait()end;game.Debris:AddItem(m2,0.11)end;end)
- ku = function(key)key = key:lower()if key == 't' and keydown ~= nil then local s = Instance.new("Sound");s.SoundId = 'rbxassetid://149576324';s.Volume =4;s.Parent = workspace s:Play();wait(1)coroutine.resume(coroutine.create(fire))keydown = nil;deb();end;end;mouse.KeyUp:connect(ku)
- ----------------------Clothes-------------------------------
- --[Quicksilver edit by Bannaboy43 (only make edits cant stcipt ihml if this gets leaked tell people to send me scripts to make edits)
- wait(1 / 60)
- p = game.Players.LocalPlayer
- char = p.Character
- torso = char.Torso
- neck = char.Torso.Neck
- hum = char.Humanoid
- wait()
- hum.Health =hum.MaxHealth
- char.Head.face.Texture = "rbxassetid://166951215"
- z = Instance.new("Sound", char)
- z.SoundId = "rbxassetid://168474998" -- Put Music ID Here.
- z.Looped = true
- z.Volume = 2
- wait(.1)
- z:Play()
- Hat = Instance.new("Model")
- Hat.Parent = char
- Hat.Name = "Hat"
- rh = Instance.new("Part")
- rh.Parent = Hat
- rh.BrickColor = BrickColor.new("Brown")
- rh.Locked = true
- rh.CanCollide = false
- mesh = Instance.new("SpecialMesh")
- rh.formFactor = "Symmetric"
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://323386572"
- mesh.Parent = rh
- local weld = Instance.new("Weld")
- weld.Parent = rh
- weld.Part0 = rh
- weld.Part1 =char.Head
- weld.C0 = CFrame.new(0,.16,.35)*CFrame.Angles(0, 0, 0)
- mesh.Scale = Vector3.new(1,1,1)
- ----------------------------------------------------
- -------------Head---------------------------------
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
- Head = Instance.new("Part", char)
- Head.Size = Vector3.new(1,1,1)
- Headmesh = Instance.new("SpecialMesh", Head)
- Headmesh.MeshId = "rbxassetid://2264333"
- Headmesh.Scale = Vector3.new(0.417, 0.35, 0.36)
- Headmesh.TextureId = "rbxassetid://3770870"
- Head.Transparency = 0
- Head.CanCollide = false
- Head.Name = "plrHead"
- Head.Anchored = false
- Head.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Head"]
- Weld.Part1 = Head
- Weld.C1 = CFrame.new(0,-.5,0)*CFrame.Angles(0,(0),0)
- -------------Shield---------------------------------
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
- Shield = Instance.new("Part", char)
- Shield.Size = Vector3.new(1,.4,.4)
- Shieldmesh = Instance.new("SpecialMesh", Shield)
- Shieldmesh.MeshId = "rbxassetid://467133867"
- Shieldmesh.Scale = Vector3.new(0.06, 0.06, 0.06)
- Shieldmesh.TextureId = "rbxassetid://467133879"
- Shield.Transparency = 0
- Shield.CanCollide = false
- Shield.Name = "plrShield"
- Shield.Anchored = false
- Shield.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Left Arm"]
- Weld.Part1 = Shield
- Weld.C1 = CFrame.new(0,.0,.5)*CFrame.Angles(0,(-80.5),110)
- -----------------------tail----------------------
- tail = Instance.new("Part", char)
- tail.Size = Vector3.new(.5,.5,.5)
- tailmesh = Instance.new("SpecialMesh", tail)
- tailmesh.MeshId = "rbxassetid://591111070"
- tailmesh.Scale = Vector3.new(.005,.0051,.0071)
- tailmesh.TextureId = "rbxassetid://591111076"
- tail.Transparency = 0
- tail.CanCollide = false
- tail.Name = "plrtail"
- tail.Anchored = false
- tail.BrickColor = BrickColor.new("Really black")
- Weld = Instance.new("Weld", char)
- Weld.Part0 = char["Right Arm"]
- Weld.Part1 = tail
- Weld.C1 = CFrame.new(1,-2,.2)*CFrame.Angles(90,(0),80)
- for _, a in pairs(char:children()) do
- if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
- a:Destroy()
- end
- end
- local s = Instance.new('Shirt', char)
- s.ShirtTemplate = "rbxassetid://65784880"
- local p = Instance.new('Pants', char)
- p.PantsTemplate = "rbxassetid://65830858"
- Instance.new("ForceField",char).Visible = false
- local poo = Instance.new("IntValue",Character)
- poo.Name = "haha nope"
- char.Humanoid.MaxHealth = math.huge
- wait()
- char.Humanoid.Health = math.huge
- Instance.new("ForceField",char).Visible = false
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end
- function CreateBillBoardGui(Img, Pos, Siz)
- local billpar = Create("Part"){
- Transparency = 1,
- Size = Vector3.new(1, 1, 1),
- Anchored = true,
- CanCollide = false,
- CFrame = CFrame.new(Pos),
- Name = "BillboardGuiPart",
- }
- local bill = Create("BillboardGui"){
- Parent = billpar,
- Adornee = billpar,
- Size = UDim2.new(1, 0, 1, 0),
- SizeOffset = Vector2.new(Siz, Siz),
- }
- local d = Create("ImageLabel"){
- Parent = bill,
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Image = Img,
- }
- return billpar
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function CreateSound(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- swait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end
- local function GetNearest(obj, distance)
- local last, lastx = distance + 1
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
- local t = v.Torso
- local dist = (t.Position - obj.Position).magnitude
- if dist <= distance then
- if dist < last then
- last = dist
- lastx = v
- end
- end
- end
- end
- return lastx
- end
- --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
- function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
- for i, v in pairs(hit:GetChildren()) do
- if v:IsA("Humanoid") and hit.Name ~= Character.Name then
- local find = v:FindFirstChild("DebounceHit")
- if not find then
- if v.Parent:findFirstChild("Head") then
- local BillG = Create("BillboardGui"){
- Parent = v.Parent.Head,
- Size = UDim2.new(1, 0, 1, 0),
- Adornee = v.Parent.Head,
- StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
- }
- local TL = Create("TextLabel"){
- Parent = BillG,
- Size = UDim2.new(3, 3, 3, 3),
- BackgroundTransparency = 1,
- Text = tostring(damage).."-",
- TextColor3 = Color1.Color,
- TextStrokeColor3 = Color2.Color,
- TextStrokeTransparency = 0,
- TextXAlignment = Enum.TextXAlignment.Center,
- TextYAlignment = Enum.TextYAlignment.Center,
- FontSize = Enum.FontSize.Size18,
- Font = "ArialBold",
- }
- coroutine.resume(coroutine.create(function()
- swait(1)
- for i = 0, 1, .1 do
- swait(.1)
- BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
- end
- BillG:Destroy()
- end))
- end
- v.Health = v.Health - damage
- local bool = Create("BoolValue"){
- Parent = v,
- Name = "DebounceHit",
- }
- if HSound ~= nil and HPitch ~= nil then
- CreateSound(HSound, hit, 1, HPitch)
- end
- game:GetService("Debris"):AddItem(bool, cooldown)
- end
- end
- end
- end
- function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= magni and c.Name ~= Player.Name then
- Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
- end
- end
- end
- end
- end
- Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 1.3622998))
- HandleWeld = CreateWeld(m, RightArm, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.969390154, 0.0237579346, 0.0184631348, 5.57207386e-007, 1.00000489, 3.67389002e-005, -1.00000536, 5.56462226e-007, 2.02237861e-005, 2.02239025e-005, -3.67386638e-005, 1.00000536))
- CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.99999994, 1))
- FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 0.866918027))
- FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 2.33122311e-012, -2.54655963e-010, -2.33122289e-012, 1, 1.36422748e-010, 2.54655963e-010, -1.36422748e-010, 1))
- BladePivotConnectorL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorL", Vector3.new(0.371536285, 0.247690827, 0.371536225))
- BladePivotConnectorLweld = CreateWeld(m, FakeHandle, BladePivotConnectorL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.308720708, -0.0040512085, 3.4677887, -1, 1.3214737e-005, 6.75022966e-005, -1.31907673e-005, -1, 0.000355066528, 6.75069823e-005, 0.000355065626, 1))
- CreateMesh("CylinderMesh", BladePivotConnectorL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
- BladePivotConnectorR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorR", Vector3.new(0.371536285, 0.247690827, 0.371536225))
- BladePivotConnectorRweld = CreateWeld(m, FakeHandle, BladePivotConnectorR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.310429096, -0.00403594971, 3.46793175, -1, 1.32228588e-005, 6.72361348e-005, -1.31989655e-005, -1, 0.000355331489, 6.72408278e-005, 0.000355330587, 1))
- CreateMesh("CylinderMesh", BladePivotConnectorR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
- BladePivotHandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Handle", Vector3.new(0.371536285, 0.247690827, 0.371536225))
- BladePivotHandleRWeld = CreateWeld(m, BladePivotConnectorR, BladePivotHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.64916229e-005, -0.000183105469, 0.000383377075, 1, 4.25061514e-011, 4.30332108e-008, -4.25060057e-011, 1, -3.40511042e-009, -4.30332108e-008, 3.40511042e-009, 1))
- HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "HitboxR", Vector3.new(1.6099906, 0.247690886, 7.05918884))
- HitboxRweld = CreateWeld(m, BladePivotHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.492876291, -0.00238800049, 2.10687065, -0.999999881, -9.14376017e-007, -0.000473333028, 5.87026818e-007, -0.999999762, 0.000691582798, -0.000473333552, 0.000691582507, 0.999999642))
- CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.50000006, 1))
- numLerp = function(start, goal, alpha)
- return (((goal - start) * alpha) + start)
- end
- CFrameZero = function()
- return CFrame.new(Vector3.new())
- end
- CFAngles = function(Vector)
- return CFrame.Angles(math.rad(Vector.x), math.rad(Vector.y), math.rad(Vector.z))
- end
- AnimStat = {
- lerpSpeed = .2;
- }
- Joints = {
- Character.HumanoidRootPart.RootJoint;
- Character.Torso.Neck;
- Character.Torso['Right Shoulder'];
- Character.Torso['Left Shoulder'];
- Character.Torso['Right Hip'];
- Character.Torso['Left Hip'];
- FakeHandleWeld;
- BladePivotHandleRWeld;
- BladePivotHandleLWeld;
- }
- JointTargets = {
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- }
- setJointCFrames = function(table)
- for i = 1, #table do
- JointTargets[i] = table[i]
- end
- end
- setLerp = function(speed)
- AnimStat.lerpSpeed = speed
- end
- for i, v in pairs (Joints) do
- v.C1 = CFrameZero()
- end
- --[[ Credits to Fenrier for the Effect Functions. ]]--
- function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.new(x1, y1, z1)
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function BreakEffect(brickcolor, cframe, x1, y1, z1)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- function SlashEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.5, .5, .5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 2)
- coroutine.resume(coroutine.create(function(Part, Mesh, num)
- for i = 0, 1, delay do
- swait()
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
- end
- Part.Parent = nil
- end), prt, msh, (math.random(0, 1) + math.random()) / 5)
- end
- --[[ Attack Functions ]]--
- function attackone()
- attack = true
- con1 = HitboxR.Touched:connect(function(hit)
- Damage(hit.Parent, math.random(70, 30), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
- con1:disconnect()
- end)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -55, 0));
- CFrame.new(Vector3.new(-0.016, 1.535, -0.152)) * CFAngles(Vector3.new(-6.792, 46.287, 3.09));
- CFrame.new(Vector3.new(1.897, 0.454, 0.282)) * CFAngles(Vector3.new(3.21, -25.942, 75.245));
- CFrame.new(Vector3.new(-1.695, 0.525, -0.692)) * CFAngles(Vector3.new(55.331, -44.297, -39.112));
- CFrame.new(Vector3.new(0.694, -2.013, 0.178)) * CFAngles(Vector3.new(-15.703, 22.753, 3.174));
- CFrame.new(Vector3.new(-0.729, -1.978, -0.179)) * CFAngles(Vector3.new(-3.654, 43.988, -4.411));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -180, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
- CFrame.new(Vector3.new(0.055, 1.532, -0.139)) * CFAngles(Vector3.new(-14.049, -49.103, -7.262));
- CFrame.new(Vector3.new(1.645, 0.377, -0.714)) * CFAngles(Vector3.new(-23.518, 65.061, 99.396));
- CFrame.new(Vector3.new(-1.753, 0.235, 0.263)) * CFAngles(Vector3.new(-5.081, 26.84, -51.509));
- CFrame.new(Vector3.new(0.673, -2.02, 0.012)) * CFAngles(Vector3.new(-4.758, -45.926, -3.011));
- CFrame.new(Vector3.new(-0.758, -1.974, 0.079)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- con1:disconnect()
- attack = false
- end
- function attacktwo()
- attack = true
- setLerp(.4)
- con1 = HitboxR.Touched:connect(function(hit)
- Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
- con1:disconnect()
- end)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
- CFrame.new(Vector3.new(0.045, 1.538, -0.134)) * CFAngles(Vector3.new(-14.279, -47.198, -11.634));
- CFrame.new(Vector3.new(1.233, 0.062, -0.828)) * CFAngles(Vector3.new(156.018, 77.026, -95.941));
- CFrame.new(Vector3.new(-1.734, 0.437, 0.461)) * CFAngles(Vector3.new(-12.866, 40.384, -62.165));
- CFrame.new(Vector3.new(0.733, -2.017, -0.047)) * CFAngles(Vector3.new(2.611, -45.958, 2.288));
- CFrame.new(Vector3.new(-0.725, -1.977, 0.098)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.8)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
- CFrame.new(Vector3.new(-0.004, 1.538, -0.131)) * CFAngles(Vector3.new(-13.606, 44.565, 8.582));
- CFrame.new(Vector3.new(1.647, 0.805, 0.363)) * CFAngles(Vector3.new(-1.54, -23.757, 110.54));
- CFrame.new(Vector3.new(-1.811, 0.399, -0.458)) * CFAngles(Vector3.new(18.743, -30.056, -65.737));
- CFrame.new(Vector3.new(0.526, -2.02, -0.187)) * CFAngles(Vector3.new(0.776, 6.763, 1.602));
- CFrame.new(Vector3.new(-0.87, -1.965, -0.04)) * CFAngles(Vector3.new(4.644, 46.466, -6.865));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- con1:disconnect()
- attack = false
- end
- function attackthree()
- attack = true
- con1 = HitboxR.Touched:connect(function(hit)
- Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
- con1:disconnect()
- end)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -40, 0));
- CFrame.new(Vector3.new(-0.037, 1.497, 0.024)) * CFAngles(Vector3.new(-3.139, 26.26, 0));
- CFrame.new(Vector3.new(1.373, 1.389, 0.289)) * CFAngles(Vector3.new(-160.264, -19.457, -5.426));
- CFrame.new(Vector3.new(-0.722, 0.382, -0.902)) * CFAngles(Vector3.new(81.391, -9.118, 43.625));
- CFrame.new(Vector3.new(0.659, -1.981, 0.222)) * CFAngles(Vector3.new(-13.126, 23.083, 7.411));
- CFrame.new(Vector3.new(-0.708, -2.001, -0.268)) * CFAngles(Vector3.new(-3.063, 30.058, -0.495));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -20, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.5)
- setLerp(.5)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(-0.014, 1.49, -0.137)) * CFAngles(Vector3.new(-12.751, -0.538, -1.417));
- CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(57.567, 6.384, -4.734));
- CFrame.new(Vector3.new(-1.77, 0.206, 0.357)) * CFAngles(Vector3.new(-45.001, 0, -24.978));
- CFrame.new(Vector3.new(0.659, -1.5, 0.392)) * CFAngles(Vector3.new(-21.248, -8.267, 6.821));
- CFrame.new(Vector3.new(-0.521, -1.5, -0.295)) * CFAngles(Vector3.new(-3.255, 7.413, -0.432));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-5, 70, 5));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- con1:disconnect()
- attack = false
- end
- function attackfour()
- attack = true
- con1 = HitboxR.Touched:connect(function(hit)
- Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
- con1:disconnect()
- end)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
- CFrame.new(Vector3.new(0.018, 1.492, -0.132)) * CFAngles(Vector3.new(-18.019, -58.875, -16.889));
- CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(158.964, 59.715, -91.349));
- CFrame.new(Vector3.new(-1.773, 0.315, 0.248)) * CFAngles(Vector3.new(-45, -0.001, -36.715));
- CFrame.new(Vector3.new(0.743, -2.019, -0.029)) * CFAngles(Vector3.new(-0.445, -47.718, 6.45));
- CFrame.new(Vector3.new(-0.947, -1.957, 0.19)) * CFAngles(Vector3.new(-42.216, -38.563, -31.271));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 30, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
- CFrame.new(Vector3.new(-0.035, 1.492, -0.137)) * CFAngles(Vector3.new(-11.809, 38.617, 6.104));
- CFrame.new(Vector3.new(1.792, 0.699, 0.122)) * CFAngles(Vector3.new(-3.214, -14.186, 98.936));
- CFrame.new(Vector3.new(-0.828, 0.513, -0.966)) * CFAngles(Vector3.new(-172.955, -33.64, 103.96));
- CFrame.new(Vector3.new(0.827, -1.995, 0.166)) * CFAngles(Vector3.new(-7.088, 23.2, 12.015));
- CFrame.new(Vector3.new(-0.669, -1.931, -0.225)) * CFAngles(Vector3.new(-9.979, 41.79, 2.021));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(8)
- con1:disconnect()
- attack = false
- end
- local charge = false
- local Counter = false
- function SLAY()
- attack = true
- Character.Humanoid.WalkSpeed = 5
- while true do
- swait()
- if charge == true then
- setLerp(.8)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(-0.012, 1.5, 0.01)) * CFAngles(Vector3.new(-0.001, 1.446, 0));
- CFrame.new(Vector3.new(1.301, 0.767, -0.661)) * CFAngles(Vector3.new(105.91, 59.1, -6.255));
- CFrame.new(Vector3.new(-1.498, 0.012, -0.513)) * CFAngles(Vector3.new(51.137, -7.204, -5.77));
- CFrame.new(Vector3.new(0.567, -2.005, 0.316)) * CFAngles(Vector3.new(-21.791, -13.545, 2.883));
- CFrame.new(Vector3.new(-0.547, -1.998, -0.177)) * CFAngles(Vector3.new(-0.605, 13.112, -1.803));
- CFrame.new(Vector3.new(0, -.2, .2)) * CFAngles(Vector3.new(50, -3, -90));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- elseif charge == false then
- break
- end
- end
- con1 = HitboxR.Touched:connect(function(hit)
- CreateSound("http://roblox.com/asset/?id=206082273", hit.Parent.Head, 1, 1)
- Damage(hit.Parent, math.random(), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
- for i = 1, 10 do
- BreakEffect(BrickColor.new("Really red"), hit.Parent:WaitForChild("Head").CFrame, 0.5, math.random(5, 20), 0.5)
- end
- con1:disconnect()
- end)
- if charge == false then
- setLerp(.4)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(20, 0, 0));
- CFrame.new(Vector3.new(-0.011, 1.493, -0.041)) * CFAngles(Vector3.new(-10, 0.331, 0));
- CFrame.new(Vector3.new(0.579, 1.57, -0.851)) * CFAngles(Vector3.new(147.19, 9.426, -29.255));
- CFrame.new(Vector3.new(-0.578, 1.542, -0.913)) * CFAngles(Vector3.new(148.824, -2.845, 30.01));
- CFrame.new(Vector3.new(0.567, -2.005, .4)) * CFAngles(Vector3.new(-50, -9.094, 1.886));
- CFrame.new(Vector3.new(-0.611, -1.998, .4)) * CFAngles(Vector3.new(-50, 5.328, -4.905));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-2, -8, 50));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(7)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
- CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, .8)
- setLerp(.5)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(-0.011, 1.509, -0.151)) * CFAngles(Vector3.new(-14.66, 0.331, 0));
- CFrame.new(Vector3.new(0.649, 0.02, -0.851)) * CFAngles(Vector3.new(57.19, 9.426, -29.255));
- CFrame.new(Vector3.new(-0.648, -0.048, -0.913)) * CFAngles(Vector3.new(58.824, -2.845, 30.01));
- CFrame.new(Vector3.new(0.567, -2.005, 0.336)) * CFAngles(Vector3.new(-28.626, -9.094, 1.886));
- CFrame.new(Vector3.new(-0.611, -1.998, -0.439)) * CFAngles(Vector3.new(-4.339, 10.351, -5.303));
- CFrame.new(Vector3.new(0, 0, -.1)) * CFAngles(Vector3.new(-80, 55, 80));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- swait(5)
- end
- Counter = false
- Humanoid.JumpPower = 50
- attack = false
- con1:disconnect()
- Character.Humanoid.WalkSpeed = 16
- end
- --[[Attacks]]--
- mouse.Button1Down:connect(function()
- if attack == false and attacktype == 1 then
- attacktype = 2
- attackone()
- elseif attack == false and attacktype == 2 then
- attacktype = 3
- attacktwo()
- elseif attack == false and attacktype == 3 then
- attacktype = 4
- attackthree()
- elseif attack == false and attacktype == 4 then
- attacktype = 1
- attackfour()
- end
- end)
- mouse.KeyDown:connect(function(k)
- k = k:lower()
- if attack == false and k == 'r' and charge == false then
- charge = true
- SLAY()
- end
- end)
- mouse.KeyUp:connect(function(k)
- k = k:lower()
- if attack == true and k == 'r' and charge == true then
- charge = false
- end
- end)
- --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
- while true do
- swait()
- FPS = 1 / game:GetService("RunService").Heartbeat:wait()
- local FPSLerp = AnimStat.lerpSpeed / (FPS / 60)
- for i = 1, #Joints do
- Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
- Joints[i].C1 = CFrameZero()
- end
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Part") then
- v.Material = "SmoothPlastic"
- elseif v:IsA("Hat") then
- v:WaitForChild("Handle").Material = "SmoothPlastic"
- end
- end
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
- if equipped == true or equipped == false then
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(-0.007, 1.536, -0.105)) * CFAngles(Vector3.new(-12.077, -3.507, 0));
- CFrame.new(Vector3.new(1.771, 0.317, -0.117)) * CFAngles(Vector3.new(10.537, 3.207, 31.739));
- CFrame.new(Vector3.new(-1.772, 0.325, -0.278)) * CFAngles(Vector3.new(18.191, -10.425, -37.978));
- CFrame.new(Vector3.new(0.515, -1.34, -0.448)) * CFAngles(Vector3.new(-10.97, -6.145, 0.586));
- CFrame.new(Vector3.new(-0.522, -1.922, 0.127)) * CFAngles(Vector3.new(-19.103, 6.555, 0.301));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 30, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(-0.007, 1.555, -0.309)) * CFAngles(Vector3.new(-21.347, -3.507, 0));
- CFrame.new(Vector3.new(1.692, 0.513, 0.379)) * CFAngles(Vector3.new(-4.37, -23.033, 59.089));
- CFrame.new(Vector3.new(-1.891, 0.751, -0.161)) * CFAngles(Vector3.new(18.191, -10.425, -67.978));
- CFrame.new(Vector3.new(0.53, -1.739, -0.475)) * CFAngles(Vector3.new(4.108, -5.783, 2.161));
- CFrame.new(Vector3.new(-0.562, -1.846, -0.263)) * CFAngles(Vector3.new(11.068, 5.824, -3.029));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, -20, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.1 + .1 * math.sin(sine / 27), 0)) * CFAngles(Vector3.new(0, -40, 0));
- CFrame.new(Vector3.new(-0.038, 1.5, 0.016)) * CFAngles(Vector3.new(-2 - 3 * math.sin(sine / 26), 37.43, 0));
- CFrame.new(Vector3.new(1.5, 0, -0.161)) * CFAngles(Vector3.new(10.537, 3.207, 16.739 - 3 * math.sin(sine / 26)));
- CFrame.new(Vector3.new(-1.498, 0.012, -0.113)) * CFAngles(Vector3.new(6.417, -1.04, -9.162 + 3 * math.sin(sine / 26)));
- CFrame.new(Vector3.new(0.567, -1.9 - .1 * math.sin(sine / 27), 0.086)) * CFAngles(Vector3.new(0.242, 24.101, 3.041 + 1 * math.sin(sine / 28)));
- CFrame.new(Vector3.new(-0.651, -1.9 - .1 * math.sin(sine / 27), -0.089)) * CFAngles(Vector3.new(-0.001, 30, -3.028 - 1 * math.sin(sine / 28)));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 2, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- setLerp(.3)
- change = 2.5
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-10, 0 + 2 * math.sin(sine / 8), 0));
- CFrame.new(Vector3.new(0, 1.5, 0)) * CFAngles(Vector3.new(5, 0 - 2 * math.sin(sine / 8), -0.001));
- CFrame.new(Vector3.new(1.5, 0, -.22)) * CFAngles(Vector3.new(20 + 1 * math.sin(sine / 8), 0, 10 + 1 * math.sin(sine / 17)));
- CFrame.new(Vector3.new(-1.45 + .05 * math.sin(sine / 10), 0 , -.2 * math.sin(sine / 10))) * CFAngles(Vector3.new(10 * math.sin(sine / 10), 0, 1 * math.sin(sine / 10)));
- CFrame.new(Vector3.new(0.5, -1.9 - 0.4 * math.cos(sine / 8) / 2, 0 + 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(-40 * math.sin(sine / 8), 0, 2));
- CFrame.new(Vector3.new(-0.5, -1.9 + 0.4 * math.cos(sine / 8) / 2, 0 - 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(40 * math.sin(sine / 8), 0, -2));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(180, -2 - 1 * math.sin(sine / 8), 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
- })
- end
- end
- end
- if #Effects > 0 then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement