Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Well, I do declare! --
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local hed = chr.Head
- local rutprt = chr.HumanoidRootPart
- local torso = chr.Torso
- local otheranims=false
- local armmovement=false
- local timersettime=10
- local shortdebounce=false
- local crouching=false
- local nmdb=false
- local nomoreimplosion=false
- local impmodel=Instance.new('Model',chr)
- impmodel.Name='Implosion BIM model'
- local crawling=false
- local maxstamina=210e7
- local stamina=maxstamina
- local tek=0
- local tickin=false
- local exhausted=false
- local bimsactive=true
- local leftarm=false
- local rightarm=true
- local BeltTrimClr='Medium stone grey'
- local BeltUtilClr='Light stone grey'
- local BeltMainClr='Black'
- local BIMs={"Cracker","Timer","Remote","Implosion","Light"}
- local BIMDesc={"Explodes upon impact! Throw it to have it fly towards the target and drop from above. Not very accurate.","Explodes in a set amount of seconds. You can toggle the time before detonation with the below buttons, or by pressing the 'T' and 'Y' keys.","Explodes when you tell it to! Detonate all placed mines with 'X'. Press 'R' to cause all active mines to flash.",[[AAHAHAHOHOAAHHAHEHEEE!
- Detonates and destroys most small parts near it.]],[[ [NONEXISTENT IN-ANIME]
- A BIM that glows upon touch. Welds to whatever it hits first. Disappears after fifteen seconds.]]}
- local BIMNumber=1
- local BIMType=BIMs[BIMNumber]
- local remotebimcont=Instance.new('Model',chr)
- remotebimcont.Name='Remote BIM Container'
- for lalalalalal,lalalalalalalal in pairs(chr:GetChildren()) do if lalalalalalalal.Name=='Animate' and lalalalalalalal.ClassName:find('Script') then lalalalalalalal.Disabled=true end end
- -- I also do make belt --
- local mainmodel=Instance.new('Model',chr)
- mainmodel.Name='BTOOOM!'
- local beltmodel=Instance.new('Model',mainmodel)
- beltmodel.Name='Belt'
- belttop=Instance.new('Part',beltmodel)
- belttop.formFactor='Custom'
- belttop.Size=Vector3.new(2.2,.1,1.2)
- belttop.TopSurface='SmoothNoOutlines'
- belttop.BottomSurface='SmoothNoOutlines'
- belttop.FrontSurface='SmoothNoOutlines'
- belttop.BackSurface='SmoothNoOutlines'
- belttop.LeftSurface='SmoothNoOutlines'
- belttop.RightSurface='SmoothNoOutlines'
- belttop.CanCollide=false
- belttop.Locked=true
- belttop.BrickColor=BrickColor.new(BeltTrimClr)
- belttop:breakJoints()
- local belttm=Instance.new('BlockMesh',belttop)
- belttm.Scale=Vector3.new(.975,.25,.975)
- local belttw=Instance.new('Weld',belttop)
- belttw.Part0=belttop
- belttw.Part1=torso
- belttw.C1=CFrame.new(0,-.7,0)
- beltbottom=Instance.new('Part',beltmodel)
- beltbottom.formFactor='Custom'
- beltbottom.Size=Vector3.new(2.2,.1,1.2)
- beltbottom.TopSurface='SmoothNoOutlines'
- beltbottom.BottomSurface='SmoothNoOutlines'
- beltbottom.FrontSurface='SmoothNoOutlines'
- beltbottom.BackSurface='SmoothNoOutlines'
- beltbottom.LeftSurface='SmoothNoOutlines'
- beltbottom.RightSurface='SmoothNoOutlines'
- beltbottom.CanCollide=false
- beltbottom.Locked=true
- beltbottom.BrickColor=BrickColor.new(BeltTrimClr)
- beltbottom:breakJoints()
- local beltbm=Instance.new('BlockMesh',beltbottom)
- beltbm.Scale=Vector3.new(.975,.25,.975)
- local beltbw=Instance.new('Weld',beltbottom)
- beltbw.Part0=beltbottom
- beltbw.Part1=torso
- beltbw.C1=CFrame.new(0,-1,0)
- beltcenter=Instance.new('Part',beltmodel)
- beltcenter.formFactor='Custom'
- beltcenter.Size=Vector3.new(2.1,.3,1.1)
- beltcenter.TopSurface='SmoothNoOutlines'
- beltcenter.BottomSurface='SmoothNoOutlines'
- beltcenter.FrontSurface='SmoothNoOutlines'
- beltcenter.BackSurface='SmoothNoOutlines'
- beltcenter.LeftSurface='SmoothNoOutlines'
- beltcenter.RightSurface='SmoothNoOutlines'
- beltcenter.Locked=true
- beltcenter.CanCollide=false
- beltcenter.BrickColor=BrickColor.new(BeltMainClr)
- beltcenter:breakJoints()
- local beltcw=Instance.new('Weld',beltcenter)
- beltcw.Part0=beltcenter
- beltcw.Part1=torso
- beltcw.C1=CFrame.new(0,-.85,0)
- local beltutil=Instance.new('Part',beltmodel)
- beltutil.formFactor='Custom'
- beltutil.Size=Vector3.new(1.1,.6,.4)
- beltutil.TopSurface='SmoothNoOutlines'
- beltutil.BottomSurface='SmoothNoOutlines'
- beltutil.FrontSurface='SmoothNoOutlines'
- beltutil.BackSurface='SmoothNoOutlines'
- beltutil.LeftSurface='SmoothNoOutlines'
- beltutil.RightSurface='SmoothNoOutlines'
- beltutil.Locked=true
- beltutil.CanCollide=false
- beltutil.BrickColor=BrickColor.new(BeltUtilClr)
- beltutil:breakJoints()
- local beltuw=Instance.new('Weld',beltutil)
- beltuw.Part0=beltutil
- beltuw.Part1=torso
- beltuw.C1=CFrame.new(.25,-.9,-.7)*CFrame.Angles(math.rad(-5),math.rad(-6.5),math.rad(0))
- local beltutilt=Instance.new('Part',beltmodel)
- beltutilt.formFactor='Custom'
- beltutilt.Size=Vector3.new(1.15,.2,.45)
- beltutilt.TopSurface='SmoothNoOutlines'
- beltutilt.BottomSurface='SmoothNoOutlines'
- beltutilt.FrontSurface='SmoothNoOutlines'
- beltutilt.BackSurface='SmoothNoOutlines'
- beltutilt.LeftSurface='SmoothNoOutlines'
- beltutilt.RightSurface='SmoothNoOutlines'
- beltutilt.CanCollide=false
- beltutilt.Locked=true
- beltutilt.BrickColor=BrickColor.new('Black')
- beltutilt:breakJoints()
- local beltutw=Instance.new('Weld',beltutil)
- beltutw.Part0=beltutilt
- beltutw.Part1=beltutil
- beltutw.C1=CFrame.new(0,.25,0)*CFrame.Angles(0,0,0)
- local beltutilb=Instance.new('Part',beltmodel)
- beltutilb.formFactor='Custom'
- beltutilb.Size=Vector3.new(1.15,.2,.45)
- beltutilb.TopSurface='SmoothNoOutlines'
- beltutilb.BottomSurface='SmoothNoOutlines'
- beltutilb.FrontSurface='SmoothNoOutlines'
- beltutilb.BackSurface='SmoothNoOutlines'
- beltutilb.LeftSurface='SmoothNoOutlines'
- beltutilb.RightSurface='SmoothNoOutlines'
- beltutilb.CanCollide=false
- beltutilb.Locked=true
- beltutilb.BrickColor=BrickColor.new('Black')
- beltutilb:breakJoints()
- local beltutilbm=Instance.new('SpecialMesh',beltutilb)
- beltutilbm.MeshType='Wedge'
- local beltubw=Instance.new('Weld',beltutil)
- beltubw.Part0=beltutilb
- beltubw.Part1=beltutil
- beltubw.C1=CFrame.new(0,.05,0)*CFrame.Angles(math.rad(180),0,0)
- local lait=Instance.new('Part',Workspace.CurrentCamera)
- lait.Name='Camera_LightBrick'
- lait.formFactor='Custom'
- lait.Size=Vector3.new(.1,.1,.1)
- lait.BrickColor=BrickColor.new('Pastel green')
- lait.CanCollide=false
- lait.TopSurface=10
- lait.BottomSurface=10
- lait.FrontSurface=10
- lait.BackSurface=10
- lait.LeftSurface=10
- lait.RightSurface=10
- lait.Transparency=1
- local laitm=Instance.new('SpecialMesh',lait)
- laitm.MeshType='Sphere'
- laitm.Scale=Vector3.new(.1,.1,.1)
- local laitwl=Instance.new('Weld',chr)
- laitwl.Part0=lait
- laitwl.Part1=hed
- laitwl.C0=CFrame.new(0,0,0)
- local vw=Instance.new('SpotLight',lait)
- vw.Range=45
- vw.Shadows=true
- vw.Angle=160
- vw.Color=lait.BrickColor.Color
- vw.Brightness=1
- vw.Face='Front'
- vw.Enabled=false
- local lgb=Instance.new('Part',beltmodel)
- lgb.formFactor='Custom'
- lgb.Locked=true
- lgb.Size=Vector3.new(.45,.45,.45)
- lgb.Name='GloLiteEXTREME'
- lgb.BrickColor=BrickColor.new('Black')
- lgb.CanCollide=false
- lgb.TopSurface=10
- lgb.BottomSurface=10
- lgb.FrontSurface=10
- lgb.BackSurface=10
- lgb.LeftSurface=10
- lgb.RightSurface=10
- lgb.Transparency=.6
- lgb:breakJoints()
- local lgbm=Instance.new('SpecialMesh',lgb)
- lgbm.MeshType='Sphere'
- local lgbw=Instance.new('Weld',lgb)
- lgbw.Part0=lgb
- lgbw.Part1=beltutil
- lgbw.C0=CFrame.new(.675,.05,0)
- local glolite=Instance.new('PointLight',lgb)
- glolite.Range=0
- glolite.Shadows=true
- glolite.Color=BrickColor.new('Curry').Color
- glolite.Brightness=123123
- glolite.Enabled=false
- local kami=Instance.new('Part',beltmodel)
- kami.formFactor='Custom'
- kami.Name='Kamikaze_Implosion_BIM'
- kami.Size=Vector3.new(.6,.6,.3)
- kami.Transparency=0
- kami.Locked=true
- kami.BrickColor=BrickColor.new('Medium stone grey')
- kami.CanCollide=false
- kami.TopSurface=0
- kami.BottomSurface=0
- kami:breakJoints()
- local kamiw=Instance.new('Weld',torso)
- kamiw.Part0=kami
- kamiw.Part1=torso
- kamiw.C0=CFrame.new(0,-.4,.5)
- local kamim=Instance.new('SpecialMesh',kami)
- kamim.MeshType='Sphere'
- local kamid=Instance.new('Part',kami)
- kamid.formFactor='Custom'
- kamid.Name='Kamikaze_Implosion_BI'
- kamid.Size=Vector3.new(.2,.2,.1)
- kamid.Transparency=0
- kamid.Locked=true
- kamid.BrickColor=BrickColor.new('Black')
- kamid.CanCollide=false
- kamid.TopSurface=0
- kamid.BottomSurface=0
- kamid:breakJoints()
- local kamidw=Instance.new('Weld',kamid)
- kamidw.Part0=kamid
- kamidw.Part1=kami
- kamidw.C0=CFrame.new(0,0,.085)
- local kamidm=Instance.new('SpecialMesh',kamid)
- kamidm.MeshType='Sphere'
- for tee=1,180,90 do
- local kamidx=Instance.new('Part',kami)
- kamidx.formFactor='Custom'
- kamidx.Name='Kamikaze_Implosion_B'
- kamidx.Size=Vector3.new(.21,.61,.3)
- kamidx.Locked=true
- kamidx.Transparency=0
- kamidx.BrickColor=BrickColor.new('Really black')
- kamidx.CanCollide=false
- kamidx.TopSurface=0
- kamidx.BottomSurface=0
- kamidx:breakJoints()
- local kamidxw=Instance.new('Weld',kamidx)
- kamidxw.Part0=kamidx
- kamidxw.Part1=kami
- kamidxw.C0=CFrame.new(0,0,.005)*CFrame.Angles(0,0,math.rad(tee))
- local kamidxm=Instance.new('SpecialMesh',kamidx)
- kamidxm.MeshType='Sphere'
- end
- -- BIM display GUI --
- local maindis=Instance.new('ScreenGui',PGui)
- maindis.Name='BIM_Display'
- local display=Instance.new('Frame',maindis)
- display.Size=UDim2.new(.25,0,.35,0)
- display.Position=UDim2.new(.75,0,.65,0)
- display.BackgroundTransparency=.9
- display.BorderSizePixel=0
- display.BackgroundColor3=Color3.new(0,0,0)
- display.Name='BIM_Display_Container'
- display.MouseEnter:connect(function()
- for faaade=1,9 do display.BackgroundTransparency=display.BackgroundTransparency-.1 wait() end end)
- display.MouseLeave:connect(function()
- for faaade=1,9 do display.BackgroundTransparency=display.BackgroundTransparency+.1 wait() end
- end)
- local bimname=Instance.new('TextLabel',display)
- bimname.Name='BIM_Type_Tracker'
- bimname.TextStrokeTransparency=0
- bimname.TextStrokeColor3=Color3.new(0,0,0)
- bimname.TextColor3=Color3.new(1,1,1)
- bimname.BackgroundTransparency=1
- bimname.Size=UDim2.new(1,0,.15,0)
- bimname.Position=UDim2.new(0,0,0,0)
- bimname.FontSize='Size36'
- bimname.Font='ArialBold'
- local bimdesc=Instance.new('TextLabel',display)
- bimdesc.Name='BIM_Type_Description'
- bimdesc.TextStrokeTransparency=0
- bimdesc.TextStrokeColor3=Color3.new(0,0,0)
- bimdesc.TextColor3=Color3.new(1,1,1)
- bimdesc.BackgroundTransparency=1
- bimdesc.Size=UDim2.new(1,0,.65,0)
- bimdesc.Position=UDim2.new(0,0,.05,0)
- bimdesc.FontSize='Size18'
- bimdesc.Font='ArialBold'
- bimdesc.TextWrapped=true
- local timergui=Instance.new('Frame',display)
- timergui.BackgroundTransparency=1
- timergui.Size=UDim2.new(1,0,.5,0)
- timergui.Name='GUI_Set_For_Timer_BIM'
- timergui.Position=UDim2.new(0,0,.5,0)
- local timeup=Instance.new('TextButton',timergui)
- timeup.Size=UDim2.new(.25,0,.25,0)
- timeup.Text='+'
- timeup.BackgroundTransparency=1
- timeup.Position=UDim2.new(.65,0,.2,0)
- timeup.FontSize='Size24'
- timeup.Font='ArialBold'
- timeup.TextColor3=Color3.new(1,1,0)
- timeup.TextStrokeTransparency=0
- timeup.TextStrokeColor3=Color3.new(0,0,0)
- timeup.MouseButton1Click:connect(function()
- if timersettime+1>10 then timersettime=10
- else
- timersettime=timersettime+1
- end
- end)
- local timedn=Instance.new('TextButton',timergui)
- timedn.Size=UDim2.new(.25,0,.25,0)
- timedn.Text='-'
- timedn.FontSize='Size24'
- timedn.Font='ArialBold'
- timedn.BackgroundTransparency=1
- timedn.Position=UDim2.new(.15,0,.2,0)
- timedn.TextColor3=Color3.new(1,1,0)
- timedn.TextStrokeTransparency=0
- timedn.TextStrokeColor3=Color3.new(0,0,0)
- timedn.MouseButton1Click:connect(function()
- if timersettime-1<3 then timersettime=3
- else
- timersettime=timersettime-1
- end
- end)
- local timertracker=Instance.new('TextLabel',timergui)
- timertracker.Size=UDim2.new(.5,0,.5,0)
- timertracker.FontSize='Size36'
- timertracker.Font='ArialBold'
- timertracker.BackgroundTransparency=1
- timertracker.Position=UDim2.new(.27,0,.05,0)
- timertracker.TextColor3=Color3.new(1,1,0)
- timertracker.TextStrokeTransparency=0
- timertracker.TextStrokeColor3=Color3.new(0,0,0)
- local controlsgui=Instance.new('Frame',maindis)
- controlsgui.Size=UDim2.new(.6,0,.6,0)
- controlsgui.Position=UDim2.new(2,0,.2,0)
- controlsgui.BackgroundTransparency=.5
- controlsgui.BackgroundColor3=Color3.new(1,1,1)
- controlsgui.Name='Controls_GUI'
- local controlstext=Instance.new('TextLabel',controlsgui)
- controlstext.Font='Arial'
- controlstext.FontSize='Size8'
- controlstext.Size=UDim2.new(1,0,1,0)
- controlstext.Position=UDim2.new(0,0,0,0)
- controlstext.BackgroundTransparency=1
- controlstext.Name='Controls_Text'
- controlstext.TextColor3=Color3.new(1,0,0)
- controlstext.TextStrokeTransparency=0
- controlstext.TextStrokeColor3=Color3.new(0,1,1)
- controlstext.TextScaled=true
- controlstext.Text=[[You can use the 'Q' and 'E' keys to cycle through BIM types. There are five types of BIM:
- Cracker: Flies at the target and explodes as soon as it touches something.
- Light: Welds to its target and lights up. Lasts fifteen seconds.
- Timer: Allows you to choose a time between 3 and 10 seconds prior to detonation of the BIM.
- Remote: Detonates all remote BIMs in an area when you press the 'X' key.
- Implosion: Detonates and causes all parts under a certain size to disappear if they touch the sphere.
- Pressing 'V' will activate the implosion BIM on your chest.
- You can click to throw/place a BIM. Hold SHIFT to dash. Press the CTRL button to crouch.
- Toggle crawl with 'C'.
- Toggle a circular light with 'Z.'
- Toggle minor "night vision" with 'F'.
- I'll leave the rest to you.]]
- local controls=Instance.new('TextButton',display)
- controls.Name='Controls_Display_GUI'
- controls.Font='ArialBold'
- controls.BorderSizePixel=0
- controls.FontSize='Size18'
- controls.Text='Click me for a list of controls!'
- controls.BackgroundTransparency=0
- controls.AutoButtonColor=false
- controls.BackgroundColor3=Color3.new(1,1,1)
- controls.TextStrokeTransparency=0
- controls.TextStrokeColor3=Color3.new(0,1,1)
- controls.TextColor3=Color3.new(1,0,0)
- controls.Size=UDim2.new(1.01,0,.1,0)
- controls.Position=UDim2.new(0,0,.9,0)
- controls.MouseButton1Click:connect(function()
- if controlsgui.Position==UDim2.new(2,0,.2,0) then
- controlsgui.Visible=true
- controlsgui:TweenPosition(UDim2.new(.2,0,.2,0),'Out','Quad')
- elseif controlsgui.Position==UDim2.new(.2,0,.2,0) then
- controlsgui:TweenPosition(UDim2.new(2,0,.2,0),'Out','Quad')
- controlsgui.Visible=false
- end
- end)
- local hname=Instance.new('TextButton',display)
- hname.Text='Hide name'
- hname.Size=UDim2.new(1.01,0,.1,0)
- hname.Position=UDim2.new(0,0,.8,0)
- hname.Font='ArialBold'
- hname.FontSize='Size18'
- hname.BorderSizePixel=0
- hname.BackgroundTransparency=0
- hname.BackgroundColor3=Color3.new(0,0,0)
- hname.TextStrokeTransparency=0
- hname.TextStrokeColor3=Color3.new(1,0,1)
- hname.TextColor3=Color3.new(0,1,1)
- hname.AutoButtonColor=false
- hname.MouseEnter:connect(function()
- hname.BackgroundColor3=Color3.new(1,1,1)
- end)
- hname.MouseLeave:connect(function()
- hname.BackgroundColor3=Color3.new(0,0,0)
- end)
- hname.MouseButton1Click:connect(function()
- if not nmdb then
- nmdb=true
- if hed.Transparency==1 then
- hed.Transparency=0
- hname.Text='Hide name'
- for i,x in pairs(hed:GetChildren()) do if x.ClassName:find('Part') then x:Destroy() end end
- else
- hname.Text='Show name'
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHed'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- end
- wait(1)
- nmdb=false
- end
- end)
- local stamframe=Instance.new('Frame',maindis)
- stamframe.Size=UDim2.new(.25,0,.1,0)
- stamframe.Position=UDim2.new(.75,0,.55,0)
- stamframe.BackgroundTransparency=0
- stamframe.BackgroundColor3=Color3.new(0,1,1)
- stamframe.Name='StaminaDisplayFrame'
- stamframe.BorderSizePixel=0
- local staminabar=Instance.new('TextLabel',stamframe)
- staminabar.Position=UDim2.new(0,0,.2,0)
- staminabar.Text=' '
- staminabar.Font='ArialBold'
- staminabar.FontSize='Size24'
- staminabar.BackgroundColor3=Color3.new(1,.8,0)
- staminabar.BackgroundTransparency=0
- staminabar.BorderSizePixel=0
- local staminabr=Instance.new('TextLabel',stamframe)
- staminabr.Position=UDim2.new(0,0,.1,0)
- staminabr.Size=UDim2.new(1,0,.8,0)
- staminabr.Text='Stamina'
- staminabr.Font='ArialBold'
- staminabr.FontSize='Size24'
- staminabr.TextStrokeTransparency=0
- staminabr.TextStrokeColor3=Color3.new(1,1,1)
- staminabr.TextColor3=Color3.new(0,0,0)
- staminabr.BackgroundTransparency=1
- staminabr.BorderSizePixel=0
- staminabr.ZIndex=staminabar.ZIndex+1
- local warning=Instance.new('TextLabel',stamframe)
- warning.Position=UDim2.new(0,0,-.85,0)
- warning.Size=UDim2.new(1,0,.8,0)
- warning.Text='Tired...'
- warning.Font='ArialBold'
- warning.FontSize='Size24'
- warning.TextTransparency=1
- warning.TextStrokeTransparency=1
- warning.TextStrokeColor3=Color3.new(1,1,1)
- warning.TextColor3=Color3.new(0,0,0)
- warning.BackgroundTransparency=1
- warning.BorderSizePixel=0
- warning.ZIndex=staminabr.ZIndex+1
- -- Functions --
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TweenTrans(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- -- Preparations --
- for asd,fgh in pairs(hed:GetChildren()) do if fgh:IsA'Sound' then fgh:Destroy() end end
- local laugh=Instance.new('Sound',hed)
- laugh.Volume=1
- laugh.Looped=false
- laugh.Pitch=1.4
- laugh.SoundId="http://www.roblox.com/asset/?id=132179181"
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- maus.Button1Down:connect(function()
- if maus.Hit then
- if not armmovement and not crouching and not crawling and not idled and not exhausted then
- armmovement=true
- armpose='Grabbing1'
- wait(.35)
- armpose='Grabbing2'
- wait(.3)
- armpose='Throwing'
- wait(.325)
- armmovement=false
- if BIMType=='Remote' and #remotebimcont:GetChildren()<6 then
- local firsthit=false
- local remotepew=Instance.new('Part',remotebimcont)
- remotepew.Locked=true
- remotepew.Name='Remote explosive'
- remotepew.formFactor='Custom'
- local remotemesh=Instance.new('SpecialMesh',remotepew)
- remotemesh.Name='Remote Explosive Mesh'
- remotemesh.MeshType='Sphere'
- remotemesh.VertexColor=Vector3.new(0,0,0)
- remotemesh.TextureId="http://www.roblox.com/asset/?id=136169713"
- remotemesh.MeshId="http://www.roblox.com/asset/?id=1527559"
- remotemesh.Scale=Vector3.new(.25,.125,.25)
- remotepew.Size=Vector3.new(.8,.3,.8)
- remotepew.BrickColor=BrickColor.new('White')
- remotepew.CFrame=rutprt.CFrame*CFrame.new(3,5,0)
- remotepew:breakJoints()
- remotepew.Velocity=((maus.Hit.p-rarm.Position).unit*((maus.Hit.p-rarm.Position).magnitude+math.random(20,80)))+Vector3.new(0,50,0)
- local remotelg=Instance.new('PointLight',remotepew)
- remotelg.Brightness=123123
- remotelg.Range=5
- remotelg.Shadows=true
- remotelg.Color=Color3.new(1,0,0)
- remotelg.Enabled=true
- remotepew.Touched:connect(function(hit)
- if hit and hit.CanCollide and not firsthit then
- firsthit=true
- local remotepewpewweld=Instance.new('Weld',remotepew)
- remotepewpewweld.Part0=remotepew
- remotepewpewweld.Part1=hit
- remotepewpewweld.C0=hit.CFrame:toObjectSpace(remotepew.CFrame) end end)
- coroutine.resume(coroutine.create(function()
- while wait() do
- for fadein=1,60 do
- remotelg.Range=fadein*.2
- wait()
- end
- for fadeitout=60,1,-1 do remotelg.Range=fadeitout*.2
- wait()
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while wait() do
- for fd=0,1,.02 do
- remotemesh.VertexColor=Vector3.new(fd,0,0)
- wait()
- end
- for df=1,0,-.02 do
- remotemesh.VertexColor=Vector3.new(df,0,0)
- wait()
- end
- end
- end))
- end
- if BIMType=="Implosion" and #impmodel:GetChildren()<2 then
- local firsthit=false
- local imppew=kami:Clone()
- imppew.CanCollide=true
- imppew['Kamikaze_Implosion_BI'].BrickColor=BrickColor.new('Really red')
- for asd,dsa in pairs(kami:GetChildren()) do if dsa.ClassName:match('Part') then dsa.CanCollide=true end end
- imppew.Parent=impmodel
- imppew.CFrame=rutprt.CFrame*CFrame.new(3,5,0)*CFrame.Angles(math.rad(90),0,0)
- imppew.Velocity=((maus.Hit.p-rarm.Position).unit*((maus.Hit.p-rarm.Position).magnitude+math.random(20,80)))+Vector3.new(0,50,0)
- local implg=Instance.new('PointLight',imppew)
- implg.Brightness=123123
- implg.Range=0
- implg.Shadows=true
- implg.Color=Color3.new(1,1,1)
- implg.Enabled=true
- local kamis=Instance.new('Sound',imppew)
- kamis.Volume=.75
- kamis.Looped=false
- kamis.Pitch=1.3
- kamis.SoundId="http://www.roblox.com/asset/?id=167115397"
- imppew.Touched:connect(function(hit)
- if hit and not firsthit then
- firsthit=true
- local imppewpewweld=Instance.new('Weld',imppew)
- imppewpewweld.Part0=imppew
- imppewpewweld.Part1=hit
- imppewpewweld.C0=hit.CFrame:toObjectSpace(imppew.CFrame)
- for asdff=1,15 do implg.Range=asdff wait() end
- kamis:Play()
- local pawpow=Instance.new('Part',chr)
- pawpow.formFactor='Custom'
- pawpow.Locked=true
- pawpow.Size=Vector3.new(.5,.5,.5)
- pawpow.CanCollide=false
- pawpow.Anchored=false
- pawpow.CFrame=imppew.CFrame
- pawpow.TopSurface=0
- pawpow.BottomSurface=0
- pawpow.Name='Implosion'
- pawpow.BrickColor=BrickColor.new('Really black')
- local kapaw=Instance.new('SpecialMesh',pawpow)
- kapaw.MeshType='Sphere'
- pawpow.Touched:connect(function(hat)
- if hat and hat.Size.x<=6 and hat.Size.y<=6 and hat.Size.z<=6 then
- hat:Destroy()
- end
- end)
- paew=pawpow.CFrame
- for death=1,8 do pawpow.Size=pawpow.Size+Vector3.new(.85,.85,.85) pawpow.CFrame=paew wait() end
- pawpow.Anchored=true
- imppew:Destroy()
- wait(.5)
- for doom=1,33 do pawpow.Transparency=pawpow.Transparency+1/33 wait() end
- pawpow:Destroy() end end)
- end
- if BIMType=='Cracker' then
- local firsthit=false
- local crakr=Instance.new('Part',Workspace)
- crakr.Locked=true
- crakr.Name='Cracker_BIM'
- crakr.BrickColor=BrickColor.new('Light stone grey')
- crakr.formFactor='Custom'
- crakr.Size=Vector3.new(1,1,1)
- crakr.CFrame=rutprt.CFrame*CFrame.new(3,5,0)*CFrame.Angles(math.rad(90),0,0)
- crakr.CanCollide=false
- crakr:breakJoints()
- local crm=Instance.new('SpecialMesh',crakr)
- crm.MeshType='Sphere'
- crm.Scale=Vector3.new(.65,.65,.65)
- local cdec=Instance.new('Part',crakr)
- cdec.Name='Cracker_Decor'
- cdec.Locked=true
- cdec.formFactor='Custom'
- cdec.CanCollide=false
- cdec.Size=Vector3.new(.5,.5,.5)
- cdec.BrickColor=BrickColor.new('Really red')
- local crklg=Instance.new('PointLight',cdec)
- crklg.Color=cdec.BrickColor.Color
- crklg.Range=15
- crklg.Shadows=true
- crklg.Brightness=123123
- coroutine.resume(coroutine.create(function()
- while wait(.2) do
- cdec.BrickColor=BrickColor.new('Really black')
- crklg.Color=cdec.BrickColor.Color
- wait(.2)
- cdec.BrickColor=BrickColor.new('Really red')
- crklg.Color=cdec.BrickColor.Color
- end
- end))
- local cdecm=Instance.new('SpecialMesh',cdec)
- cdecm.MeshType='Sphere'
- cdecm.Scale=Vector3.new(.45,.45,.45)
- local cdecw=Instance.new('Weld',crakr)
- cdecw.Part0=cdec
- cdecw.Part1=crakr
- cdecw.C0=CFrame.new(0,.25,0)
- crakr.Velocity=((maus.Hit.p-rarm.Position).unit*((maus.Hit.p-rarm.Position).magnitude+math.random(20,80)))+Vector3.new(0,50,0)
- wait() crakr.Touched:connect(function(hit)
- if hit and not firsthit then
- firsthit=true
- local peww=Instance.new('Explosion',Workspace)
- peww.ExplosionType="NoCraters"
- peww.BlastRadius=5
- peww.BlastPressure=2222222
- peww.DestroyJointRadiusPercent=.7
- peww.Position=crakr.Position
- crakr:Destroy()
- cdec:Destroy()
- end end)
- end
- if BIMType=='Light' then
- local firsttouch=false
- local ltb=Instance.new('Part',chr)
- ltb.formFactor='Custom'
- ltb.Size=Vector3.new(1.3, 1.3, 1.1)
- ltb.BrickColor=BrickColor.new('New Yeller')
- ltb.TopSurface=10
- ltb.BottomSurface=10
- ltb.RightSurface=10
- ltb.LeftSurface=10
- ltb.FrontSurface=10
- ltb.BackSurface=10
- ltb.Transparency=.4
- local ltm=Instance.new('SpecialMesh',ltb)
- ltm.MeshId="http://www.roblox.com/asset/?id=28657079"
- ltm.Scale=Vector3.new(0.5, 0.265, 15)
- ltb.CFrame=rutprt.CFrame*CFrame.new(3,5,0)*CFrame.Angles(math.rad(90),0,0)
- ltb.Velocity=((maus.Hit.p-rarm.Position).unit*((maus.Hit.p-rarm.Position).magnitude+math.random(20,80)))+Vector3.new(0,50,0)
- ltb.Touched:connect(function(hit)
- if hit and hit.CanCollide and not firsttouch then
- firsttouch=true
- ltb.CanCollide=false
- ltb.Size=Vector3.new(1.3/2, 1.3/2, 1.1/2)
- ltm.Scale=Vector3.new(0.5/2, 0.265/2, 15/2)
- local ltbw=Instance.new('Weld',ltb)
- ltbw.Part0=ltb
- ltbw.Part1=hit
- ltbw.C0=hit.CFrame:toObjectSpace(ltb.CFrame)
- local laite=Instance.new('PointLight',ltb)
- laite.Range=12.5
- laite.Color=ltb.BrickColor.Color
- laite.Shadows=true
- laite.Brightness=123123 end end)
- game:service'Debris':AddItem(ltb,15)
- end
- if BIMType=='Timer' then
- local pewpewd=false
- local time=timersettime
- local timbim=Instance.new('Part',chr)
- timbim.formFactor='Custom'
- timbim.Locked=true
- timbim.Anchored=false
- timbim.TopSurface='Smooth'
- timbim.BottomSurface='Smooth'
- timbim.CFrame=rutprt.CFrame*CFrame.new(3,5,0)
- timbim.Size=Vector3.new(.85,.85,.85)
- timbim.BrickColor=BrickColor.new('Really black')
- timbim:breakJoints()
- timbim.Velocity=((maus.Hit.p-rarm.Position).unit*((maus.Hit.p-rarm.Position).magnitude+math.random(20,80)))+Vector3.new(0,50,0)
- local tblg=Instance.new('PointLight',timbim)
- tblg.Color=Color3.new(0,1,1)
- tblg.Shadows=true
- tblg.Brightness=123123
- tblg.Range=time
- local timerrr=Instance.new('SurfaceGui',timbim)
- timerrr.Adornee=timbim
- timerrr.Face='Top'
- timerrr.CanvasSize=Vector2.new(100,120)
- local timerr=Instance.new('TextLabel',timerrr)
- timerr.TextColor3=Color3.new(0,1,1)
- timerr.TextScaled=true
- timerr.BackgroundTransparency=1
- timerr.Active=true
- timerr.Position=UDim2.new(0,0,0,0)
- timerr.Size=UDim2.new(1,0,1,0)
- timerr.ZIndex=123
- if time==10 then
- timerr.Text=time
- else
- timerr.Text="0"..time end
- timerr.Font='ArialBold'
- timerr.FontSize='Size48'
- while wait(.95) do
- if time-1==0 and not pewpewd then
- pewpewd=true
- local pewwww=Instance.new('Explosion',Workspace)
- pewwww.ExplosionType="NoCraters"
- pewwww.BlastRadius=10
- pewwww.BlastPressure=2222222
- pewwww.DestroyJointRadiusPercent=.7
- pewwww.Position=timbim.Position
- timbim:Destroy()
- else
- time=time-1
- timerr.Text="0"..time
- if time==1 then tblg.Range=10 tblg.Color=Color3.new(1,.125,0) timerr.TextColor3=Color3.new(1,0,0)
- else
- tblg.Color=Color3.new(0,1,1)
- tblg.Range=time
- end
- end
- end end
- elseif crawling and not armmovement and not crouching and not exhausted then
- chr.Humanoid.WalkSpeed=0
- armmovement=true
- if leftarm and not rightarm then
- armpose='LeftPreCrawlSmack'
- wait(.3)
- armpose='LeftCrawlSmack'
- wait(.15)
- local rei=Ray.new(larm.Position,((larm.CFrame*CFrame.new(0,-3,0)).p-larm.CFrame.p).unit*1.5)
- local hit,ded=Workspace:FindPartOnRayWithIgnoreList(rei,chr:GetChildren())
- if hit then
- if hit.Parent then
- if hit.Parent:findFirstChild('Torso') and hit.Parent:findFirstChild('Humanoid') then
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(20*(hit.Parent.Humanoid.MaxHealth/100))
- hit.Parent.Humanoid.Sit=true
- wait(.1)
- hit.Parent.Humanoid.Sit=false
- end
- end
- end
- wait(.2)
- leftarm=false
- rightarm=true
- armmovement=false
- chr.Humanoid.WalkSpeed=8
- elseif rightarm and not leftarm then
- armpose='RightPreCrawlSmack'
- wait(.3)
- armpose='RightCrawlSmack'
- wait(.15)
- local rei=Ray.new(rarm.Position,((rarm.CFrame*CFrame.new(0,-3,0)).p-rarm.CFrame.p).unit*1.5)
- local hit,ded=Workspace:FindPartOnRayWithIgnoreList(rei,chr:GetChildren())
- if hit then
- if hit.Parent then
- if hit.Parent:findFirstChild('Torso') and hit.Parent:findFirstChild('Humanoid') then
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(20*(hit.Parent.Humanoid.MaxHealth/100))
- hit.Parent.Humanoid.Sit=true
- wait(.1)
- hit.Parent.Humanoid.Sit=false
- end
- end
- end
- wait(.3)
- rightarm=false
- leftarm=true
- armmovement=false
- chr.Humanoid.WalkSpeed=8
- end
- end
- end
- end)
- maus.KeyDown:connect(function(kei)
- if not exhausted then
- if string.byte(kei)==48 and not crawling and not disabled then
- chr.Humanoid.WalkSpeed=36
- end
- if string.byte(kei)==48 and crawling then
- chr.Humanoid.WalkSpeed=16
- end
- if kei=='r' and not shortdebounce then
- shortdebounce=true
- for i,x in pairs(remotebimcont:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- if x.ClassName=='Part' then
- x.BrickColor=BrickColor.new('Really red')
- local remcln=x:clone()
- remcln.Parent=x
- for i,x in pairs(remcln:GetChildren()) do if x.ClassName:match('Mesh') then x:Destroy() end end
- local fadeout=Instance.new('SpecialMesh',remcln)
- fadeout.MeshType='Sphere'
- coroutine.resume(coroutine.create(function() for i=1,10 do fadeout.Scale=fadeout.Scale+Vector3.new(.2,.1,.2)
- remcln.Transparency=remcln.Transparency+.1
- wait() end remcln:Destroy() end))
- wait(.1)
- x.BrickColor=BrickColor.new('Really black')
- wait(.5)
- shortdebounce=false
- end
- end))
- end
- end
- if kei=='t' then
- if timersettime-1<3 then timersettime=1
- else
- timersettime=timersettime-1
- end
- end
- if kei=='y' then
- if timersettime+1>10 then timersettime=10
- else
- timersettime=timersettime+1
- end
- end
- if string.byte(kei)==50 and not crawling then
- if crouching then
- otheranims=false
- crouching=false
- chr.Humanoid.WalkSpeed=18
- elseif not crouching then
- otheranims=true
- crouching=true
- anim="Crouching"
- end
- end
- if kei=='c' and not crouching then
- if not crawling then crawling=true otheranims=true anim='IdleCrawl' chr.Humanoid.WalkSpeed=8
- elseif crawling then disabled=true chr.Humanoid.WalkSpeed=0 crawling=false anim='Standing' wait(.45) otheranims=false
- wait(.85) chr.Humanoid.WalkSpeed=18 disabled=false end end
- if kei=="f" then
- if vw.Enabled then
- vw.Enabled=false
- elseif not vw.Enabled then
- vw.Enabled=true
- end
- end
- if kei=='z' and not nmdb and not armmovement then
- nmdb=true
- if not crawling and not crouching then
- armmovement=true
- armpose='LightSwitching'
- end
- if glolite and glolite.Enabled then
- lgb.BrickColor=BrickColor.new('Black')
- glolite.Enabled=false
- else
- glolite.Enabled=true
- lgb.BrickColor=BrickColor.new('Curry')
- end
- wait(.5)
- nmdb=false
- armmovement=false
- end
- if kei=="l" then
- stamina=0
- end
- if kei=='v' and not nomoreimplosion then
- nomoreimplosion=true
- armmovement=true
- laugh:Play()
- armpose='Kamikaze'
- wait(1)
- kamid.BrickColor=BrickColor.new('Really red')
- wait(1)
- powpow=Instance.new('Part',chr)
- powpow.Locked=true
- powpow.formFactor='Custom'
- powpow.Size=Vector3.new(5,5,5)
- powpow.CanCollide=false
- powpow.Anchored=false
- powpow.CFrame=kami.CFrame
- powpow.TopSurface=0
- powpow.BottomSurface=0
- powpow.Name='Kamikaze implosion'
- powpow.BrickColor=BrickColor.new('Really black')
- local kapow=Instance.new('SpecialMesh',powpow)
- kapow.MeshType='Sphere'
- powpow.Touched:connect(function(hat)
- if hat and hat.Size.x<=15 and hat.Size.y<=15 and hat.Size.z<=15 then
- hat:Destroy()
- end
- end)
- pew=powpow.CFrame
- for death=1,10 do powpow.Size=powpow.Size+Vector3.new(3,3,3) powpow.CFrame=pew wait() end
- powpow.Anchored=true
- wait(.5)
- for doom=1,33 do powpow.Transparency=powpow.Transparency+1/33 wait() end
- powpow:Destroy()
- end
- if kei=='e' then
- if BIMNumber+1>#BIMs then BIMNumber=1
- else
- BIMNumber=BIMNumber+1 end
- end
- if kei=='q' then
- if BIMNumber-1<1 then BIMNumber=#BIMs
- else
- BIMNumber=BIMNumber-1 end end
- if kei=='m' and not idled and not crawling and not crouching and not otheranims then
- idled=true
- tek=61
- anim='Sleeping'
- end
- if kei=='x' then
- for i,x in pairs(remotebimcont:GetChildren()) do
- if x.ClassName=='Part' then
- local pewpew=Instance.new('Explosion',Workspace)
- pewpew.ExplosionType="NoCraters"
- pewpew.Position=x.Position
- pewpew.BlastPressure=2222222
- pewpew.BlastRadius=100
- pewpew.DestroyJointRadiusPercent=1
- wait()
- x:Destroy()
- end
- end
- end
- end
- end)
- coroutine.wrap(function()
- while wait() do
- if tickin and not crawling and not crouching and not exhausted then
- tek=tek+1
- wait(.9)
- else
- tek=0
- end end end)()
- maus.KeyUp:connect(function(kei)
- if not exhausted then
- if string.byte(kei)==48 and not crawling then
- chr.Humanoid.WalkSpeed=18
- end
- if string.byte(kei)==48 and crawling then
- chr.Humanoid.WalkSpeed=8 end end end)
- chr.Humanoid.Died:connect(function()
- for i,x in pairs(remotebimcont:GetChildren()) do
- if x.ClassName=='Part' then
- local pewpew=Instance.new('Explosion',Workspace)
- pewpew.ExplosionType="NoCraters"
- pewpew.Position=x.Position
- pewpew.BlastPressure=2222222
- pewpew.BlastRadius=8
- pewpew.DestroyJointRadiusPercent=1
- wait()
- x:Destroy()
- end
- end
- end)
- for lalal,lal in pairs(chr:GetChildren()) do if lal.ClassName=='Part' then
- for lalalalal,lalalal in pairs(lal:GetChildren()) do if lalalal.ClassName=='CharacterMesh' then lalalal:Destroy() end end
- elseif lal.ClassName=='CharacterMesh' then lal:Destroy() end end
- -- The main course --
- chr.Humanoid.Changed:connect(function(chng)
- if crouching or crawling or disabled or exhausted then
- if chng=='Jump' then
- chr.Humanoid.Jump=false
- end
- end
- end)
- local teehee=0
- game:service'RunService'.RenderStepped:connect(function()
- staminabar.Size=UDim2.new((stamina/maxstamina),0,.6,0)
- if stamina<(26*(maxstamina/100)) or exhausted then
- teehee=teehee+1
- if teehee>100 then teehee=0 end
- if teehee<=50 and teehee>=0 then
- staminabar.BackgroundTransparency=TweenTrans(staminabar.BackgroundTransparency,0,.075)
- stamframe.BackgroundTransparency=TweenTrans(stamframe.BackgroundTransparency,0,.075)
- warning.TextTransparency=TweenTrans(warning.TextTransparency,.5,.05)
- warning.TextStrokeTransparency=TweenTrans(warning.TextStrokeTransparency,.5,.05)
- else
- staminabar.BackgroundTransparency=TweenTrans(staminabar.BackgroundTransparency,.9,.075)
- stamframe.BackgroundTransparency=TweenTrans(stamframe.BackgroundTransparency,.9,.075)
- warning.TextTransparency=TweenTrans(warning.TextTransparency,.25,.05)
- warning.TextStrokeTransparency=TweenTrans(warning.TextStrokeTransparency,.25,.05)
- end
- elseif stamina>=(26*(maxstamina/100)) then
- staminabar.BackgroundTransparency=TweenTrans(staminabar.BackgroundTransparency,0,.075)
- stamframe.BackgroundTransparency=TweenTrans(stamframe.BackgroundTransparency,.9,.075)
- warning.TextTransparency=TweenTrans(warning.TextTransparency,1,.05)
- warning.TextStrokeTransparency=TweenTrans(warning.TextStrokeTransparency,1,.05)
- teehee=0
- end
- if glolite.Enabled then
- glolite.Range=TweenTrans(glolite.Range,17,.025)
- elseif not glolite.Enabled then
- glolite.Range=TweenTrans(glolite.Range,0,.5)
- end
- syne=syne+1
- BIMType=BIMs[BIMNumber]
- if BIMType=='Timer' then
- timergui.Active=true
- timergui.Visible=true
- else
- timergui.Active=false
- timergui.Visible=false
- end
- bimname.Text=BIMType..' BIM'
- bimdesc.Text=BIMDesc[BIMNumber]
- if timersettime==10 then
- timertracker.Text=timersettime
- else
- timertracker.Text="0"..timersettime
- end
- if not otheranims and not idled and not exhausted then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then
- anim="Idling"
- stamina=stamina+.1
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 25 and not chr.Humanoid.Jump then
- anim="Walking"
- idled=false
- stamina=stamina+.025
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 30 and not chr.Humanoid.Jump then
- anim="Sprinting"
- idled=false
- stamina=stamina-.2
- elseif (torso.Velocity.y > 1 or torso.Velocity.y < -1) and (torso.Velocity*Vector3.new(1,0,1)).magnitude<1.5 then
- anim="IdleJumping"
- idled=false
- stamina=stamina-.1
- elseif (torso.Velocity.y > 1 or torso.Velocity.y < -1) and (torso.Velocity*Vector3.new(1,0,1)).magnitude>1.5 and (torso.Velocity*Vector3.new(1,0,1)).magnitude<25 then
- anim="WalkJumping"
- idled=false
- stamina=stamina-.125
- elseif (torso.Velocity.y > 1 or torso.Velocity.y < -1) and (torso.Velocity*Vector3.new(1,0,1)).magnitude>25 then
- anim="RunJumping"
- idled=false
- stamina=stamina-.15
- end
- end
- if not crouching and not crawling then
- if (torso.Velocity*Vector3.new(1,0,1)).magnitude>1 or torso.Velocity.y>10 then
- tickin=false
- idled=false
- tek=0
- else
- tickin=true
- end
- end
- if tek>=60 and not exhausted then
- crouching=false crawling=false idled=true anim='Sleeping' end
- if otheranims and crawling and not idled and not exhausted then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then
- anim="IdleCrawl"
- stamina=stamina+.125
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and not chr.Humanoid.Jump then
- anim="Crawling"
- idled=false
- stamina=stamina-.05
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and not chr.Humanoid.Jump then
- anim="SpeedCrawling"
- idled=false
- stamina=stamina-.25
- end end
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- if idled and anim=='Sleeping' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .65, 0) * CFrame.Angles(0, 0, math.cos(syne/30)/10+math.rad(25)), 0.025)
- larm.Weld.C0=Lerp(larm.Weld.C0, CFrame.new(-1.5, .65, 0) * CFrame.Angles(0, 0, (math.cos(-syne/30)/10*-1)-math.rad(25)), 0.025)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.9,-1.85,0)*CFrame.Angles(0,0,(math.cos(-syne/30)/20*-1)-math.rad(25)),.025)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.9,-1.85,0)*CFrame.Angles(0,0,math.cos(syne/30)/20+math.rad(25)),.025)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(-10),0,0),.025)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/30)/15-2.35,0)*CFrame.Angles(math.rad(180),math.rad(180),0),.025)
- stamina=stamina+.5
- end
- if anim=="Idling" and not otheranims then
- if runtime>100 then runtime=0 end
- runtime=runtime+1
- if runtime>0 and runtime<(50) then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .55, 0) * CFrame.Angles(0, 0, math.rad(7)), 0.025)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .55, 0) * CFrame.Angles(0, 0, math.rad(-7)), 0.025)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.2,-.95,-.6)*CFrame.Angles(math.rad(-8),math.rad(-3.5),math.rad(0)),.025)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.55, -1.95, 0) * CFrame.Angles(0, 0, math.rad(-2)), 0.025)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.55, -1.95, 0) * CFrame.Angles(0, 0, math.rad(2)), 0.025)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(-7),0,0),.025)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.05,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0)),.025)
- else
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.025)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(0, 0, math.rad(-0)), 0.025)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.25,-.9,-.6)*CFrame.Angles(math.rad(-5),math.rad(-6.5),math.rad(0)),.025)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.95, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.025)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.95, 0) * CFrame.Angles(0, 0, math.rad(-0)), 0.025)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(-0),0,0),.025)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,.05,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0)),0.025)
- end
- end
- if anim=="Walking" and not otheranims then
- if runtime>50 then runtime=0 end
- runtime=runtime+1
- if runtime>0 and runtime<(25) then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(-50), 0, math.rad(4)), 0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(50), 0, math.rad(-4)), 0.1)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.15,-.9,-.6)*CFrame.Angles(math.rad(-2),math.rad(-1.5),math.rad(-3)),.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.55, -1.85, .7) * CFrame.Angles(math.rad(-50), 0, math.rad(-4)), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.55, -1.85, -.7) * CFrame.Angles(math.rad(50), 0, math.rad(4)), 0.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.sin(syne/20)/15,0)*CFrame.Angles(math.rad((math.sin(syne/20)/5)+85),math.rad(179),math.rad(0)),0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.cos(syne/30)/20+math.rad(5),0,math.rad(1)),.1)
- else
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(50), 0, math.rad(4)), 0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(-50), 0, math.rad(-4)), 0.1)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(-.3,-.95,-.6)*CFrame.Angles(math.rad(-7),math.rad(-5),math.rad(3)),.1)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.55, -1.85, -.7) * CFrame.Angles(math.rad(50), 0, math.rad(-4)), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.55, -1.85, .7) * CFrame.Angles(math.rad(-50), 0, math.rad(4)), 0.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.sin(syne/20)/15,0)*CFrame.Angles(math.rad((math.sin(syne/20)/5)+85),math.rad(181),math.rad(0)),0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.cos(syne/30)/20+math.rad(5),0,math.rad(-1)),.1)
- end
- end
- if anim=="Sprinting" and not otheranims then
- if runtime>30 then runtime=0 end
- runtime=runtime+1
- if runtime>0 and runtime<(15) then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .55, 0) * CFrame.Angles(math.rad(-40), 0, math.rad(4)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .55, 0) * CFrame.Angles(math.rad(60), 0, math.rad(-4)), 0.15)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(-.2,-.9,-.6)*CFrame.Angles(math.rad(-2),math.rad(-1.5),math.rad(8)),.15)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.55, -1.9, .6) * CFrame.Angles(math.rad(-40), 0, math.rad(-4)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.55, -1.9, -.6) * CFrame.Angles(math.rad(45), 0, math.rad(4)), 0.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.sin(syne/20)/10,0)*CFrame.Angles(math.rad((math.sin(syne/20)/5)+70),math.rad(176),math.rad(0)),0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.cos(syne/30)/20+math.rad(15),0,math.rad(2)),.15)
- else
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(60), 0, math.rad(4)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(-40), 0, math.rad(-4)), 0.15)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.35,-.9,-.6)*CFrame.Angles(math.rad(-2),math.rad(-1.5),math.rad(-8)),.15)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.55, -1.9, -.6) * CFrame.Angles(math.rad(45), 0, math.rad(-4)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.55, -1.9, .6) * CFrame.Angles(math.rad(-40), 0, math.rad(4)), 0.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/20)/15,0)*CFrame.Angles(math.rad((math.sin(syne/20)/5)+70),math.rad(184),math.rad(0)),0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.cos(syne/30)/20+math.rad(15),0,math.rad(-2)),.15)
- end end
- if anim=="IdleJumping" then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.5, .55, 0) * CFrame.Angles(math.rad(170), 0, math.rad(7)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .55, 0) * CFrame.Angles(math.rad(170), 0, math.rad(-7)), 0.15)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.95, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.95, 0) * CFrame.Angles(0, 0, math.rad(-0)), 0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(10),0,0),.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0)),0.25)
- end
- if anim=="RunJumping" then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.35, .4, 0) * CFrame.Angles(math.rad(60), 0, math.rad(-12)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .5, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(10)), 0.15)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.25,-.4,-.9)*CFrame.Angles(math.rad(20),math.rad(-6.5),math.rad(0)),.15)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, .15) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.35, -.1) * CFrame.Angles(math.rad(-10), 0, math.rad(-0)), 0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(20),0,0),.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(60),math.rad(180),math.rad(0)),0.25)
- end
- if anim=="WalkJumping" then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.35, .4, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(13)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-13)), 0.15)
- end
- beltutil.Weld.C1=Lerp(beltutil.Weld.C1,CFrame.new(.25,-.4,-.9)*CFrame.Angles(math.rad(20),math.rad(-6.5),math.rad(0)),.15)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, .15) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, .15) * CFrame.Angles(math.rad(-10), 0, math.rad(-0)), 0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.rad(20),0,0),.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(80),math.rad(180),math.rad(0)),0.25)
- end
- if exhausted and anim=="Exhausted" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, .75, -.1)* CFrame.Angles(math.rad(175), 0, math.rad(10)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .75, -.1) * CFrame.Angles(math.rad(175), 0, math.rad(-10)), 0.15)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.625, -1.775, 0) * CFrame.Angles(math.rad(-1), 0, math.rad(-10)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.625, -1.775, 0) * CFrame.Angles(math.rad(-1), 0, math.rad(10)), 0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.55,.25)*CFrame.Angles(math.rad(30),0,0),.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.45,0)*CFrame.Angles(math.rad(1),math.rad(180),math.rad(0)),0.15)
- end
- if armmovement then
- if armpose=='Grabbing1' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.4,-.2)*CFrame.Angles(math.rad(30),math.rad(20),math.rad(-30)),.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .45, 0) * CFrame.Angles(math.rad(10), 0, math.rad(10)), 0.15)
- end
- if armpose=='Grabbing2' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.4,-.2)*CFrame.Angles(math.rad(10),math.rad(-40),math.rad(120)),.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .45, 0) * CFrame.Angles(math.rad(10), 0, math.rad(10)), 0.15)
- end
- if armpose=='Throwing' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.4,0)*CFrame.Angles(math.rad(95),math.rad(0),math.rad(-25)),.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .45, 0) * CFrame.Angles(math.rad(10), 0, math.rad(10)), 0.15)
- end
- if armpose=='RightPreCrawlSmack' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, 0, -.125)* CFrame.Angles(math.rad(150), 0, math.rad(-12.5)), 0.15)
- end
- if armpose=='RightCrawlSmack' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(.5, 1.1, -.15)* CFrame.Angles(math.rad(170), 0, math.rad(-20)), 0.2)
- end
- if armpose=='LeftPreCrawlSmack' then
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, 0, -.125) * CFrame.Angles(math.rad(150), 0, math.rad(12.5)), 0.15)
- end
- if armpose=='LeftCrawlSmack' then
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.5, 1.1, -.15) * CFrame.Angles(math.rad(170), 0, math.rad(20)), 0.2)
- end
- if armpose=='Kamikaze' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.1,.5,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)),.025)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .45, 0) * CFrame.Angles(math.rad(10), 0, math.rad(10)), 0.025)
- end
- if armpose=='LightSwitching' then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.4,-.2)*CFrame.Angles(math.rad(30),math.rad(20),math.rad(-35)),.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .35, 0) * CFrame.Angles(math.rad(10), 0, math.rad(25)), 0.05)
- end
- end
- if otheranims then
- if anim=='Standing' then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, .5, -.1) * CFrame.Angles(math.rad(85), 0, math.rad(-15)), 0.1)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .5, -.1) * CFrame.Angles(math.rad(85), 0, math.rad(15)), 0.1)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.7, -.75) * CFrame.Angles(math.rad(30), 0, math.rad(0)), 0.1)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.7, -.75) * CFrame.Angles(math.rad(30), 0, math.rad(-0)), 0.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.35,.3)*CFrame.Angles(math.rad(40),0,0),.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(5),math.rad(180),math.rad(0)),0.1)
- end
- if anim=="Crouching" then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.35, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(-25)), 0.05)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.35, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(25)), 0.05)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.5, -.45) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.05)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -.45) * CFrame.Angles(math.rad(-10), 0, math.rad(-0)), 0.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,math.cos(syne/30)/20+1.5,0)*CFrame.Angles(math.cos(syne/30)/20-math.rad(5),0,0),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-1.8,0)*CFrame.Angles(math.rad(80),math.rad(180),math.rad(0)),0.05)
- end
- if crawling then
- if anim=="IdleCrawl" then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, .75, -.15)* CFrame.Angles(math.rad(140), 0, math.rad(-25)), 0.15)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .75, -.15) * CFrame.Angles(math.rad(140), 0, math.rad(25)), 0.15)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.15)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.15)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/20+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(72.5),0,0),.15)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(15),math.rad(180),math.rad(0)),0.15)
- end
- if anim=='Crawling' then
- if runtime>35 then runtime=0 end
- runtime=runtime+1
- if runtime>0 and runtime<(17.5) then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.15, 1, -.3) * CFrame.Angles(math.rad(135), 0, math.rad(-25)), .175)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, .5, -.1) * CFrame.Angles(math.rad(140), 0, math.rad(25)), 0.175)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.175)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.15, -.3) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.175)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/20+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(-4),0),.175)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.3,0)*CFrame.Angles(math.rad(15),math.rad(184),math.rad(0)),0.15)
- else
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, .5, -.1) * CFrame.Angles(math.rad(140), 0, math.rad(-25)),.175)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.15, 1, -.3) * CFrame.Angles(math.rad(135), 0, math.rad(25)), .175)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.15, -.3) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), .175)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.175)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/20+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(4),0),.175)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(15),math.rad(176.5),math.rad(0)),0.15)
- end
- end
- end
- if anim=='SpeedCrawling' then
- if runtime>25 then runtime=0 end
- runtime=runtime+1
- if runtime>0 and runtime<(12.5) then
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.15, 1, -.3) * CFrame.Angles(math.rad(135), 0, math.rad(-25)), .225)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, .5, -.1) * CFrame.Angles(math.rad(140), 0, math.rad(25)), 0.225)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.225)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.15, -.3) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.225)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/25+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(-4),0),.225)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.3,0)*CFrame.Angles(math.rad(15),math.rad(184),math.rad(0)),0.15)
- else
- if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, .5, -.1) * CFrame.Angles(math.rad(140), 0, math.rad(-25)),.225)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.15, 1, -.3) * CFrame.Angles(math.rad(135), 0, math.rad(25)), .225)
- end
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.15, -.3) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), .225)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.225)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/25+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(4),0),.225)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(15),math.rad(176.5),math.rad(0)),0.15)
- end
- end
- end
- chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- if powpow and pew then powpow.CFrame=pew end
- if crawling or crouching then chr.Humanoid.Sit=false chr.Humanoid.PlatformStand=false chr.Humanoid.RightLeg=nil chr.Humanoid.LeftLeg=nil
- else
- chr.Humanoid.LeftLeg=lleg chr.Humanoid.RightLeg=rleg end
- if exhausted then chr.Humanoid.WalkSpeed=0 otheranims=false crouching=false crawling=false idled=false stamframe.BackgroundColor3=Color3.new(1,0,0) warning.Text="Can't go further..." staminabar.BackgroundColor3=Color3.new(0,0,0) stamina=stamina+(.225*(maxstamina/100)) end
- if stamina>=maxstamina and exhausted then exhausted=false stamframe.BackgroundColor3=Color3.new(0,1,1) staminabar.BackgroundColor3=Color3.new(1,.8,0) warning.Text="Tired..." anim="Idling" end
- if stamina<=1 then exhausted=true anim="Exhausted" end
- if crouching then chr.Humanoid.WalkSpeed=0 stamina=stamina+(maxstamina/1111) end
- if stamina>maxstamina then stamina=maxstamina end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement