Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[This was just a animation remake of School ShooterV2 Made by rufus12,
- Do whatever with it
- --makhail07,The skid who makes animations.
- --Discord: Superthumb#2958
- --]]
- function clerp(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
- Personality = "Columbine"
- vt = Vector3.new
- Effects = { }
- bc = BrickColor.new
- plr = game:service'Players'.LocalPlayer
- char = plr.Character
- Player = game.Players.LocalPlayer
- Character = Player.Character
- mouse = plr:GetMouse()
- humanoid = char:findFirstChild("Humanoid")
- torso = char:findFirstChild("Torso")
- head = char.Head
- Head = char.Head
- ra = char:findFirstChild("Right Arm")
- la = char:findFirstChild("Left Arm")
- rl = char:findFirstChild("Right Leg")
- ll = char:findFirstChild("Left Leg")
- rs = torso:findFirstChild("Right Shoulder")
- ls = torso:findFirstChild("Left Shoulder")
- rh = torso:findFirstChild("Right Hip")
- lh = torso:findFirstChild("Left Hip")
- neck = torso:findFirstChild("Neck")
- rss = game:GetService("RunService").RenderStepped
- rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- anim = char:findFirstChild("Animate")
- root = char.HumanoidRootPart
- rootpart = char:findFirstChild("HumanoidRootPart")
- RootPart = char:findFirstChild("HumanoidRootPart")
- attack = false
- drinks = 0
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function newPart(Parent, brickcolor, transparency, anchored, cancollide, size, name)
- local fp = Instance.new("Part")
- fp.Parent = Parent
- fp.Transparency = transparency
- fp.Anchored = anchored
- fp.CanCollide = cancollide
- fp.Locked = true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = torso.Position
- NoOutline(fp)
- fp.Material = "SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh, part, meshtype, meshid, offset, scale)
- local mesh = Instance.new(Mesh)
- mesh.Parent = part
- if Mesh == "SpecialMesh" then
- mesh.MeshType = meshtype
- if meshid then
- mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
- end
- end
- if offset then
- mesh.Offset = offset
- end
- mesh.Scale = scale
- return mesh
- end
- function weld(parent, part0, part1, c0)
- local weld = Instance.new("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- 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
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- function thread(f)
- coroutine.resume(coroutine.create(f))
- end
- --Very important stuff--
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- local sine = 0
- local change = 1
- player=nil
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- 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
- newWeld(RootPart, Torso, 0, -1, 0)
- Torso.Weld.C1 = CFrame.new(0, -1, 0)
- newWeld(Torso, LeftLeg, -0.5, -1, 0)
- LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(Torso, RightLeg, 0.5, -1, 0)
- RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Weld4 = Instance.new("Weld")
- Weld5 = Instance.new("Weld")
- Weld6 = Instance.new("Weld")
- Part7 = Instance.new("Part")
- Model0.Name = "Sawed Off"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Shape = Enum.PartType.Cylinder
- Part1.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
- Part1.CFrame = CFrame.new(40.7499924, 151.548019, 156.470001, 1.0000006, -1.78813934e-07, 0, -1.78813934e-07, 1.00000024, 0, 0, 0, 1)
- Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
- Part1.Position = Vector3.new(40.7499924, 151.548019, 156.470001)
- Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
- Part1.Material = "Granite"
- Part2.Parent = Model0
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.Shape = Enum.PartType.Cylinder
- Part2.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
- Part2.CFrame = CFrame.new(40.7499962, 151.548035, 156.079056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
- Part2.Position = Vector3.new(40.7499962, 151.548035, 156.079056)
- Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
- Part2.Material = "Granite"
- Part3.Parent = Model0
- Part3.BrickColor = BrickColor.new("Cocoa")
- Part3.Rotation = Vector3.new(0, 0, -34)
- Part3.Size = Vector3.new(1.11000025, 0.519999921, 0.570000172)
- Part3.CFrame = CFrame.new(42.5974922, 150.98793, 156.274887, 0.829038441, 0.559192181, 0, -0.55919224, 0.829038203, 0, 0, 0, 1)
- Part3.Color = Color3.new(0.317647, 0.145098, 0)
- Part3.Position = Vector3.new(42.5974922, 150.98793, 156.274887)
- Part3.Orientation = Vector3.new(0, 0, -34)
- Part3.Color = Color3.new(0.317647, 0.145098, 0)
- Part3.Material = "Slate"
- Weld4.Name = "1"
- Weld4.Parent = Part3
- Weld4.C0 = CFrame.new(-1.84484863, -0.568756104, -0.195831299, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
- Weld4.Part0 = Part3
- Weld4.Part1 = Part2
- Weld5.Name = "3"
- Weld5.Parent = Part3
- Weld5.C0 = CFrame.new(-0.60994339, 0.0636444092, 0.00506591797, 0.866026163, 0.499997735, 0, -0.499997616, 0.866026044, 0, 0, 0, 1)
- Weld5.Part0 = Part3
- Weld5.Part1 = Part7
- Weld6.Name = "2"
- Weld6.Parent = Part3
- Weld6.C0 = CFrame.new(-1.84484482, -0.568771362, 0.195114136, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
- Weld6.Part0 = Part3
- Weld6.Part1 = Part1
- Part7.Parent = Model0
- Part7.BrickColor = BrickColor.new("Cocoa")
- Part7.Rotation = Vector3.new(0, 0, -64)
- Part7.Size = Vector3.new(0.440000623, 0.519999921, 0.759999931)
- Part7.CFrame = CFrame.new(42.1274147, 151.381775, 156.279953, 0.438374251, 0.898792326, 0, -0.898792267, 0.438373834, 0, 0, 0, 1)
- Part7.Color = Color3.new(0.317647, 0.145098, 0)
- Part7.Position = Vector3.new(42.1274147, 151.381775, 156.279953)
- Part7.Orientation = Vector3.new(0, 0, -64)
- Part7.Color = Color3.new(0.317647, 0.145098, 0)
- Part7.Material = "Slate"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- end
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character.Torso
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- weldf = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- weldf.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weldf.Part1 = Part3
- weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511)
- using = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
- Sound00 = Instance.new("Sound")
- Sound00.Volume = 6
- Sound00.Parent = game.Players.LocalPlayer.Character.Head
- Sound00.SoundId = "rbxassetid://330706798"
- bullethitforclone = Instance.new("Sound")
- bullethitforclone.Volume = 4
- bullethitforclone.Parent = game.Players.LocalPlayer.Character.Head
- bullethitforclone.SoundId = "rbxassetid://144884872"
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,3,TorsoColor)
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright red"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,10,0)
- bodyVelocity.P=1000
- bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- swait(5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- Hulmet = Instance.new("Part")
- Hulmet.Position = Hulmet.Position + Vector3.new(0, 10, 0)
- Hulmet.Parent = game.Players.LocalPlayer.Character
- Hulmet.Name = "Helmet"
- Hulmet.Size = Vector3.new(1.643, 1.157, 1.696)
- Hulmet.Material = Enum.Material.Metal
- Hulmet.BrickColor = BrickColor.new("Really black")
- MSHE = Instance.new("SpecialMesh")
- MSHE.Parent = Hulmet
- MSHE.MeshId = "rbxassetid://13640868"
- WULD = Instance.new("Weld")
- WULD.Parent = Hulmet
- WULD.Part0 = Hulmet
- WULD.Part1 = game.Players.LocalPlayer.Character.Head
- WULD.C1 = CFrame.Angles(0, -0.7, 0)
- WULD.C0 = CFrame.new(0, -0.6, 0)
- char049 = game.Players.LocalPlayer.Character
- pcall(function()
- for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- end)
- function shoot()
- if not using then
- using = true
- attack = true
- for i = 0,5 , 0.1 do
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(85), math.rad(0)), 0.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 15 * math.cos(sine / 25)),math.rad(5),math.rad(10)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(4),math.rad(-5)),.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(60) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(60), 0), .8)
- end
- Sound00:Play()
- local Shell = Instance.new("Part")
- Shell.Parent = workspace
- Shell.Size = Vector3.new(.1,.3,.1)
- Shell.Archivable = true
- Shell.Transparency = 0
- Shell.CanCollide = true
- Shell.BrickColor = BrickColor.new("Really red")
- Shell.Material = "Neon"
- Shell.CFrame = Part3.CFrame*CFrame.new(-0.2,0.5,0)
- Shell.Velocity = (Part3.CFrame * CFrame.Angles(math.rad(math.random(20,30)*8), -math.rad(-40), math.rad(-20))).lookVector * 42
- game:service'Debris':AddItem(Shell,7)
- for i = 1,7 do
- local bullet = Instance.new("Part", workspace)
- bullet.Size = Vector3.new(0.2,0.2,3)
- bullet.BrickColor = BrickColor.new("Really black")
- bullet.Material = "Neon"
- bullet.Anchored = false
- bullet.CFrame = Part1.CFrame * CFrame.new(3,0,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- local velocityofbullet = Instance.new("BodyVelocity", bullet)
- velocityofbullet.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocityofbullet.Velocity = mouse.Hit.lookVector * 1150 + Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- bullet.CanCollide = false
- bullet:BreakJoints()
- local con5=bullet.Touched:connect(function(hit) Damagefunc(hit,67,85,math.random(50,90),"Knockdown",RootPart,.2,1)
- if attackdebounce == false then
- attackdebounce = true
- bullet.Transparency = 1
- wait(0.1)
- bullet:Destroy()
- attackdebounce = false
- end
- end)
- end
- for i = 0,1 , .1 do
- weldf.C0 = clerp(weldf.C0,CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(85), math.rad(0)), 0.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 15 * math.cos(sine / 25)),math.rad(5),math.rad(10)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0 = clerp(LW.C0,cf(-1.5, 0.5, 0)*angles(math.rad(0), math.rad(0), math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(60) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(60), 0), .8)
- end
- for i = 0,1 , .1 do
- weldf.C0 = clerp(weldf.C0,CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(85), math.rad(0)), 0.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 15 * math.cos(sine / 25)),math.rad(5),math.rad(10)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0 = clerp(LW.C0,cf(-1.5, 0.5, 0)*angles(math.rad(0), math.rad(0), math.rad(0)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(60) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(60), 0), .8)
- end
- for i = 0,1 , .01 do
- weldf.C0 = clerp(weldf.C0,CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -2.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247)* angles(math.rad(0),math.rad(0),math.rad(0)),i)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(85), math.rad(0)), 0.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 15 * math.cos(sine / 25)),math.rad(-5),math.rad(-10)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(6),math.rad(-9)),.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.1)
- end
- wait(1)
- attack = false
- using = false
- weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511)
- end
- end
- mouse.Button1Down:connect(shoot)
- --Sounds/Music--
- music = Instance.new("Sound",torso)
- music.SoundId = "rbxassetid://581195737"
- music.Volume = 3.5
- music.Looped = true
- music:Play()
- local HBill = Instance.new("BillboardGui",head)
- local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
- local HName = Instance.new("TextLabel")
- HBill.Size = UDim2.new(15,0,2.2,0)
- HBill.Name = "Health Display"
- HBill.StudsOffset = Vector3.new(3.675,2,0)
- HBill.AlwaysOnTop = true
- HBill.Enabled = true
- HMain.BackgroundColor3 = Color3.new(0, 0, 0)
- HMain.BackgroundTransparency = 1
- HMain.Size = UDim2.new(.5,0,.5,0)
- HName.Parent = HMain
- HName.BackgroundTransparency = 1
- HName.BackgroundColor3 = Color3.new(0,0,0)
- HName.BorderColor3 = Color3.new(1,1,1)
- HName.BorderSizePixel = 2
- HName.Size = UDim2.new(1,0,.75,0)
- HName.Font = "Highway"
- HName.Text = "Inno"
- HName.TextScaled = true
- HName.TextColor3 = Color3.new(0,0,0)
- HName.TextStrokeColor3 = Color3.new(42,42,42)
- HName.TextStrokeTransparency = 0
- HName.TextYAlignment = "Bottom"
- for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Pants") then
- v:Remove()
- end
- end
- wait()
- shirt = Instance.new("Shirt", game.Players.LocalPlayer.Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", game.Players.LocalPlayer.Character)
- pants.Name = "Pants"
- game.Players.LocalPlayer.Character.Shirt.ShirtTemplate = "rbxassetid://24040613"
- local BC = game.Players.LocalPlayer.Character["Body Colors"]
- BC.LeftLegColor = BrickColor.new("Really black")
- BC.RightLegColor = BrickColor.new("Really black")
- game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=304904077"
- game.Players.LocalPlayer.Character.Head.face.Transparency = 0
- --animations--
- local sine = 0
- local change = 1
- local val = 0
- Humanoid.Animator.Parent = nil
- idleanim=.4
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath() Don't even try to do something with this i've already tried like 20 times
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- change = 2
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0 + 360 * math.cos (sine / 30)),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.6+0.15*math.cos(sine/60), -0.4) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-16)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(16)), 0.1)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- change = 1
- if attack==false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.8-0.50*math.cos(sine/60), 0) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(2)), 0.1)
- RH.C0=clerp(RH.C0,cf(1,0.20,-0.25)*angles(math.rad(90),math.rad(90),math.rad(90))*angles(math.rad(90),math.rad(90),math.rad(90)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(90),math.rad(-90),math.rad(90))*angles(math.rad(90),math.rad(90),math.rad(90)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1.2-0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5*math.cos(sine/25)),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(-4),math.rad(5)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(4),math.rad(-5)),.3)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.15*math.cos(sine/60), 0.1) * CFrame.Angles(math.rad(-6), math.rad(3), math.rad(-4)), 0.1)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/60), 0) * CFrame.Angles(math.rad(6), math.rad(-3), math.rad(4)), 0.1)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- Humanoid.CameraOffset = Vector3.new(0,0,0)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5*math.cos(sine/25)),math.rad(0),math.rad(0)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * angles(math.rad(-15), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 65), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-7), math.rad(-4),math.rad(5)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(55*math.cos(sine/7)), math.rad(4),math.rad(-5)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.15*math.cos(sine/7)/2, 0 *math.sin(sine/7)/2) * CFrame.Angles(math.rad(-8) + -math.sin(sine/7)/1.2, math.rad(0), 0), .8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/7)/2,0 *-math.sin(sine/7)/2) * CFrame.Angles(math.rad(8) + math.sin(sine/7)/1.2, math.rad(0), 0), .8)
- end
- elseif torvel>=22 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5*math.cos(sine/25)),math.rad(0),math.rad(0)),.3)
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * angles(math.rad(-15), math.rad(0), math.rad(0) / 65), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-7), math.rad(-4),math.rad(5)),.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(55*math.cos(sine/7)), math.rad(4),math.rad(-5)),.2)
- LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.15*math.cos(sine/7)/2, 0 *math.sin(sine/7)/2) * CFrame.Angles(math.rad(-8) + -math.sin(sine/7)/1.2, math.rad(0), 0), .8)
- RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.15*math.cos(sine/7)/2,0 *-math.sin(sine/7)/2) * CFrame.Angles(math.rad(8) + math.sin(sine/7)/1.2, math.rad(0), 0), .8)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement