Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
- mouse = game.Players.LocalPlayer:GetMouse()
- Player=game.Players.MrSlakyx
- Character=Player.Character
- Character.Humanoid.Name = "noneofurbusiness"
- hum = Character.noneofurbusiness
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- Root=Character["HumanoidRootPart"]
- Head=Character["Head"]
- Torso=Character["Torso"]
- Neck=Torso["Neck"]
- walking = false
- hitdebounce = false
- jumping = false
- attacking = false
- aiming = false
- firsttime = false
- tauntdebounce = false
- position = nil
- MseGuide = true
- running = false
- settime = 0
- sine = 0
- t = 0
- ws = 32
- change = 1
- combo1 = true
- equip = false
- swetch = false
- dgs = 75
- combo2 = false
- tauntdebounce = false
- firsttime2 = false
- stop = false
- combo3 = false
- gunallowance = false
- shooting = false
- RunSrv = game:GetService("RunService")
- RenderStepped = game:GetService("RunService").RenderStepped
- removeuseless = game:GetService("Debris")
- smoothen = game:GetService("TweenService")
- local kicks={3224461986,3224460792,3224460186,3224459537}
- cam = workspace.CurrentCamera
- hum.WalkSpeed = 26
- screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- local HEADLERP = Instance.new("ManualWeld")
- HEADLERP.Parent = Head
- HEADLERP.Part0 = Head
- HEADLERP.Part1 = Head
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local TORSOLERP = Instance.new("ManualWeld")
- TORSOLERP.Parent = Root
- TORSOLERP.Part0 = Torso
- TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local ROOTLERP = Instance.new("ManualWeld")
- ROOTLERP.Parent = Root
- ROOTLERP.Part0 = Root
- ROOTLERP.Part1 = Torso
- ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTARMLERP = Instance.new("ManualWeld")
- RIGHTARMLERP.Parent = RightArm
- RIGHTARMLERP.Part0 = RightArm
- RIGHTARMLERP.Part1 = Torso
- RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTARMLERP = Instance.new("ManualWeld")
- LEFTARMLERP.Parent = LeftArm
- LEFTARMLERP.Part0 = LeftArm
- LEFTARMLERP.Part1 = Torso
- LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTLEGLERP = Instance.new("ManualWeld")
- RIGHTLEGLERP.Parent = RightLeg
- RIGHTLEGLERP.Part0 = RightLeg
- RIGHTLEGLERP.Part1 = Torso
- RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTLEGLERP = Instance.new("ManualWeld")
- LEFTLEGLERP.Parent = LeftLeg
- LEFTLEGLERP.Part0 = LeftLeg
- LEFTLEGLERP.Part1 = Torso
- LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- return weld
- end
- function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
- A = Instance.new("Attachment", PARENT)
- A.Position = POSITION1
- A.Name = "A"
- B = Instance.new("Attachment", PARENT)
- B.Position = POSITION2
- B.Name = "B"
- tr1 = Instance.new("Trail", PARENT)
- tr1.Attachment0 = A
- tr1.Attachment1 = B
- tr1.Enabled = true
- tr1.Lifetime = LIFETIME
- tr1.TextureMode = "Static"
- tr1.LightInfluence = 0
- tr1.Color = COLOR
- tr1.Transparency = NumberSequence.new(0, 1)
- end
- coroutine.wrap(function()
- while wait() do
- hum.WalkSpeed = ws
- hum.JumpPower = 80
- LeftArm.BrickColor = BrickColor.new("Really black")
- RightArm.BrickColor = BrickColor.new("Really black")
- Head.BrickColor = BrickColor.new("Really black")
- end
- end)()
- godmode = coroutine.wrap(function()
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("BasePart") and v ~= Root then
- v.Anchored = false
- end
- end
- while true do
- hum.MaxHealth = math.huge
- wait(0.0000001)
- hum.Health = math.huge
- wait()
- end
- end)
- godmode()
- ff = Instance.new("ForceField", Character)
- ff.Visible = false
- ----defaultpos----
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- ----defaultpos----
- coroutine.wrap(function()
- for i,v in pairs(Character:GetChildren()) do
- if v.Name == "Animate" then v:Remove()
- end
- end
- end)()
- function damagealll(Radius,Position)
- local Returning = {}
- for _,v in pairs(workspace:GetChildren()) do
- if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
- if v:FindFirstChild("Torso") then
- local Mag = (v.Torso.Position - Position).magnitude
- if Mag < Radius then
- table.insert(Returning,v)
- end
- elseif v:FindFirstChild("UpperTorso") then
- local Mag = (v.UpperTorso.Position - Position).magnitude
- if Mag < Radius then
- table.insert(Returning,v)
- end
- end
- end
- end
- return Returning
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- 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)
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- for _,x in pairs(Character:GetChildren()) do
- if x:IsA("Decal") then x:Remove() end
- end
- function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
- so = Instance.new("Sound")
- so.Parent = PARENT
- so.SoundId = "rbxassetid://"..ID
- so.Volume = VOL
- so.Looped = LOOP
- so:Play()
- removeuseless:AddItem(so,REMOVE)
- end
- for _,n in pairs(Character:GetChildren()) do
- if n:IsA("Accessory") then n:Remove() end
- end
- for _,x in pairs(Character:GetChildren()) do
- if x:IsA("Decal") then x:Remove() end
- end
- Head.face:Remove()
- leftlocation = Instance.new("Part",LeftArm)
- leftlocation.Size = Vector3.new(1,1,1)
- leftlocation.Transparency = 1
- leftlocationweld = weldBetween(leftlocation,LeftArm)
- leftlocationweld.C0 = CFrame.new(0,1.2,0)
- rightlocation = Instance.new("Part",RightArm)
- rightlocation.Size = Vector3.new(1,1,1)
- rightlocation.Transparency = 1
- rightlocationweld = weldBetween(rightlocation,RightArm)
- rightlocationweld.C0 = CFrame.new(0,1.2,0)
- Head.Transparency = 1
- Torso.Transparency = 1
- LeftLeg.Transparency = 1
- RightLeg.Transparency = 1
- RightArm.Transparency = 1
- LeftArm.Transparency = 1
- lefthand = Instance.new("Part",Character)
- lefthand.Size = Vector3.new(1,1,1)
- lefthand.CFrame = RightArm.CFrame
- lefthand.CanCollide = false
- lefthandweld = weldBetween(lefthand,LeftArm)
- lefthandmesh = Instance.new("SpecialMesh",lefthand)
- lefthandmesh.MeshId ="rbxassetid://430270023"
- lefthandmesh.TextureId = "rbxassetid://430270036"
- lefthandmesh.Scale = Vector3.new(.015,.015,.015)
- lefthandweld.C0 = lefthand.CFrame:inverse() * LeftArm.CFrame * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- righthand = Instance.new("Part",Character)
- righthand.Size = Vector3.new(1,1,1)
- righthand.CFrame = RightArm.CFrame
- righthand.CanCollide = false
- righthandweld = weldBetween(righthand,RightArm)
- righthandmesh = Instance.new("SpecialMesh",righthand)
- righthandmesh.MeshId ="rbxassetid://430269649"
- righthandmesh.TextureId = "rbxassetid://430270036"
- righthandmesh.Scale = Vector3.new(.015,.015,.015)
- righthandweld.C0 = righthand.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,.7,0) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- rightfoot = Instance.new("Part",Character)
- rightfoot.Size = Vector3.new(1,1,1)
- rightfoot.CFrame = RightLeg.CFrame
- rightfoot.CanCollide = false
- rightfootweld = weldBetween(rightfoot,RightLeg)
- rightfootmesh = Instance.new("SpecialMesh",rightfoot)
- rightfootmesh.MeshId = "rbxassetid://430263520"
- rightfootmesh.TextureId = "rbxassetid://430263527"
- rightfootmesh.Scale = Vector3.new(0.015, 0.015, 0.015)
- rightfootweld.C0 = rightfoot.CFrame:inverse() * RightLeg.CFrame * CFrame.new(.6,.6,-.6) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- leftfoot = Instance.new("Part",Character)
- leftfoot.Size = Vector3.new(1,1,1)
- leftfoot.CFrame = LeftLeg.CFrame
- leftfoot.CanCollide = false
- leftfootweld = weldBetween(leftfoot,LeftLeg)
- leftfootmesh = Instance.new("SpecialMesh",leftfoot)
- leftfootmesh.MeshId = "rbxassetid://430268624"
- leftfootmesh.TextureId = "rbxassetid://430268646"
- leftfootmesh.Scale = Vector3.new(0.015, 0.015, 0.015)
- leftfootweld.C0 = leftfoot.CFrame:inverse() * LeftLeg.CFrame * CFrame.new(-.4,.6,-1) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- raytorso = Instance.new("Part",Character)
- raytorso.Size = Vector3.new(1,1,1)
- raytorso.CFrame = Torso.CFrame
- raytorso.CanCollide = false
- raytorsoweld = weldBetween(raytorso,Torso)
- raytorsomesh = Instance.new("SpecialMesh",raytorso)
- raytorsomesh.MeshId = "rbxassetid://430270453"
- raytorsomesh.TextureId = "rbxassetid://430270465"
- raytorsomesh.Scale = Vector3.new(0.016, 0.015, 0.015)
- raytorsoweld.C0 = raytorso.CFrame:inverse() * Torso.CFrame * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- fedora = Instance.new("Part",Character)
- fedora.Size = Vector3.new(2,2,2)
- fedora.CFrame = Head.CFrame
- fedora.CanCollide = false
- fedoraweld = Instance.new("Weld",fedora)
- fedoraweld.Part0 = fedora
- fedoraweld.Part1 = Head
- fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(-.1,-1.14,0) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
- mfedora = Instance.new("SpecialMesh", fedora)
- mfedora.MeshType = "FileMesh"
- mfedora.Scale = Vector3.new(.015, .015, .015)
- mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=430271185','http://www.roblox.com/asset/?id=430271200'
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='m' then
- immortality()
- for i,v in pairs(Player.Character:GetDescendants()) do
- if v:IsA("BodyVelocity") then
- v:Remove()
- end
- end
- elseif Press=='q' then
- if debounce then return end
- if aiming then
- aiming = false
- debounce = true
- for i = 1, 20 do
- gun.Transparency = gun.Transparency + .05
- swait()
- end
- lefthandmesh.MeshId ="rbxassetid://430270023"
- lefthandmesh.TextureId = "rbxassetid://430270036"
- lefthandmesh.Scale = Vector3.new(.015,.015,.015)
- gun:Remove()
- gunbox:Remove()
- debounce = false
- attacking = false
- else
- debounce = true
- attacking = true
- aiming = true
- gun = Instance.new("Part",Torso)
- gun.Size = Vector3.new(1,1,1)
- gun.Anchored = false
- gun.Transparency = 0
- gun.CanCollide = false
- gunweld = weldBetween(gun,lefthand)
- gunmesh = Instance.new("SpecialMesh",gun)
- gunmesh.MeshId = "rbxassetid://430586811"
- gunmesh.TextureId = "rbxassetid://430586818"
- gunmesh.Scale = Vector3.new(.0011,.0011,.0011)
- gunweld.C0 = CFrame.new(-1.2,0,-.6) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))
- gunbox = Instance.new("Part",Torso)
- gunbox.Size = Vector3.new(1,1,1)
- gunbox.Anchored = false
- gunbox.CanCollide = false
- gunbox.Transparency = 1
- gunboxweld = weldBetween(gunbox,gun)
- gunboxweld.C0 = CFrame.new(-2,0,0)
- lefthandmesh.MeshId = "rbxassetid://90718752"
- lefthandmesh.TextureId = "rbxassetid://6347925"
- lefthandmesh.Scale = Vector3.new(4,4,4)
- coroutine.wrap(function()
- while true do
- if not aiming then break end
- swait()
- end
- end)()
- attacking = false
- debounce = false
- end
- elseif Press=='r' then
- if not aiming then return end
- if debounce then return end
- debounce = true
- attacking = true
- ws = 0
- local g1 = Instance.new("BodyGyro", nil)
- g1.CFrame = Root.CFrame
- g1.Parent = Root
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- for i = 1, 15 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.11)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.3,1.5,-1.6) * CFrame.Angles(math.rad(-70 - 3 * math.sin(sine/12)),math.rad(3 * math.sin(sine/12)),math.rad(95 + 2 * math.sin(sine/12))), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1,0) * CFrame.Angles(math.rad(10 - 1 * math.sin(sine/12)),math.rad(10 + 2 * math.sin(sine/12)),math.rad(-40 + 4 * math.sin(sine/12))), 0.2)
- swait()
- end
- coroutine.wrap(function()
- local shoot = Instance.new("Sound",gunbox)
- shoot.SoundId = "rbxassetid://131179973"
- shoot.Volume = 8
- shoot:Play()
- local orbhit = false
- local orb = Instance.new("Part",Torso)
- orb.Size = Vector3.new(1,1,1)
- orb.Shape = "Ball"
- orb.BrickColor = BrickColor.new("Lime green")
- orb.Anchored = false
- orb.Transparency = 1
- orb.CanCollide = false
- orb.Material = "Neon"
- orb.CFrame = gunbox.CFrame
- local bov = Instance.new("BodyVelocity",orb)
- bov.maxForce = Vector3.new(99999,99999,99999)
- orb.CFrame = CFrame.new(orb.Position,mouse.Hit.p)
- bov.velocity = orb.CFrame.lookVector*325
- coroutine.wrap(function()
- while true do
- if orbhit then break end
- local magic = Instance.new("Part",Torso)
- magic.BrickColor = BrickColor.new("Lime green")
- magic.Anchored = true
- magic.CanCollide = false
- magic.CFrame = orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- magic.Material = "Neon"
- magic.Size = Vector3.new(2,2,2)
- coroutine.wrap(function()
- for i = 1, 40 do
- magic.Transparency = magic.Transparency + .025
- magic.Size = magic.Size - Vector3.new(.05,.05,.05)
- swait()
- end
- magic:Remove()
- end)()
- swait()
- end
- end)()
- coroutine.wrap(function()
- while wait(.05) do
- if orbhit then break end
- local ring = Instance.new("Part",Torso)
- ring.Anchored = true
- ring.CanCollide = false
- ring.Size = Vector3.new(1,1,1)
- ring.Material = "Neon"
- ring.BrickColor = BrickColor.new("Lime green")
- ring.CFrame = orb.CFrame * CFrame.Angles(math.rad(90),0,0)
- local ringmesh = Instance.new("SpecialMesh",ring)
- ringmesh.MeshId = "rbxassetid://471124075"
- ringmesh.Scale = Vector3.new(.001,.001,.001)
- coroutine.wrap(function()
- for i = 1, 40 do
- ringmesh.Scale = ringmesh.Scale + Vector3.new(.005,.002,.005)
- ring.Transparency = ring.Transparency + .025
- swait()
- end
- ring:Remove()
- end)()
- end
- end)()
- coroutine.wrap(function()
- wait(5)
- if orbhit then
- else
- orbhit = true
- orb:Remove()
- end
- end)()
- orb.Touched:connect(function(orbh)
- if orbh:IsA("Part") and orbh.Parent.Parent ~= Character and orbh.Parent ~= Character then
- if orbhit then return end
- orbhit = true
- Hit = damagealll(28,orb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- slachtoffer:TakeDamage(math.random(69,82))
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(orb.Position,torso.Position).lookVector*195
- removeuseless:AddItem(vel,.1)
- end
- end
- orb.Anchored = true
- orb.Transparency = 1
- local soundbox = Instance.new("Part",Torso)
- soundbox.CFrame = orb.CFrame
- soundbox.Size = Vector3.new(.1,.1,.1)
- soundbox.Anchored = true
- soundbox.CanCollide = false
- soundbox.Transparency = 1
- removeuseless:AddItem(soundbox,5)
- local explosionsound = Instance.new("Sound",soundbox)
- explosionsound.SoundId = "rbxassetid://2812343636"
- explosionsound.TimePosition = .6
- explosionsound.Volume = 10
- explosionsound:Play()
- local explosion = Instance.new("Part",Torso)
- explosion.Size = Vector3.new(1,1,1)
- explosion.Anchored = true
- explosion.CanCollide = false
- explosion.BrickColor = BrickColor.new("Lime green")
- explosion.Material = "Neon"
- explosion.Shape = "Ball"
- explosion.CFrame = orb.CFrame
- for i = 1, 40 do
- local ps = Instance.new("Part",Torso)
- ps.Size = Vector3.new(1,1,1)
- ps.Anchored = true
- ps.BrickColor = BrickColor.new("Lime green")
- ps.Material = "Neon"
- ps.Transparency = 0
- ps.CFrame = explosion.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- local psm = Instance.new("SpecialMesh",ps)
- psm.MeshType = "Sphere"
- psm.Scale = Vector3.new(2,1,2)
- coroutine.wrap(function()
- for i = 1, 30 do
- psm.Scale = psm.Scale + Vector3.new(0,6,0)
- swait()
- end
- for i = 1, 20 do
- psm.Scale = psm.Scale + Vector3.new(0,2,0)
- ps.Transparency = ps.Transparency + .05
- swait()
- end
- ps:Remove()
- end)()
- end
- coroutine.wrap(function()
- for i = 1, 30 do
- local bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Lime green")
- bamwave.Name = "bamwave"
- bamwave.Transparency = .85
- bamwave.CFrame = orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- local bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh34"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- local wshockwave2 = Instance.new("Part", Torso)
- wshockwave2.Size = Vector3.new(1,1,1)
- wshockwave2.CanCollide = false
- wshockwave2.Anchored = true
- wshockwave2.Transparency = .9
- wshockwave2.BrickColor = BrickColor.new("Lime green")
- wshockwave2.CFrame = CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- local wshockwavemesh2 = Instance.new("SpecialMesh",wshockwave2)
- wshockwavemesh2.Scale = Vector3.new(1,.05,1)
- wshockwavemesh2.Name = "explodmesh33"
- wshockwavemesh2.MeshId = "rbxassetid://20329976"
- coroutine.wrap(function()
- for i = 1, 30 do
- wshockwave2.CFrame = wshockwave2.CFrame:lerp(CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.02)
- bamwave.CFrame = bamwave.CFrame:lerp(orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))),.02)
- bamwavemesh.Scale = bamwavemesh.Scale + Vector3.new(.02,0,.02)
- wshockwavemesh2.Scale = wshockwavemesh2.Scale + Vector3.new(3,.05,3)
- bamwave.Transparency = bamwave.Transparency + .0029
- wshockwave2.Transparency = wshockwave2.Transparency + .0029
- swait()
- end
- for i = 1, 40 do
- wshockwave2.CFrame = wshockwave2.CFrame:lerp(CFrame.new(orb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180))),.02)
- bamwave.CFrame = bamwave.CFrame:lerp(orb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))),.02)
- bamwavemesh.Scale = bamwavemesh.Scale + Vector3.new(.01,0,.01)
- wshockwavemesh2.Scale = wshockwavemesh2.Scale + Vector3.new(1,.05,1)
- bamwave.Transparency = bamwave.Transparency + .0029
- wshockwave2.Transparency = wshockwave2.Transparency + .0029
- swait()
- end
- bamwave:Remove()
- wshockwave2:Remove()
- end)()
- end
- end)()
- coroutine.wrap(function()
- for i = 1, 20 do
- explosion.Size = explosion.Size + Vector3.new(2,2,2)
- swait()
- end
- for i = 1, 20 do
- explosion.Size = explosion.Size + Vector3.new(.75,.75,.75)
- explosion.Transparency = explosion.Transparency + .05
- swait()
- end
- explosion:Remove()
- orb:Remove()
- end)()
- end
- end)
- removeuseless:AddItem(shoot,10)
- for i = 1, 1 do
- local blast = Instance.new("Part",Torso)
- blast.Size = Vector3.new(1,1,1)
- blast.Anchored = true
- blast.CanCollide = false
- blast.Material = "Neon"
- blast.Shape = "Ball"
- blast.BrickColor = BrickColor.new("Lime green")
- blast.CFrame = gunbox.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- coroutine.wrap(function()
- for i = 1, 20 do
- blast.Size = blast.Size + Vector3.new(1.1,1.1,1.1)
- blast.Transparency = blast.Transparency + .05
- swait()
- end
- blast:Remove()
- end)()
- end
- end)()
- for i = 1, 7 do
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.3,.8,-1.6) * CFrame.Angles(math.rad(-70 - 3 * math.sin(sine/12)),math.rad(3 * math.sin(sine/12)),math.rad(110 + 2 * math.sin(sine/12))), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .1 * math.sin(sine/12), .3) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1,0) * CFrame.Angles(math.rad(12 - 1 * math.sin(sine/12)),math.rad(15 + 2 * math.sin(sine/12)),math.rad(-45 + 4 * math.sin(sine/12))), 0.2)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- ws = 26
- elseif Press=='e' then
- if mouse.Target ~= nil and mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- local enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
- if enemyhum.Health < 1 then return end
- local ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso")
- if debounce then return end
- debounce = true
- attacking = true
- local posb = Instance.new("Part",Torso)
- posb.Anchored = true
- posb.Transparency = 1
- posb.CanCollide = false
- posb.Size = Vector3.new(1,1,1)
- ws = 3
- local g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- g1.CFrame = CFrame.new(Root.Position,ETorso.Position)
- for i = 1, 20 do
- posb.CFrame = Root.CFrame * CFrame.new(0,35,-80)
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,ETorso.Position),.2)
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-140),math.rad(10),math.rad(25)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-140),math.rad(-10),math.rad(-25)), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.4, 2, .1) * CFrame.Angles(math.rad(-10), math.rad(5), math.rad(-3)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.51, .7, .7) * CFrame.Angles(math.rad(42), math.rad(0), math.rad(0)), 0.4)
- swait()
- end
- local b = kicks[math.random(1,#kicks)]
- local liltaunt = Instance.new("Sound",Torso)
- liltaunt.SoundId = "rbxassetid://"..b
- liltaunt.Volume = 4
- liltaunt:Play()
- removeuseless:AddItem(liltaunt,4)
- local hitbox = Instance.new("Part",Torso)
- hitbox.Anchored = false
- hitbox.CanCollide = false
- hitbox.Transparency = 1
- hitbox.Size = Vector3.new(2.5,3,3)
- hitboxweld = weldBetween(hitbox,LeftLeg)
- hitboxweld.C0 = CFrame.new(0,2.6,0)
- ws = 0
- for i = 1, 4 do
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(12)), 0.4)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(-12)), 0.4)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .2, 0) * CFrame.Angles(math.rad(22), math.rad(0), math.rad(0)),.4)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.39, 2, .6) * CFrame.Angles(math.rad(37), math.rad(0), math.rad(0)), 0.4)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.1, -1.1) * CFrame.Angles(math.rad(-87), math.rad(3), math.rad(5)), 0.4)
- swait()
- end
- Hit = damagealll(2,hitbox.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 and v:FindFirstChildOfClass("Humanoid") == enemyhum then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- slachtoffer:TakeDamage(math.random(12,21))
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(hitbox.Position,torso.Position).lookVector*25
- removeuseless:AddItem(vel,.1)
- local p = math.random(1,1.2)
- local p2 = Instance.new("Sound",ETorso)
- p2.SoundId = "rbxassetid://507150998"
- p2.Volume = 10
- p2.Pitch = p
- p2:Play()
- removeuseless:AddItem(p2,4)
- end
- end
- for i = 1, 4 do
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(12)), 0.4)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.4,-.2) * CFrame.Angles(math.rad(36),math.rad(0),math.rad(-12)), 0.4)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .2, 0) * CFrame.Angles(math.rad(22), math.rad(0), math.rad(0)),.4)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.39, 2, .6) * CFrame.Angles(math.rad(37), math.rad(0), math.rad(0)), 0.4)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.1, -1.1) * CFrame.Angles(math.rad(-87), math.rad(3), math.rad(5)), 0.4)
- swait()
- end
- hitbox:Remove()
- ws = 32
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- end
- end
- end)
- function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function ray2(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
- return ray(StartPos, DIRECTION, Distance, Ignore)
- end
- checks1 = coroutine.wrap(function() -------Checks
- while true do
- hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,4 * 1,Character)
- if Root.Velocity.y > 1 and hf == nil then
- position = "Jump"
- elseif Root.Velocity.y < -1 and hf == nil then
- position = "Falling"
- elseif Root.Velocity.Magnitude < 5 and hf ~= nil then
- position = "Idle"
- elseif Root.Velocity.Magnitude > 5 and hf ~= nil then
- position = "Walking"
- else
- end
- wait()
- end
- end)
- checks1()
- OrgnC0 = Neck.C0
- local movelimbs = coroutine.wrap(function()
- while wait() do
- TrsoLV = Torso.CFrame.lookVector
- Dist = nil
- Diff = nil
- if not MseGuide then
- print("Failed to recognize")
- else
- local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
- Dist = (Head.CFrame.p-Point).magnitude
- Diff = Head.CFrame.Y-Point.Y
- local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
- Dist2 = (LeftArm.CFrame.p-Point).magnitude
- Diff2 = LeftArm.CFrame.Y-Point.Y
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
- end
- end
- end)
- movelimbs()
- immortal = {}
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
- if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
- v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
- elseif v:IsA("JointInstance") then
- table.insert(immortal,{v,v.Parent,nil,nil,nil})
- end
- end
- for e = 1, #immortal do
- if immortal[e] ~= nil then
- local STUFF = immortal[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if levitate then
- if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:connect(function()
- PART.Parent = PARENT
- end)
- else
- if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- end
- function immortality()
- for e = 1, #immortal do
- if immortal[e] ~= nil then
- local STUFF = immortal[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART == Root then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- hum:Remove()
- PART.Parent = PARENT
- hum = Instance.new("Humanoid",Character)
- if levitate then
- eyo1:Remove()
- eyo2:Remove()
- end
- hum.Name = "noneofurbusiness"
- end
- end
- end
- end
- coroutine.wrap(function()
- while true do
- hum:SetStateEnabled("Dead",false) hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- if hum.Health < .1 then
- immortality()
- end
- wait()
- end
- end)()
- local anims = coroutine.wrap(function()
- while true do
- settime = 0.05
- sine = sine + change
- if position == "Jump" and not attacking then
- change = 1
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .15, 0) * CFrame.Angles(math.rad(10), math.rad(2), math.rad(10)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5, .15, 0) * CFrame.Angles(math.rad(-10), math.rad(-2), math.rad(-10)), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.09)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
- elseif position == "Falling" and not attacking then
- change = 1
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.09)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/12), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/12)), math.rad(0), math.rad(0)), 0.25)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2 + .02 * math.sin(sine/12), 0.2 + .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/12)), math.rad(20), math.rad(0)), 0.25)
- elseif position == "Walking" and not attacking then
- change = 1.4
- walking = true
- ws = 32
- if aiming then
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/8),.45 +.45 * math.sin(sine/8),-.3 - .26*math.sin(sine/8)) * CFrame.Angles(math.rad(75*math.sin(sine/8)),math.rad(-30 + 40*math.sin(sine/8)),math.rad(-10, math.sin(-20 * math.sin(sine/4)))),.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.3,1.5,-1.6) * CFrame.Angles(math.rad(-70 - 3 * math.sin(sine/12)),math.rad(3 * math.sin(sine/12)),math.rad(95 + 2 * math.sin(sine/12))), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .15 + 0.29*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-23), math.rad(12 * -math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52 - .62*math.sin(sine/8), 1.42 - .94 * math.cos(sine/8)/2.8,.2 - .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 - 60* math.sin(sine/8)), math.rad(-30), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52 - .62 * math.sin(sine/8), 1.42 + .94 * math.cos(sine/8)/2.8,.2 + .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 + 60* math.sin(sine/8)), math.rad(30), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
- else
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/8),.45 +.45 * math.sin(sine/8),-.3 - .26*math.sin(sine/8)) * CFrame.Angles(math.rad(75*math.sin(sine/8)),math.rad(-30 + 40*math.sin(sine/8)),math.rad(-10, math.sin(-20 * math.sin(sine/4)))),.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .1 * math.sin(sine/8),.45 -.45 * math.sin(sine/8),-.3 + .26*math.sin(sine/8)) * CFrame.Angles(math.rad(75*-math.sin(sine/8)),math.rad(30 + 40*math.sin(sine/8)),math.rad(10, math.sin(-20 * math.sin(sine/4)))),.3)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .15 + 0.29*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-23), math.rad(12 * -math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/8))), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52 - .62*math.sin(sine/8), 1.42 - .94 * math.cos(sine/8)/2.8,.2 - .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 - 60* math.sin(sine/8)), math.rad(-30), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52 - .62 * math.sin(sine/8), 1.42 + .94 * math.cos(sine/8)/2.8,.2 + .5 * math.sin(sine/8)) * CFrame.Angles(math.rad(20 + 60* math.sin(sine/8)), math.rad(30), math.rad(0), math.cos(65 * math.cos(sine/8))), 0.3)
- end
- elseif position == "Idle" and not attacking then
- change = .5
- spin = true
- if aiming then
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1,0) * CFrame.Angles(math.rad(10 - 1 * math.sin(sine/12)),math.rad(10 + 2 * math.sin(sine/12)),math.rad(-40 + 4 * math.sin(sine/12))), 0.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.3,1.5,-1.6) * CFrame.Angles(math.rad(-70 - 3 * math.sin(sine/12)),math.rad(3 * math.sin(sine/12)),math.rad(95 + 2 * math.sin(sine/12))), 0.2)
- else
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(2 * math.sin(sine/17)),math.rad(4 - 4 * math.sin(sine/12)),math.rad(2 * math.sin(sine/14))), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(2 * math.sin(sine/17)),math.rad(-4 + 4 * math.sin(sine/12)),math.rad(2 * math.sin(sine/14))), 0.2)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),.2)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2 + .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- end
- end
- swait()
- end
- end)
- anims()
- warn("Rayman! Made by Supr14")
Add Comment
Please, Sign In to add comment