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,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- 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 TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- 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
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled 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,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true 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
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- -------Nuclear Hulk-------
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- 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 shot = 0
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local stanceToggle = "Normal"
- local rad = math.rad
- local GroundShake = false
- local GroundShake2 = false
- math.randomseed(os.time())
- hum.WalkSpeed = 5
- char.Health:Destroy()
- hum.MaxHealth = math.huge
- wait(0.1)
- hum.Health = math.huge
- um = Instance.new("Part",char)
- um.Name = "Immune"
- um.CanCollide = false
- um.Anchored = true
- um.Transparency = 1
- dead = true
- ----------------------------------------------------
- Debounces = {
- on = false;
- ks = false;
- CanAttack = true;
- CanJoke = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- Grabbing = false;
- Grabbed = false;
- }
- local Touche = {char.Name, }
- ----------------------------------------------------
- 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
- ----------------------------------------------------
- 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
- ----------------------------------------------------
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(hed:children()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- ----------------------------------------------------
- function HasntTouched(plrname)
- local ret = true
- for _, v in pairs(Touche) do
- if v == plrname then
- ret = false
- end
- end
- return ret
- end
- ----------------------------------------------------
- larm.Size = larm.Size * 2
- rarm.Size = rarm.Size * 2
- lleg.Size = lleg.Size * 2
- rleg.Size = rleg.Size * 2
- torso.Size = torso.Size * 2
- hed.Size = hed.Size * 2
- root.Size = root.Size * 2
- ----------------------------------------------------
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 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)
- ------------------------------ Cap ---------------------------------------
- Hats1 = Instance.new("Part")
- Hats1.Parent = char
- Hats1.BrickColor = BrickColor.new("White")
- Hats1.formFactor = "Symmetric"
- Hats1.Size = Vector3.new(1, 1, 1)
- Hats1.CFrame = hed.CFrame
- Hats1:BreakJoints()
- Hats1.CanCollide = false
- Hats1.TopSurface = "Smooth"
- Hats1.BottomSurface = "Smooth"
- Weld = Instance.new("Weld")
- Weld.Part0 = hed
- Weld.Part1 = Hats1
- Weld.Parent = hed
- Weld.C0 = CFrame.new(0, 1.5, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hats1
- Mesh.MeshId = "http://www.roblox.com/asset/?id=91673856"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=91673893"
- Mesh.Scale = Vector3.new(2.2, 2.2, 2.2)
- ----------------------- Glasses --------------------------------
- Hats2 = Instance.new("Part")
- Hats2.Parent = char
- Hats2.formFactor = "Symmetric"
- Hats2.Size = Vector3.new(1, 1, 1)
- Hats2.CFrame = hed.CFrame
- Hats2:BreakJoints()
- Hats2.CanCollide = false
- Hats2.TopSurface = "Smooth"
- Hats2.BottomSurface = "Smooth"
- Weld = Instance.new("Weld")
- Weld.Part0 = hed
- Weld.Part1 = Hats2
- Weld.Parent = hed
- Weld.C0 = CFrame.new(0, 0, -0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hats2
- Mesh.MeshId = "http://www.roblox.com/asset/?id=124987271"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=124987465"
- Mesh.Scale = Vector3.new(2.2, 2.2, 2.2)
- ----------------------------------------------------
- z = Instance.new("Sound", char)
- z.SoundId = "rbxassetid://1468547405"--209113706
- z.Looped = true
- z.Pitch = 1
- z.Volume = 1.3
- wait(.01)
- z:Play()
- ----------------------------------------------------
- p:ClearCharacterAppearance()
- wait(0.1)
- p.Character.Head.BrickColor = BrickColor.new("Brown")
- p.Character.Torso.BrickColor = BrickColor.new("Brown")
- p.Character["Right Arm"].BrickColor = BrickColor.new("Brown")
- p.Character["Right Leg"].BrickColor = BrickColor.new("Brown")
- p.Character["Left Leg"].BrickColor = BrickColor.new("Brown")
- p.Character["Left Arm"].BrickColor = BrickColor.new("Brown")
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=593699904"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=129458425"
- wait(.01)
- p.Character.Head.Material = "Neon"
- p.Character.Torso.Material = "Plastic"
- p.Character["Right Arm"].Material = "Plastic"
- p.Character["Right Leg"].Material = "Plastic"
- p.Character["Left Leg"].Material = "Plastic"
- p.Character["Left Arm"].Material = "Plastic"
- CV="Brown"
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = hed
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Antique"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(0,2,0)
- v.Shape="Block"
- text.Text = "The Smoke"
- ----------------------------------------------------
- local m = Instance.new("Model")
- m.Name = "Titanius"
- p6 = Instance.new("Part", m)
- p6.Name = "Handle"
- p6.BrickColor = BrickColor.new("white")
- p6.FormFactor = Enum.FormFactor.Custom
- p6.Size = Vector3.new(1.5999999, 13.6000004, 1)
- p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005)
- p6.CanCollide = false
- p6.Locked = true
- p6.Elasticity = 0
- p6.BottomSurface = Enum.SurfaceType.Smooth
- p6.TopSurface = Enum.SurfaceType.Smooth
- b6 = Instance.new("SpecialMesh",p6)
- b6.MeshId = "rbxassetid://54983181"
- b6.Offset = Vector3.new(0,0,0)
- b6.Scale = Vector3.new(4,4,4)
- b6.VertexColor = Vector3.new(100, 100, 100)
- b6.TextureId = "rbxassetid://54983107"
- p12 = Instance.new("Part", m)
- p12.Name = "BladeCenter"
- p12.BrickColor = BrickColor.new("Really red")
- p12.Material = "Neon"
- p12.FormFactor = Enum.FormFactor.Symmetric
- p12.Size = Vector3.new(1, 1, 1)
- p12.CFrame = CFrame.new(67.4995346, 6.83217764, 72.2514038, -0.999972522, 2.42275873e-005, 0.000103325896, -8.39982677e-005, 4.44650614e-005, -0.999960959, -4.06451727e-005, -0.999940753, -1.25430051e-005)
- p12.CanCollide = false
- p12.Locked = true
- p12.BottomSurface = Enum.SurfaceType.Smooth
- p12.TopSurface = Enum.SurfaceType.Smooth
- b12 = Instance.new("SpecialMesh", p12)
- b12.MeshType = Enum.MeshType.Brick
- b12.Name = "Mesh"
- b12.Scale = Vector3.new(0.499999911, 1, 0.699999928)
- p18 = Instance.new("WedgePart", m)
- p18.BrickColor = BrickColor.new("Really red")
- p18.Name = "BladePart1"
- p18.Material = "Neon"
- p18.Name = "Wedge"
- p18.FormFactor = Enum.FormFactor.Symmetric
- p18.Size = Vector3.new(1, 1, 1)
- p18.CFrame = CFrame.new(67.499321, 6.83199787, 69.4816895, 0.999972522, -3.68033288e-005, -4.22928351e-005, 2.29664256e-005, -1.65102574e-005, 0.999963701, -2.03872096e-005, -0.999943435, -4.84290831e-005)
- p18.CanCollide = false
- p18.Locked = true
- p18.BottomSurface = Enum.SurfaceType.Smooth
- p18.TopSurface = Enum.SurfaceType.Smooth
- b18 = Instance.new("SpecialMesh", p18)
- b18.MeshType = Enum.MeshType.Wedge
- b18.Name = "Mesh"
- b18.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928)
- p19 = Instance.new("WedgePart", m)
- p19.BrickColor = BrickColor.new("Really red")
- p19.Name = "BladePart2"
- p19.Material = "Neon"
- p19.Name = "Wedge"
- p19.FormFactor = Enum.FormFactor.Symmetric
- p19.Size = Vector3.new(1, 4, 2)
- p19.CFrame = CFrame.new(67.4994736, 6.83213568, 75.0314102, -0.999972522, 3.68059118e-005, -0.000103325001, -8.40002976e-005, -4.4521752e-005, 0.999963701, 2.03864402e-005, 0.999943435, 1.26029336e-005)
- p19.CanCollide = false
- p19.Locked = true
- p19.BottomSurface = Enum.SurfaceType.Smooth
- p19.TopSurface = Enum.SurfaceType.Smooth
- b19 = Instance.new("SpecialMesh", p19)
- b19.MeshType = Enum.MeshType.Wedge
- b19.Name = "Mesh"
- b19.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928)
- w6 = Instance.new("Weld", p6)
- w6.Name = "Part_Weld"
- w6.Part0 = p6
- w6.C0 = CFrame.new(-11.2799978, -66.1456223, -67.5023346, -4.37113883e-008, 1, 4.37113883e-008, 0, -4.37113883e-008, 1, 1, 4.37113883e-008, 1.91068547e-015)
- w12 = Instance.new("Weld", p12)
- w12.Name = "Part_Weld"
- w12.Part0 = p12
- w12.C0 = CFrame.new(67.5028763, 72.2527161, 6.8300252, -1, -9.15522687e-005, -3.05189751e-005, 3.05161811e-005, 3.05189751e-005, -1, 9.15532e-005, -1, -3.05161811e-005)
- w18 = Instance.new("Weld", p18)
- w18.Name = "Wedge_Weld"
- w18.Part0 = p18
- w18.C0 = CFrame.new(-67.4979324, 69.4871521, -6.82958078, 1, 3.05171125e-005, -3.05180438e-005, -3.05171125e-005, -3.05180438e-005, -1, -3.05180438e-005, 1, -3.05171125e-005)
- w18.Part1 = p19
- w18.C1 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005)
- w19 = Instance.new("Weld", p19)
- w19.Name = "Part_Weld"
- w19.Part0 = p19
- w19.C0 = CFrame.new(67.4982986, -75.0367737, -6.83008671, -1, -9.15532e-005, 3.05161811e-005, 3.05189751e-005, -3.05161811e-005, 1, -9.15522687e-005, 1, 3.05189751e-005)
- m.Parent = char
- m:MakeJoints()
- ----------------------------------------------------
- local cor = Instance.new("Part", char.Titanius)
- cor.Name = "Thingy"
- cor.Locked = true
- cor.BottomSurface = 0
- cor.CanCollide = false
- cor.Size = Vector3.new(1, 13, 1)
- cor.Transparency = 1
- cor.TopSurface = 0
- corw = Instance.new("Weld", cor)
- corw.Part0 = rarm
- corw.Part1 = cor
- corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- corw.C1 = CFrame.new(0, 0, 0)
- weld1 = Instance.new("Weld", char.Titanius)
- weld1.Part0 = cor
- weld1.Part1 = p6
- weld1.C0 = CFrame.new(0, 0, 0)
- ----------------------------------------------------
- hitb = Instance.new("Part", char.Titanius)
- hitb.Name = "Thingy2"
- hitb.Locked = true
- hitb.BottomSurface = 0
- hitb.CanCollide = false
- hitb.Size = Vector3.new(0, 30, 0)
- hitb.Transparency = 1
- hitb.TopSurface = 0
- weld2 = Instance.new("Weld", char.Titanius)
- weld2.Part0 = hitb
- weld2.Part1 = p6
- weld2.C0 = CFrame.new(0, .6, 0)
- ----------------------------------------------------
- Face = 'rbxassetid://0'
- local face=hed:FindFirstChild'face'
- face.Texture = Face
- face=Instance.new("Decal",hed)
- face.Face="Front"
- face.Texture="rbxassetid://284672459"
- hum:SetStateEnabled("Dead",false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- if hum.Health < 5 and candie == true then
- hum.Name = "NOMOREDAMAGE"
- canheal = true
- done = false
- done = true
- candie = false
- dead = true
- deathchat = true
- end
- if deathchat == true then
- deathchat = false
- idle = false
- hed.face.Texture = "0"
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- idle1 = false
- canattack = false
- gothitdecal2 = Instance.new("Decal",torso)
- gothitdecal2.Texture = "http://www.roblox.com/asset/?id=492675333"
- gothitdecal2.Face = "Back"
- gothitdecal1 = Instance.new("Decal",torso)
- gothitdecal1.Texture = "http://www.roblox.com/asset/?id=492675333"
- hed.Transparency = 1
- torso.Transparency = 1
- larm.Transparency = 1
- rarm.Transparency = 1
- lovecounter = false
- text.Text = ". . ."
- lleg.Transparency = 1
- rleg.Transparency = 1
- handle.Transparency = 1
- Handle.Transparency = 1
- wait(1)
- refused:Stop()
- wait(2)
- text.Text = "I am god... i refuse to die to people like you. . . try again, i dare you."
- wait(1.5)
- candie = true
- idle = true
- idle1 = true
- hed.face.Texture = "http://www.roblox.com/asset/?id=178913044"
- canattack = true
- lleg.Anchored = false
- rleg.Anchored = false
- larm.Anchored = false
- rarm.Anchored = false
- hed.Anchored = false
- torso.Anchored = false
- gothitdecal2:Destroy()
- gothitdecal1:Destroy()
- for i = 1,10 do
- wait()
- hed.Transparency = hed.Transparency - 0.1
- torso.Transparency = torso.Transparency - 0.1
- larm.Transparency = larm.Transparency - 0.1
- rarm.Transparency = rarm.Transparency - 0.1
- lleg.Transparency = lleg.Transparency - 0.1
- rleg.Transparency = rleg.Transparency - 0.1
- handle.Transparency = handle.Transparency - 0.1
- Handle.Transparency = Handle.Transparency - 0.1
- end
- dead = false
- deathchat1 = false
- canheal = false
- hum.Health = math.huge
- wait(1)
- hum.Name = "Humanoid"
- end
- if GroundShake == true then
- for i,v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") then
- if v.Size.x > 150 then
- v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-1,1)),rad(math.random(-1,1)),rad(math.random(-1,1)))
- end
- end
- end
- end
- if GroundShake2 == true then
- for i,v in pairs(workspace:GetChildren()) do
- if v:IsA("Part") then
- if v.Size.x > 150 then
- v.CFrame = CFrame.new(v.Position) * CFrame.Angles(rad(math.random(-2,2)),rad(math.random(-2,2)),rad(math.random(-2,2)))
- end
- end
- end
- end
- local num = 0
- GroundWave2 = function()
- local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- Colors = {"White", "White"}
- local wave3 = Instance.new("Part", char)
- wave3.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave3.Anchored = true
- wave3.Name = "Wave"
- wave3.CanCollide = false
- wave3.Locked = true
- wave3.Size = Vector3.new(1, 1, 1)
- wave3.TopSurface = "Smooth"
- wave3.BottomSurface = "Smooth"
- wave3.Transparency = 0.35
- wave3.CFrame = HandCF
- wm1 = Instance.new("SpecialMesh", wave3)
- wm1.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm1.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave3.Size = wm1.Scale
- wave3.CFrame = HandCF
- wave3.Transparency = i/30
- wait()
- end
- wait()
- wave3:Destroy()
- end)()
- end
- GroundWave3 = function()
- local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"White", "White"}
- local wave2 = Instance.new("Part", char)
- wave2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave2.Anchored = true
- wave2.Name = "Wave"
- wave2.CanCollide = false
- wave2.Locked = true
- wave2.Size = Vector3.new(1, 1, 1)
- wave2.TopSurface = "Smooth"
- wave2.BottomSurface = "Smooth"
- wave2.Transparency = 0.35
- wave2.CFrame = HandCF
- wm2 = Instance.new("SpecialMesh", wave2)
- wm2.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm2.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave2.Size = wm2.Scale
- wave2.CFrame = HandCF
- wave2.Transparency = i/30
- wait()
- end
- wait()
- wave2:Destroy()
- end)()
- end
- GroundWave4 = function()
- local HandCF = char["Beam"..num].CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- Colors = {"White", "White"}
- local wave1 = Instance.new("Part", char)
- wave1.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave1.Anchored = true
- wave1.Name = "Wave"
- wave1.CanCollide = false
- wave1.Locked = true
- wave1.Size = Vector3.new(1, 1, 1)
- wave1.TopSurface = "Smooth"
- wave1.BottomSurface = "Smooth"
- wave1.Transparency = 0.35
- wave1.CFrame = HandCF
- wm3 = Instance.new("SpecialMesh", wave1)
- wm3.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm3.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave1.Size = wm3.Scale
- wave1.CFrame = HandCF
- wave1.Transparency = i/30
- wait()
- end
- wait()
- wave1:Destroy()
- end)()
- end
- --------------------------------------------------------------------------
- --transform
- GroundWave5 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave11 = Instance.new("Part", char)
- wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave11.Anchored = true
- wave11.Name = "Wave"
- wave11.CanCollide = false
- wave11.Locked = true
- wave11.Size = Vector3.new(1, 1, 1)
- wave11.TopSurface = "Smooth"
- wave11.BottomSurface = "Smooth"
- wave11.Transparency = 0.35
- wave11.CFrame = HandCF
- wm31 = Instance.new("SpecialMesh", wave11)
- wm31.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave11.Size = wm31.Scale
- wave11.CFrame = HandCF
- wave11.Transparency = i/30
- wait()
- end
- wait()
- wave11:Destroy()
- end)()
- end
- GroundWave6 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave111 = Instance.new("Part", char)
- wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave111.Anchored = true
- wave111.Name = "Wave"
- wave111.CanCollide = false
- wave111.Locked = true
- wave111.Size = Vector3.new(1, 1, 1)
- wave111.TopSurface = "Smooth"
- wave111.BottomSurface = "Smooth"
- wave111.Transparency = 0.35
- wave111.CFrame = HandCF
- wm311 = Instance.new("SpecialMesh", wave111)
- wm311.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave111.Size = wm311.Scale
- wave111.CFrame = HandCF
- wave111.Transparency = i/30
- wait()
- end
- wait()
- wave111:Destroy()
- end)()
- end
- GroundWave7 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave1111 = Instance.new("Part", char)
- wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave1111.Anchored = true
- wave1111.Name = "Wave"
- wave1111.CanCollide = false
- wave1111.Locked = true
- wave1111.Size = Vector3.new(1, 1, 1)
- wave1111.TopSurface = "Smooth"
- wave1111.BottomSurface = "Smooth"
- wave1111.Transparency = 0.35
- wave1111.CFrame = HandCF
- wm3111 = Instance.new("SpecialMesh", wave1111)
- wm3111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave1111.Size = wm3111.Scale
- wave1111.CFrame = HandCF
- wave1111.Transparency = i/30
- wait()
- end
- wait()
- wave1111:Destroy()
- end)()
- end
- GroundWave8 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave11111 = Instance.new("Part", char)
- wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave11111.Anchored = true
- wave11111.Name = "Wave"
- wave11111.CanCollide = false
- wave11111.Locked = true
- wave11111.Size = Vector3.new(1, 1, 1)
- wave11111.TopSurface = "Smooth"
- wave11111.BottomSurface = "Smooth"
- wave11111.Transparency = 0.35
- wave11111.CFrame = HandCF
- wm31111 = Instance.new("SpecialMesh", wave11111)
- wm31111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave11111.Size = wm31111.Scale
- wave11111.CFrame = HandCF
- wave11111.Transparency = i/30
- wait()
- end
- wait()
- wave11111:Destroy()
- end)()
- end
- GroundWave9 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave111111 = Instance.new("Part", char)
- wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave111111.Anchored = true
- wave111111.Name = "Wave"
- wave111111.CanCollide = false
- wave111111.Locked = true
- wave111111.Size = Vector3.new(1, 1, 1)
- wave111111.TopSurface = "Smooth"
- wave111111.BottomSurface = "Smooth"
- wave111111.Transparency = 0.35
- wave111111.CFrame = HandCF
- wm311111 = Instance.new("SpecialMesh", wave111111)
- wm311111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave111111.Size = wm311111.Scale
- wave111111.CFrame = HandCF
- wave111111.Transparency = i/30
- wait()
- end
- wait()
- wave111111:Destroy()
- end)()
- end
- GroundWave10 = function()
- local HandCF = root.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave1111111 = Instance.new("Part", char)
- wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave1111111.Anchored = true
- wave1111111.Name = "Wave"
- wave1111111.CanCollide = false
- wave1111111.Locked = true
- wave1111111.Size = Vector3.new(1, 1, 1)
- wave1111111.TopSurface = "Smooth"
- wave1111111.BottomSurface = "Smooth"
- wave1111111.Transparency = 0.35
- wave1111111.CFrame = HandCF
- wm3111111 = Instance.new("SpecialMesh", wave1111111)
- wm3111111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave1111111.Size = wm3111111.Scale
- wave1111111.CFrame = HandCF
- wave1111111.Transparency = i/30
- wait()
- end
- wait()
- wave1111111:Destroy()
- end)()
- end
- local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- function nooutline(part)
- part.TopSurface, part.BottomSurface, part.RightSurface, part.LeftSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function debris(cfremz, thepart, amt)
- for j = 1, amt do
- do
- local pr = Instance.new("Part")
- nooutline(pr)
- pr.Name = "debrisobeb"
- pr.Anchored = true
- pr.BrickColor = thepart.BrickColor
- pr.CanCollide = true
- pr.Material = thepart.Material
- pr.Transparency = thepart.Transparency
- pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24))
- pr.CFrame = cfremz * CFrame.Angles(0, math.rad(amt * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
- pr.Parent = workspace
- game.Debris:AddItem(pr, 25)
- delay(15, function()
- if pr then
- pr.CanCollide = false
- pr.Anchored = false
- end
- end)
- end
- end
- for c = 1, amt do
- do
- local pr2 = Instance.new("Part")
- nooutline(pr2)
- pr2.Name = "moredebr"
- pr2.Anchored = false
- pr2.BrickColor = thepart.BrickColor
- pr2.CanCollide = false
- pr2.Material = thepart.Material
- pr2.Transparency = thepart.Transparency
- pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18))
- pr2.CFrame = cfremz * CFrame.Angles(0, math.rad(30 * c), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
- pr2.Parent = workspace
- pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75))
- pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35))
- game.Debris:AddItem(pr2, 45)
- delay(2, function()
- pr2.CanCollide = true
- wait(10)
- if pr2 then
- pr2.CanCollide = false
- end
- end)
- 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
- par,loc=workspace:FindPartOnRay(Ray.new(root.Position,(root.Position-(root.Position-Vector3.new(0,2,0))).unit*-500),root)
- local acos = math.acos
- local sqrt = math.sqrt
- local Vec3 = Vector3.new
- local fromAxisAngle = CFrame.fromAxisAngle
- local function toAxisAngle(CFr)
- local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
- local Angle = math.acos((R00+R11+R22-1)/2)
- local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- A = A == 0 and 0.00001 or A
- local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- B = B == 0 and 0.00001 or B
- local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- C = C == 0 and 0.00001 or C
- local x = (R21-R12)/sqrt(A)
- local y = (R02-R20)/sqrt(B)
- local z = (R10-R01)/sqrt(C)
- return Vec3(x,y,z),Angle
- end
- function ApplyTrig(Num,Func)
- local Min,Max = Func(0),Func(1)
- local i = Func(Num)
- return (i-Min)/(Max-Min)
- end
- function LerpCFrame(CFrame1,CFrame2,Num)
- local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
- return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
- end
- function Crater(Torso,Radius)
- Spawn(function()
- local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
- local Ignore = {}
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Character ~= nil then
- Ignore[#Ignore+1] = v.Character
- end
- end
- local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
- if Hit == nil then return end
- local Parts = {}
- for i = 1,360,10 do
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.CanCollide = false
- P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
- if math.random(0,5) == 0 then -- rubble
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.CanCollide = false
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
- end
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
- end
- wait(0.02)
- end
- for i,v in pairs(Parts) do
- if v[1].Size.X > 2.1 then
- v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
- end
- v[1].Anchored = false
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].Transparency = i
- if i == 1 then
- v[1]:Destroy()
- elseif i >= 0.25 then
- v[1].CanCollide = false
- end
- end
- wait(0.02)
- end
- Parts = nil
- end)
- end
- 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 FindNearestHead(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Head.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Head")then
- if v ~= char then
- if(v.Head.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function FindNearestRightArm(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.RightArm.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Right Arm")then
- if v ~= char then
- if(v.RightArm.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function FindNearestLeftArm(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.LeftArm.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Left Arm")then
- if v ~= char then
- if(v.LeftArm.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function FindNearestRightLeg(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.RightLeg.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Right Leg")then
- if v ~= char then
- if(v.RightLeg.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function FindNearestLeftLeg(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.LeftLeg.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Left Leg")then
- if v ~= char then
- if(v.LeftLeg.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- mouse.KeyDown:connect(function(key)--------------------------------------------Roar
- if key == "q" then
- hum.WalkSpeed = 0
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.on = true
- for i = 1, 30 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
- if Debounces.on == false then break end
- rs:wait(6)
- end
- v = Instance.new("Sound")
- v.SoundId = "rbxassetid://609079653"
- v.Parent = char
- v.Looped = false
- v.Pitch = 0.8
- v.Volume = 50
- wait(.01)
- v:Play()
- local Shockwave = function()
- local rng1 = Instance.new("Part", char)
- rng1.Anchored = true
- rng1.BrickColor = BrickColor.new("Black")
- rng1.CanCollide = false
- rng1.FormFactor = 3
- rng1.Name = "Ring"
- rng1.Size = Vector3.new(1, 1, 1)
- rng1.Transparency = 0.35
- rng1.TopSurface = 0
- rng1.BottomSurface = 0
- local rngm1 = Instance.new("SpecialMesh", rng1)
- rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm1.Scale = Vector3.new(10, 10, 1)
- rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0)
- local Wave = Instance.new("Part", game.Workspace--[[?]])
- Wave.Name = "Shockwave"
- Wave.BrickColor = BrickColor.new("Black")
- Wave.Size = Vector3.new(1, 1, 1)
- Wave.Shape = "Ball"
- Wave.CanCollide = false
- Wave.Anchored = true
- Wave.TopSurface = 0
- Wave.BottomSurface = 0
- Wave.Touched:connect(function(hit)
- if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
- local Occlude = true
- local NotOccludes = {
- char.Name;
- "Wings";
- "Scythe";
- "Thingy";
- "Thingy2"; -- put all of the names in a table pls
- }
- for i,v in pairs(NotOccludes) do
- if hit.Parent.Name == v then
- Occlude = false
- end
- end
- --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then
- if Occlude then
- hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1
- hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120
- end
- end
- end)
- Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
- coroutine.wrap(function()
- for i = 1, 20, 0.2 do
- rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1)
- rng1.Transparency = i/20
- rng1.CFrame = Wave.CFrame
- wait()
- end
- wait()
- rng1:Destroy()
- end)()
- Delay(0, function()
- for i = 1, 50, 1 do
- Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
- Wave.CFrame = char.Torso.CFrame
- local t = i / 50
- Wave.Transparency = t
- wait()
- end
- Wave:Destroy()
- end)
- Delay(0, function()
- while wait() do
- if Wave ~= nil then
- Wave.CFrame = char.Torso.CFrame
- else
- break
- end
- end
- end)
- end
- new = Instance.new
- v3 = Vector3.new
- a21e = new("Part",char)
- a21e.Name = "Beam"..num
- a21e.Locked = true
- a21e.Size = v3(1,1,1)
- a21e.CanCollide = false
- a21e.Position = v3(999,999,999)
- a21e.BrickColor = BrickColor.new("Really red")
- a21e.Material = "Neon"
- a21e.Transparency = 0
- aa21e = new("SpecialMesh",a21e)
- a21e.Anchored = true
- a21e.Position = root.Position
- aa21e.MeshType = "Sphere"
- aa21e.Scale = v3(1,1,1)
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(workspace:children()) do
- charr = v:FindFirstChild('Character')
- for i = 1, 40 do
- charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 40 do
- char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- char.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end))
- coroutine.resume(coroutine.create(function()
- par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
- if par then
- local cfremz = CFrame.new(loc)
- debris(cfremz, par, 50)
- end
- end))
- Crater(root,155)
- GroundWave5()
- GroundWave6()
- GroundWave7()
- GroundWave8()
- GroundWave9()
- GroundWave10()
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- wait()
- aa21e.Scale = aa21e.Scale + v3(5,5,5)
- a21e.Transparency = a21e.Transparency + 0.04
- end
- end))
- for i = 1, 30 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3.2, .3) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
- if Debounces.on == false then break end
- rs:wait()
- end
- wait(4)
- Debounces.NoIdl = false
- hum.WalkSpeed = 5
- Debounces.on = false
- wait()
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- v:Destroy()
- end
- 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
- Grab = false
- mouse.KeyDown:connect(function(key)-----------------------------------------Grab
- if key == "z" then
- Debounces.on = true
- Debounces.NoIdl = true
- if Grab == false then
- gp = nil
- con1=larm.Touched:connect(function(hit) -- this is grab
- ht = hit.Parent
- hum1=ht:FindFirstChild('Humanoid')
- if hum1 ~= nil then
- hum1.PlatformStand=true
- gp = ht
- Grab = true
- asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-3.3,0),CFrame.new(0,0,0))
- asd.Parent = larm
- asd.Name = "asd"
- asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0)
- elseif hum1 == nil then
- con1:disconnect()
- wait() return
- end
- end)
- for i = 1, 18 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.6) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
- if Debounces.on == false then break end
- wait()
- end
- con1:disconnect()
- Debounces.on = false
- Debounces.NoIdl = false
- wait(0.1)
- ht:FindFirstChild("Torso").CanCollide = false
- ht:FindFirstChild("RightArm").CanCollide = false
- ht:FindFirstChild("LeftArm").CanCollide = false
- ht:FindFirstChild("RightLeg").CanCollide = false
- ht:FindFirstChild("LeftLeg").CanCollide = false
- ht:FindFirstChild("Head").CanCollide = false
- elseif Grab == true then
- Grab = false
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
- if Debounces.on == false then end
- wait()
- end
- if gp ~= nil then
- for i,v in pairs(larm:GetChildren()) do
- if v.Name == "asd" and v:IsA("Weld") then
- v:Remove()
- end
- end
- bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
- bv.maxForce = Vector3.new(400000, 400000, 400000)
- bv.P = 125000000000000
- bv.velocity = char.Head.CFrame.lookVector * 1000
- for i = 1, 12 do
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5)
- if Debounces.on == false then end
- wait()
- end
- ht=nil
- Spawn(function()
- wait(0.5)
- bv:Destroy()
- end)
- Debounces.on = false
- Debounces.NoIdl = false
- elseif ht == nil then wait()
- Grab = false
- Debounces.on = false
- Debounces.NoIdl = false
- end
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "c" then
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.on = true
- GroundWaves5 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave11 = Instance.new("Part", char)
- wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave11.Anchored = true
- wave11.Name = "Wave"
- wave11.CanCollide = false
- wave11.Locked = true
- wave11.Size = Vector3.new(1, 1, 1)
- wave11.TopSurface = "Smooth"
- wave11.BottomSurface = "Smooth"
- wave11.Transparency = 0.35
- wave11.CFrame = HandCF
- wm31 = Instance.new("SpecialMesh", wave11)
- wm31.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm31.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave11.Size = wm31.Scale
- wave11.CFrame = HandCF
- wave11.Transparency = i/30
- wait()
- end
- wait()
- wave11:Destroy()
- end)()
- end
- GroundWaves6 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave111 = Instance.new("Part", char)
- wave111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave111.Anchored = true
- wave111.Name = "Wave"
- wave111.CanCollide = false
- wave111.Locked = true
- wave111.Size = Vector3.new(1, 1, 1)
- wave111.TopSurface = "Smooth"
- wave111.BottomSurface = "Smooth"
- wave111.Transparency = 0.35
- wave111.CFrame = HandCF
- wm311 = Instance.new("SpecialMesh", wave111)
- wm311.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm311.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave111.Size = wm311.Scale
- wave111.CFrame = HandCF
- wave111.Transparency = i/30
- wait()
- end
- wait()
- wave111:Destroy()
- end)()
- end
- GroundWaves7 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave1111 = Instance.new("Part", char)
- wave1111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave1111.Anchored = true
- wave1111.Name = "Wave"
- wave1111.CanCollide = false
- wave1111.Locked = true
- wave1111.Size = Vector3.new(1, 1, 1)
- wave1111.TopSurface = "Smooth"
- wave1111.BottomSurface = "Smooth"
- wave1111.Transparency = 0.35
- wave1111.CFrame = HandCF
- wm3111 = Instance.new("SpecialMesh", wave1111)
- wm3111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm3111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave1111.Size = wm3111.Scale
- wave1111.CFrame = HandCF
- wave1111.Transparency = i/30
- wait()
- end
- wait()
- wave1111:Destroy()
- end)()
- end
- GroundWaves8 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave11111 = Instance.new("Part", char)
- wave11111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave11111.Anchored = true
- wave11111.Name = "Wave"
- wave11111.CanCollide = false
- wave11111.Locked = true
- wave11111.Size = Vector3.new(1, 1, 1)
- wave11111.TopSurface = "Smooth"
- wave11111.BottomSurface = "Smooth"
- wave11111.Transparency = 0.35
- wave11111.CFrame = HandCF
- wm31111 = Instance.new("SpecialMesh", wave11111)
- wm31111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm31111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave11111.Size = wm31111.Scale
- wave11111.CFrame = HandCF
- wave11111.Transparency = i/30
- wait()
- end
- wait()
- wave11111:Destroy()
- end)()
- end
- GroundWaves9 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave111111 = Instance.new("Part", char)
- wave111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave111111.Anchored = true
- wave111111.Name = "Wave"
- wave111111.CanCollide = false
- wave111111.Locked = true
- wave111111.Size = Vector3.new(1, 1, 1)
- wave111111.TopSurface = "Smooth"
- wave111111.BottomSurface = "Smooth"
- wave111111.Transparency = 0.35
- wave111111.CFrame = HandCF
- wm311111 = Instance.new("SpecialMesh", wave111111)
- wm311111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm311111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave111111.Size = wm311111.Scale
- wave111111.CFrame = HandCF
- wave111111.Transparency = i/30
- wait()
- end
- wait()
- wave111111:Destroy()
- end)()
- end
- GroundWaves10 = function()
- local HandCF = ht:FindFirstChild("Torso").CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- Colors = {"Lime green", "Lime green"}
- local wave1111111 = Instance.new("Part", char)
- wave1111111.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
- wave1111111.Anchored = true
- wave1111111.Name = "Wave"
- wave1111111.CanCollide = false
- wave1111111.Locked = true
- wave1111111.Size = Vector3.new(1, 1, 1)
- wave1111111.TopSurface = "Smooth"
- wave1111111.BottomSurface = "Smooth"
- wave1111111.Transparency = 0.35
- wave1111111.CFrame = HandCF
- wm3111111 = Instance.new("SpecialMesh", wave1111111)
- wm3111111.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 30, 1 do
- wm3111111.Scale = Vector3.new(5 + i*5.2, 3 + i*5.2, 5)
- wave1111111.Size = wm3111111.Scale
- wave1111111.CFrame = HandCF
- wave1111111.Transparency = i/30
- wait()
- end
- wait()
- wave1111111:Destroy()
- end)()
- end
- for i = 1, 40 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- coroutine.resume(coroutine.create(function()
- for i=1, 5 do
- p=Instance.new("Part")
- p.FrontSurface=par.TopSurface
- p.Material=par.Material
- p.BottomSurface=0
- p.Anchored=true p.CanCollide=false
- p.BrickColor=par.BrickColor
- p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
- p.CFrame=CFrame.new(ht.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
- p.Parent=char
- game:GetService("Debris"):AddItem(p,2+i*.1)
- if math.random(1,5)==5 then
- coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
- end
- end
- for i=1, 5 do
- for i=1, 1 do
- p=Instance.new("Part")
- p.TopSurface=par.TopSurface
- p.BottomSurface=par.BottomSurface
- p.Material=par.Material
- p.BottomSurface=0
- p.Anchored=false p.CanCollide=true
- p.BrickColor=par.BrickColor
- p.formFactor="Custom"
- p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12)
- p.CFrame=CFrame.new(ht.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20)
- p.Parent=char
- game:GetService("Debris"):AddItem(p,3+i*.1)
- p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4)
- p.RotVelocity=p.Velocity
- if math.random(1,5)==5 then
- coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
- end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- end
- GroundWaves5()
- GroundWaves6()
- GroundWaves7()
- GroundWaves8()
- GroundWaves9()
- GroundWaves10()
- end))
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- Debounces.on = false
- Debounces.NoIdl = false
- end
- end
- end
- end)
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- return rey,hit,pos
- end
- fat = Instance.new("BindableEvent",script)
- fat.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1/30
- tf = 0
- allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
- tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- lastframe = tick()
- script.Heartbeat:Fire() --ayy lmao
- game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe=tick()
- else
- --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
- 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(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- fat.Event:wait()
- else
- for i = 1, NUMBER do
- fat.Event:wait()
- end
- end
- end
- function Landing2()
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Lime green")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.Position = root.Position
- 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"
- local rng2 = rng:Clone()
- rng2.Parent = char
- local rng2m = rng2.Mesh
- local rng3 = rng:Clone()
- rng3.Parent = char
- local rng3m = rng3.Mesh
- local rng4 = rng:Clone()
- rng4.Parent = char
- local rng4m = rng4.Mesh
- local rng5 = rng:Clone()
- rng5.Parent = char
- local rng5m = rng5.Mesh
- for i,v in pairs(FindNearestTorso(torso.CFrame.p,905))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- end
- --MagicBlock(BrickColor.new("Lime green"),root.CFrame,15,15,15,5,5,5,0.015)
- -- CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
- --CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85)
- ---CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1)
- wait()
- local scaler = 10
- local scaler2 = 10
- for i = 0,10,0.1 do
- Swait()
- rng.Transparency = rng.Transparency + 0.01
- rng2.Transparency = rng2.Transparency + 0.01
- rng3.Transparency = rng3.Transparency + 0.01
- rng4.Transparency = rng4.Transparency + 0.01
- rng5.Transparency = rng5.Transparency + 0.01
- scaler = scaler - 0.125
- scaler2 = scaler2 - 0.1
- rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
- rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
- rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
- rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
- rng5.Size = rng5m.Scale
- rng5.CFrame = rng.CFrame
- rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
- end
- end
- function Landing()
- Grabee = torso
- par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
- if par then
- local cfremz = CFrame.new(loc)
- debris(cfremz, par, 50)
- end
- for i=1, 50 do
- p=Instance.new("Part")
- p.FrontSurface=par.TopSurface
- p.Material=par.Material
- p.BottomSurface=0
- p.Anchored=true p.CanCollide=false
- p.BrickColor=par.BrickColor
- p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5))
- p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)
- p.Parent=char
- game:GetService("Debris"):AddItem(p,2+i*.1)
- if math.random(1,5)==5 then
- coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
- end
- end
- for i=1, 50 do
- for i=1, 1 do
- p=Instance.new("Part")
- p.TopSurface=par.TopSurface
- p.BottomSurface=par.BottomSurface
- p.Material=par.Material
- p.BottomSurface=0
- p.Anchored=false p.CanCollide=true
- p.BrickColor=par.BrickColor
- p.formFactor="Custom"
- p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12)
- p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20)
- p.Parent=char
- game:GetService("Debris"):AddItem(p,3+i*.1)
- p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4)
- p.RotVelocity=p.Velocity
- if math.random(1,5)==5 then
- coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p)
- end
- end
- Swait(.025)
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "m" then
- hum.WalkSpeed = 0
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.on = true
- Debounces.NoIdl = true
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2)
- if Debounces.on == false then break end
- wait()
- end
- wait(1)
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Really black")
- 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,2,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)
- l = Instance.new("Sound",char)
- l.SoundId = "http://www.roblox.com/asset/?id=142926718"
- l.Looped = false
- l.Pitch = .7
- l.Volume = 1
- l: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 = 50
- bv = Instance.new("BodyVelocity",torso)
- bv.maxForce = Vector3.new(0,200000,0)
- bv.P = 100000
- bv.velocity = Vector3.new(0,500,0)
- wait(2)
- bv:Destroy()
- for i = 1, 145 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, 0, -2) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
- if Debounces.on == false then break end
- wait()
- end
- l:Destroy()
- coroutine.resume(coroutine.create(function()
- wait(0.01)
- l = Instance.new("Sound",char)
- l.SoundId = "http://www.roblox.com/asset/?id=409176756"
- l.Looped = false
- l.Pitch = 1
- l.Volume = 80
- l:Play()
- end))
- for i = 1, 60 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
- if Debounces.on == false then break end
- wait()
- end
- if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
- for i = 1, 30 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, .2)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -2, .4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- end
- Debounces.on = false
- Debounces.NoIdl = false
- local ry,ht,ps=nil,nil,nil
- while ht==nil do
- ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
- wait()
- end
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(workspace:children()) do
- charr = v:FindFirstChild('Character')
- for i = 1, 15 do
- charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 15 do
- char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- char.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end))
- coroutine.resume(coroutine.create(function()
- Landing2()
- end))
- Landing()
- game:GetService("Debris"):AddItem(rng, 1)
- game:GetService("Debris"):AddItem(rng2, 1)
- game:GetService("Debris"):AddItem(rng3, 1)
- game:GetService("Debris"):AddItem(rng4, 1)
- game:GetService("Debris"):AddItem(rng5, 1)
- hum.WalkSpeed = 5
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- end
- end
- end
- end)
- ptez = {0.7, 0.8, 0.9, 1}
- function GroundPound()
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("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 = larm.Position - Vector3.new(0,4,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)
- coroutine.resume(coroutine.create(function()
- t = Instance.new("Sound",char)
- t.SoundId = "http://www.roblox.com/asset/?id=165969964"
- t.Pitch = ptez[math.random(1,#ptez)]
- t.Volume = 1
- wait(.1)
- t:Play()
- end))
- 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)()
- end
- function GroundPound2()
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Really black")
- 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 = rarm.Position - Vector3.new(0,4,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)
- coroutine.resume(coroutine.create(function()
- t = Instance.new("Sound",char)
- t.SoundId = "http://www.roblox.com/asset/?id=142070127"
- t.Pitch = ptez[math.random(1,#ptez)]
- t.Volume = 1
- wait(.1)
- t:Play()
- end))
- 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)()
- end
- mouse.KeyDown:connect(function(key)
- if key == "h" then
- if Debounces.CanAttack == true then
- Debounces.CanAttack = false
- Debounces.NoIdl = true
- Debounces.on = true
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(workspace:children()) do
- charr = v:FindFirstChild('Character')
- for i = 1, 48 do
- charr.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- charr.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 78 do
- char.Humanoid.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- char.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end))
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- for i = 1,78 do
- for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- end
- end
- end))
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- GroundPound2()
- for i = 1, 5 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -2, -1) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -2, -.4) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6)
- if Debounces.on == false then break end
- wait()
- end
- if Debounces.CanAttack == false then
- Debounces.CanAttack = true
- Debounces.on = false
- Debounces.NoIdl = false
- end
- end
- end
- end)
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- ----------------------------------------------------
- x = Instance.new("Sound", char)
- x.SoundId = "http://www.roblox.com/asset/?id=187922823"
- x.Looped = true
- x.Volume = 30
- x.Pitch = 1
- local footsteps = false
- -------------------------------
- game:GetService("RunService").RenderStepped: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 jumpn == true then
- animpose = "Jumping"
- elseif ffing == true then
- animpose = "Freefalling"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
- animpose = "Running"
- end
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.2, -3, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
- end
- elseif animpose == "Walking" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
- end
- elseif animpose == "Running" then
- for i = 1, 2 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-0), math.rad(-40), math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
- end
- wait()
- end
- else
- end
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- if stanceToggle == "Normal" then
- change = 0.5
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(88+2*math.cos(sine/14)),math.rad(160),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,.9+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(50),math.rad(-30),math.rad(-40-2*math.cos(sine/14))), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.15, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
- elseif stanceToggle == "Sitting" then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
- end
- elseif animpose == "Walking" then
- if stanceToggle == "Normal" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/-4, math.rad(1) + -math.sin(sine/14)/2, math.rad(30)), 0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, .9+.1*math.cos(sine/7), -math.sin(sine/14)/2)*CFrame.Angles(math.sin(sine/14)/4, math.rad(1) + -math.sin(sine/14)/2, math.rad(-30)), 0.1)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/7)), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/7)), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .1)
- end
- elseif animpose == "Running" then
- change = 1
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, 0.9, .5) * CFrame.Angles(math.rad(-10-20*math.cos(sine/4)/2), math.rad(-40+10*math.cos(sine/4)/2), math.rad(50-10*math.cos(sine/4)/2)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3, 0.9, .5)*CFrame.Angles(math.rad(10+20*math.cos(sine/4)/2), math.rad(40-10*math.cos(sine/4)/2), math.rad(-50+10*math.cos(sine/4)/2)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -3-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
- end
- end
- if animpose == "Walking" then
- if footsteps == false then
- x:Play()
- footsteps = true
- end
- x.Pitch = 0.9
- elseif animpose == "Idle" then
- x:Stop()
- footsteps = false
- elseif animpose == "Running" then
- x.Pitch = 1.2
- if footsteps == false then
- x:Play()
- footsteps = true
- end
- end
- end)
- local BC = Character["Body Colors"]
- BC.HeadColor = BrickColor.new("Brown")
- BC.LeftArmColor = BrickColor.new("Brown")
- BC.LeftLegColor = BrickColor.new("Brown")
- BC.RightArmColor = BrickColor.new("Brown")
- BC.RightLegColor = BrickColor.new("Brown")
- BC.TorsoColor = BrickColor.new("Brown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement