Advertisement
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
- do
- print("FE Compatibility code by Mokiros")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --[[
- ALL MIGHT
- By MonolithicDivinity
- This is likely to be kept updating as I find more bugs.
- [Commands]
- E to perform a SMASH, dealing a great amount of damage and flinging the opponent away
- Space to do a super jump, self explanitory.
- B to pause the theme song
- Do enjoy yourselves, and inform me of any bugs.
- --]]
- wait(.1)
- local p = owner
- local char = p.Character
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char["Humanoid"]
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local CanAttack = true
- local shot = 0
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local stanceToggle = "Normal"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local rp = char.HumanoidRootPart
- local bd = char:WaitForChild("Body Colors")
- math.randomseed(os.time())
- hum.WalkSpeed = 9
- char.Health:Destroy()
- hum.MaxHealth = 100
- wait(0.1)
- hum.Health = hum.MaxHealth
- SIDs = {1498946889}
- local eColors={'',''}
- -------------------------------
- Debounces = {CanAttack = true, NoIdl = false, Slashing = false, Slashed = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Reaping = false, Reaped = false}
- ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- ------------------------------------------------------------------------------------------------------------
- --this was made for easy cosmetic editing
- --by koku
- lite = Instance.new("PointLight")
- lite.Parent = torso
- lite.Brightness = 10
- lite.Range = 8
- lite.Color = Color3.new(0,0,0)
- --funcs
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) --Creds to KingAbsalom
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- spawn(function()
- while wait() do
- for i,v in pairs(game.Players.LocalPlayer.Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(game.Players.LocalPlayer.Character:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- end end)
- spawn(function()
- game.Players.LocalPlayer.Character.Shirt:Destroy()
- game.Players.LocalPlayer.Character.Pants:Destroy()
- end)
- ypcall(function()
- local shirt = Instance.new("Shirt", game.Players.LocalPlayer.Character)
- shirt.Name = "Shirt"
- local pants = Instance.new("Pants", game.Players.LocalPlayer.Character)
- pants.Name = "Pants"
- --clothing
- wait(.1)
- game.Players.LocalPlayer.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=368980206"
- game.Players.LocalPlayer.Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=368980663"
- game.Players.LocalPlayer.Character.Head.face:Remove()
- local face = Instance.new("Decal",hed)
- face.Texture="rbxassetid://2060629011"
- end)
- --skin
- bd.HeadColor = BrickColor.new("Pastel brown")
- bd.TorsoColor = BrickColor.new("Pastel brown")
- bd.LeftArmColor = BrickColor.new("Pastel brown")
- bd.RightArmColor = BrickColor.new("Pastel brown")
- bd.LeftLegColor = BrickColor.new("Pastel brown")
- bd.RightLegColor = BrickColor.new("Pastel brown")
- --betterhair by koku
- larm.Size = larm.Size * 1.3
- rarm.Size = rarm.Size * 1.3
- lleg.Size = lleg.Size * 1.3
- rleg.Size = rleg.Size * 1.3
- torso.Size = torso.Size * 1.3
- hed.Size = hed.Size * 1.29
- root.Size = root.Size * 1.3
- newWeld(torso, larm, -.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(1, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- -------------
- hair = Instance.new("Part",game.Players.LocalPlayer.Character.Head)
- hair.BrickColor = BrickColor.new("Daisy orange")
- hair.Material = "Plastic"
- hair.Anchored = false
- hair.CanCollide = false
- hair.Archivable = false
- hair.Locked = true
- hair.Size = Vector3.new(1.5, 1.5, 1.5)
- hairm = Instance.new("SpecialMesh",hair)
- hairm.MeshType = "FileMesh"
- hairm.MeshId = "rbxassetid://1224124764"
- hairm.Scale = Vector3.new(0.07, .075, 0.073)
- newWeld(game.Players.LocalPlayer.Character.Head, hair, 0, 0, 0)
- hair.Weld.C1 = CFrame.new(-.6,.35,-.07) * CFrame.Angles(math.rad(180),math.rad(90),0)
- ----------------------------------------------------
- --------wait(.2)
- local p = owner
- local char = p.Character
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- -------------------------------
- --Converted with ttyyuu12345's model to script plugin v4
- 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"))
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "ChargeAura"
- ParticleEmitter0.Parent = mas
- ParticleEmitter0.Speed = NumberRange.new(0.5, 1)
- ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.541176, 0.541176, 0.541176),Color3.new(1, 1, 1))
- ParticleEmitter0.Enabled = false
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "rbxassetid://1486899653"
- ParticleEmitter0.Transparency = NumberSequence.new(1,0.75,1)
- ParticleEmitter0.ZOffset = 0.5
- ParticleEmitter0.Size = NumberSequence.new(0.40000000596046,0.40000000596046)
- ParticleEmitter0.Lifetime = NumberRange.new(0.69999998807907, 0.69999998807907)
- ParticleEmitter0.LockedToPart = true
- ParticleEmitter0.Rate = 200
- ParticleEmitter0.RotSpeed = NumberRange.new(-50, 50)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- glowey=ParticleEmitter0:Clone()
- glowey.Parent=torso
- glowey.Enabled=true
- ------------------------------------------------------
- GroundWave = function()
- local HandCF2 = CFrame.new(rp.Position - Vector3.new(0,3.3,0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local asd = Instance.new("Part", rp)
- asd.Anchored = true
- asd.CanCollide = false
- asd.Material = "Neon"
- asd.Locked = true
- asd.BrickColor=BrickColor.new("Institutional white")
- asd.Size = Vector3.new(1, 1, 1)
- asd.TopSurface = "Smooth"
- asd.BottomSurface = "Smooth"
- asd.Transparency = 0.35
- asd.CFrame = HandCF2
- wm = Instance.new("SpecialMesh", asd)
- wm.MeshId = "rbxassetid://20329976"
- coroutine.wrap(function()
- for i = 1, 14, 1 do
- wm.Scale = Vector3.new(1 + i*1.1, 1, 1 + i*1.1)
- asd.Size = wm.Scale
- asd.CFrame=CFrame.new(rp.Position - Vector3.new(0,3.3,0)) * CFrame.Angles(math.rad(0), math.rad(0)+i*math.random(-2,2), math.rad(0))
- asd.Transparency = i/14
- wait()
- end
- wait()
- asd:Destroy()
- end)()
- end
- ----------------------------------
- spawn(function()
- while wait(.6) do
- if animpose~="Freefalling" then
- GroundWave()
- end
- end
- end)
- --------------------------------------------------
- --------------------------------------------------
- mod = Instance.new("Model", char)
- function smash()
- part = Instance.new("Part", mod)
- part.Anchored = true
- part.CanCollide = false
- part.FormFactor = "Custom"
- part.Size = Vector3.new(0.2, 0.2, 0.2)
- part.CFrame = rarm.CFrame * CFrame.Angles(math.rad(0), 0, 0)
- part.Transparency = 0.7
- part.BrickColor = BrickColor.new("Institutional white")
- mesh = Instance.new("SpecialMesh", part)
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- mesh.Scale = Vector3.new(4, 4, 4)
- for i,v in pairs(FindNearestTorso(rarm.CFrame.p,5))do
- if v:FindFirstChild('Humanoid') then
- local Humanoid=v:FindFirstChild('Humanoid')
- Humanoid.Jump=true
- wait(.3)
- Humanoid.Health=v.Humanoid.Health-(math.random(90,99))
- v:FindFirstChild("Head").Velocity = hed.CFrame.lookVector * 800
- spawn(function()
- wait(.4)
- v.Humanoid.PlatformStand=false
- end)
- end
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 4, 0.2 do
- rs:wait()
- part.CFrame = rarm.CFrame
- part.Transparency = i
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 1, 0.5)
- end
- part.Parent = nil
- end))
- end
- mod3 = Instance.new("Model", char)
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.ks = true
- Debounces.on = true
- for i = 1, 14 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.9, 0.5) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(90)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.7, 0.9, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(50)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(60), 0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-60), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
- if Debounces.on == false then
- break
- end
- rs:wait()
- end
- chrg = lleg.Touched:connect(function(ht)
- hit = ht.Parent
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") and hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(2)
- hit:FindFirstChild("Humanoid").PlatformStand = true
- hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
- end
- elseif ht and hit:IsA("Accessory") and hit.Parent.Name ~= p.Name and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2)
- hit:FindFirstChild("Humanoid").PlatformStand = true
- hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70
- end
- end)
- for i = 1, 8 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, 0.2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6, 0.9, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(50)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-90), 0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(90), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)), 0.5)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.8, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-15)), 0.5)
- if Debounces.on == false then
- break
- end
- rs:wait()
- end
- smash()
- z = Instance.new("Sound", char)
- z.SoundId = "rbxassetid://200632875"
- z.Volume = 1
- z.Pitch = 0.8
- z1 = Instance.new("Sound", char)
- z1.SoundId = "rbxassetid://200632875"
- z1.Volume = 1
- z1.Pitch = 0.9
- z:Play()
- z1:Play()
- wait(1)
- z:Destroy()
- z1:Destroy()
- chrg:disconnect()
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- Debounces.on = false
- Debounces.NoIdl = false
- end
- end
- end)
- --------------------------------------------
- --debounces start
- Debounces = {
- CanAttack = true;
- CanJoke = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- Slapping = false;
- Slapped = false;
- ks = false;
- Reaping = false;
- Reaped = false;
- }
- mode = "normal"
- --debounces end
- fat = Instance.new("BindableEvent", script)--artificial heartbeat
- fat.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.033333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if frame <= tf 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
- )
- local Touche = {char.Name, }
- function swait(num)
- if num == 0 or num == nil then
- fat.Event:wait()
- else
- for i = 0, num do
- fat.Event:wait()
- end
- end
- end
- ----------------------------------------------------
- function weld5(part0, part1, c0, c1)
- weeld=Instance.new("Weld", part0)
- weeld.Part0=part0
- weeld.Part1=part1
- weeld.C0=c0
- weeld.C1=c1
- return weeld
- end
- ----------------------------------------------------
- mod=Instance.new('Model',char)
- ------
- mod4 = Instance.new("Model",char)
- -------------------------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 52 then
- if Debounces.CanAttack == true then
- if stanceToggle ~= "Floating" then
- char["Humanoid"].WalkSpeed = 50
- elseif Debounces.CanAttack == false then
- elseif stanceToggle == "Floating" then
- wait()
- end
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 52 then
- char["Humanoid"].WalkSpeed = 9
- end
- end)
- --------------------------------
- function lerp(a, b, t) -- Linear interpolation
- return a + (b - a)*t
- end
- function slerp(a, b, t) --Spherical interpolation
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- -----
- function matrixInterpolate(a, b, t)
- local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
- local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
- local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
- local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
- local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
- local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
- local t = v1:Dot(v2)
- if not (t < 0 or t == 0 or t > 0) then -- Failsafe
- return CFrame.new()
- end
- return CFrame.new(
- v0.x, v0.y, v0.z,
- v1.x, v1.y, v1.z,
- v2.x, v2.y, v2.z,
- v3.x, v3.y, v3.z)
- end
- ----------------------------------------------------
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- end
- NewSound = function(parent, pitch, volume, id, looped)
- local s = Instance.new("Sound", parent)
- s.Pitch = pitch
- s.Volume = volume
- s.SoundId = "rbxassetid://" .. id
- s.Looped = looped
- return s
- end
- CBP = {0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1}
- ----------------------------------------------------
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- ---------------------
- mouse.KeyDown:connect(function(key)
- if key == "b" and mus.Playing == true then
- mus:Pause()
- elseif key == "b" and mus.Playing == false then
- mus.SoundId = "http://www.roblox.com/asset/?id="..SIDs[math.random(1,#SIDs)]
- mus:Play()
- end
- end)
- ----------------------------------------------------
- spawn(function()
- hum.MaxHealth=1000
- wait()
- hum.Health=hum.MaxHealth
- end)
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if key == " " and Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.on = true
- Debounces.NoIdl = true
- do
- wait(.1)
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Institutional white")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0.35
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.Position = torso.Position - Vector3.new(0, 5, 0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm.Scale = Vector3.new(1, 1, 2)
- x = Instance.new("Sound", char)
- x.SoundId = "http://www.roblox.com/asset/?id=169445602"
- x.Looped = false
- x.Pitch = 0.7
- x.Volume = 1
- x:Play()
- coroutine.wrap(function()
- for i = 1, 60, 2 do
- rngm.Scale = Vector3.new(2 + i * 2, 2 + i * 2, 1)
- rng.Transparency = i / 60
- wait()
- end
- wait()
- rng:Destroy()
- end)()
- hum.WalkSpeed = 80
- BV = Instance.new("BodyVelocity", torso)
- BV.maxForce = Vector3.new(0, 10000, 0)
- BV.P = 270000
- BV.velocity = Vector3.new(0, 2500, 0)
- wait(2)
- BV:Destroy()
- Debounces.on = false
- Debounces.NoIdl = false
- local ry, ht, ps
- x:Destroy()
- z = Instance.new("Sound", hed)
- z.SoundId = "rbxassetid://142070127"
- z.Volume = 1
- wait(0.1)
- z:Play()
- -- Landing()
- hum.WalkSpeed = 9
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- end
- end
- end
- end)
- ----------------------------------------------------
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local grab = false
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- -------------------------------
- jump = false
- rs:connect(function()
- if char.Humanoid.Jump == true then
- jump = true
- else
- jump = false
- end
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end
- )
- sine = sine + change
- if jump == true then
- animpose = "Jumping"
- else
- if ffing == true then
- animpose = "Freefalling"
- else
- if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- else
- if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- else
- if (torso.Velocity * Vector3.new(1, 0, 1)).magnitude > 20 then
- animpose = "Running"
- end
- end
- end
- end
- end
- local RightLeg = CFrame.new(0.5, -1, 0)
- local LeftLeg = CFrame.new(-0.5, -1, 0)
- local lefth = (torso.CFrame*LeftLeg)
- local righth = (torso.CFrame*RightLeg)
- local speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
- local TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
- local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
- local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if stanceToggle == "Normal" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
- end
- wait()
- end
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" and stanceToggle == "Normal" then
- change = .5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3+0.005*math.cos(sine/10),0.6+0.01*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(15-0*math.cos(sine/10)),math.rad(-15-0*math.cos(sine/10)),math.rad(-10+0*math.cos(sine/10))), 0.8)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-0.5, 0.5, .1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3-0.005*math.cos(sine/10),0.6+0.01*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(15-0*math.cos(sine/10)),math.rad(15+0*math.cos(sine/10)),math.rad(10-0*math.cos(sine/10))), 0.8)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.5, 0.5, .1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 + 0.05 * math.cos(sine / 10)) * CFrame.Angles(math.rad(0), math.rad(-0 + 0 * math.cos(sine / 10)), math.rad(0)), 0.45)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(-8 - 1 * math.sin(sine / 10)), math.rad(0), math.rad(0)), 0.45)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+4*math.cos(sine/10)), math.rad(0), 0), 0.1)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.0*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(0+0*math.cos(sine/10)), 0), 0.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.6, -0.14+0.00*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-0*math.cos(sine/10)), math.rad(5+0*math.cos(sine/10))), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, -0.00) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1.6, 0) * CFrame.Angles(math.rad(0), math.rad(10-0*math.cos(sine/10)), math.rad(-5+0*math.cos(sine/10))), 0.1)
- else
- if animpose == "Walking" and stanceToggle == "Normal" then
- change = .35
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, 0.5 - 0.05 * math.cos(sine / 2), math.sin(sine / 4) / 4) * CFrame.Angles(-math.sin(sine / 4) / 2.3, -math.sin(sine / 4) / 3, math.rad(10 + 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, 0.5 + 0.05 * math.cos(sine / 2), -math.sin(sine / 4) / 4) * CFrame.Angles(math.sin(sine / 4) / 2.3, -math.sin(sine / 4) / 3, math.rad(-10 - 7 * math.cos(sine / 2)) + root.RotVelocity.Y / 30), 0.4)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 - 0.1 * math.cos(sine / 2)) * CFrame.Angles(math.rad(-10 - 4 * math.cos(sine / 2)), math.rad(0 - 8 * math.cos(sine / 4) / 2.3), math.rad(0)), 0.4)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, -.50, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.9 + 0.12 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-4 + 2 * math.cos(sine / 2)), math.rad(0 + 14 * math.cos(sine / 4) / 2.3) + root.RotVelocity.Y / 30, math.rad(0) + root.RotVelocity.Y / 30), 0.4)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
- lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.65, -1.5 - math.cos(sine / 4) * 0.3, 0 + math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3.4 * AngleThetaL.Z, AngleThetaL.X, math.sin(sine / 4) * 3 * -AngleThetaL.X - root.RotVelocity.Y / 20), 0.8)
- lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.65, -1.5 + math.cos(sine / 4) * 0.3, 0 - math.sin(sine / 4) * 0.1) * CFrame.Angles(math.sin(sine / 4) * 3.4 * -AngleThetaR.Z, AngleThetaR.X, math.sin(sine / 4) * 3 * AngleThetaR.X - root.RotVelocity.Y / 20), 0.8)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
- else
- if animpose == "Running" and stanceToggle == "Normal" then
- change = .49
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(-.5, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24 + 0.6 * math.cos(sine / 4) / 1.4, 0.54, 0 - 0.8 * math.cos(sine / 4)) * CFrame.Angles(math.rad(6 + 140 * math.cos(sine / 4) / 1.2), math.rad(0), math.rad(20 + 70 * math.cos(sine / 4))), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 2, -0.2) * CFrame.Angles(math.rad(-8 + 12 * math.cos(sine / 2) / 1.5), math.rad(0 + 12 * math.cos(sine / 4)), math.rad(0)), 0.2)
- hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0) - root.RotVelocity.Y / 10, math.rad(0)), 0.5)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.2 * math.cos(sine / 2) / 1.7, 0) * CFrame.Angles(math.rad(-14 + 10 * math.cos(sine / 2) / 1.5), math.rad(0 - 12 * math.cos(sine / 4)) - root.RotVelocity.Y / 10, math.rad(0) + root.RotVelocity.Y / 20), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.8 - 0.4 * math.cos(sine / 4) / 2, math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + -math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.7)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(.1, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8 + 0.4 * math.cos(sine / 4) / 2, -math.sin(sine / 4) / 2) * CFrame.Angles(math.rad(-10) + math.sin(sine / 4) / 1.2, math.rad(0 + 12 * math.cos(sine / 4)) + root.RotVelocity.Y / 10, 0), 0.7)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(-.1, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- else
- if animpose == "Jumping" then
- change = .5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- else
- if animpose == "Freefalling" then
- change = .5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(math.rad(-40), math.rad(20), math.rad(50)), 0.2)
- rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.36)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(110), math.rad(-20), math.rad(-30)), 0.2)
- larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
- torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, -0.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
- lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, 0.5) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- end
- end
- end
- end
- end
- end
- end
- )
- local doe = 400
- coroutine.wrap(function()
- while 1 do
- swait()
- if doe <= 360 then
- doe = doe + 2
- else
- doe = 0
- end
- end
- end)()
- while true do
- swait()
- while true do
- swait()
- if rp:FindFirstChild("mus")==nil then
- mus = Instance.new("Sound",rp)
- mus.Name = "mus"
- mus.SoundId = "http://www.roblox.com/asset/?id="..SIDs[math.random(1,#SIDs)]
- mus.Looped = true
- mus.Volume = 6
- mus:Play()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement