Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------
- --The Masked ROBLOXian--
- ------------------------
- --By CKbackup--
- ---------------
- player = game.Players.LocalPlayer
- mouse = player:GetMouse()
- chara = player.Character
- equipped = false
- del = false
- attacking = false
- atkd = false
- hum = chara:FindFirstChildOfClass("Humanoid")
- hum.WalkSpeed = 10
- debby = game.Debris
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.03333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num*30 do
- ArtificialHB.Event:wait()
- end
- end
- end
- 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
- Blaster = nil
- meshpresent = false
- ShootPart = nil
- for i, v in pairs(chara:GetChildren()) do
- if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
- meshpresent = true
- end
- end
- if meshpresent == false then
- Blaster = New("Model",chara,"Blaster",{})
- MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 1.60000014, 1),CFrame = CFrame.new(-9.5, 0.99999994, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("BlockMesh",MainPart,"Mesh",{Scale = Vector3.new(1.04999995, 1, 1.04999995),})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -0.600000083, 2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-8.99999905, 1.29999924, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, 0.299999297, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-9.5, 0.0999997854, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.04999995, 0.800000012),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, -0.900000155, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-9.5, 0.0999997854, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",ShootPart,"Mesh",{})
- Weld = New("ManualWeld",ShootPart,"Weld",{Part0 = ShootPart,Part1 = MainPart,C1 = CFrame.new(0, -0.900000155, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-8.99999905, 0.50000006, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.499999881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.399999917, 0.600000024, 0.200000003),CFrame = CFrame.new(-8.99999905, 0.899999559, -15.4999971, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.100000381, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- elseif meshpresent == true then
- Blaster = New("Model",chara,"Blaster",{})
- MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 1.40000021, 1),CFrame = CFrame.new(-10.6999989, 0.900003612, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",MainPart,"Mesh",{})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(-0.199998856, -0.699999869, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-10.1999979, 1.30000281, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, 0.399999201, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 0.100003421, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1.04999995, 0.600000024),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, -0.800000191, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 0.100003421, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",ShootPart,"Mesh",{Scale = Vector3.new(0.699999988, 1, 0.699999988),})
- Weld = New("ManualWeld",ShootPart,"Weld",{Part0 = ShootPart,Part1 = MainPart,C1 = CFrame.new(0, -0.800000191, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.399999917, 0.200000033, 0.200000003),CFrame = CFrame.new(-10.1999979, 0.500003695, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -0.399999917, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.399999917, 0.600000024, 0.200000003),CFrame = CFrame.new(-10.1999979, 0.900003195, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
- Mesh = New("CylinderMesh",Part,"Mesh",{})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0.500000954, -4.17232513e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Blaster,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.99999994, 0.200000003, 1),CFrame = CFrame.new(-10.6999989, 1.50000334, -15.4999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 5, 1),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = MainPart,C1 = CFrame.new(0, 0.599999726, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- end
- Sword = New("Model",chara,"Sword",{})
- HandlePart = New("Part",Sword,"HandlePart",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.99999994, 0.200000003),CFrame = CFrame.new(-3.69999695, 0.700078905, -9.30000019, 0.999991417, 0, 0, 0, 1.00001717, 0, 0, 0, 1.00001717),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("CylinderMesh",HandlePart,"Mesh",{})
- GWeld = New("Weld",HandlePart,"GWeld",{Part0 = HandlePart,Part1 = chara["Left Arm"],})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.199999943, 0.200000003),CFrame = CFrame.new(-3.69999695, 0.100065172, -9.30000019, 0.999994278, 0, 0, 0, 1.00001144, 0, 0, 0, 1.00001144),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),C1 = CFrame.new(0, -0.600003421, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.15866339, -9.75859165, 0.999991417, 0, 0, 0, 0.707118869, 0.707118988, 0, -0.707118988, 0.707118869),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998391, 0, 0, 0, 0.707108915, -0.707109034, 0, 0.707109034, 0.707108915),C1 = CFrame.new(0, 0.45857662, -0.458583832, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.30010247, -9.30000019, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(0, 0.600013196, 0, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.599999964, 0.600000024),CFrame = CFrame.new(-3.69999647, 5.10027504, -9.29999924, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),MeshType = Enum.MeshType.Wedge,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(4.76837158e-07, 4.40012074, 9.53674316e-07, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 0.199999943, 0.600000024),CFrame = CFrame.new(-3.69999695, 1.15866399, -8.84140778, -0.999991417, 2.51216356e-15, 2.51218325e-15, 3.55284073e-15, 0.707116961, 0.707121074, -3.60000312e-21, 0.707121015, -0.707116902),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, -0.999998569, 3.55272893e-15, -3.59989003e-21, 2.51215149e-15, 0.707109749, 0.707113802, 2.5121589e-15, 0.70710963, -0.707112253),C1 = CFrame.new(0, 0.458577216, 0.458584785, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
- Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(0.200000003, 3.40000033, 0.600000024),CFrame = CFrame.new(-3.69999695, 3.1002686, -9.30000019, 0.999987125, 0, 0, 0, 1.00002575, 0, 0, 0, 1.00002575),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = HandlePart,C1 = CFrame.new(0, 2.40014839, 0, 0.999995708, 0, 0, 0, 1.00000858, 0, 0, 0, 1.00000858),})
- Hitbox = New("Part",Sword,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 4.00000048, 0.600000024),CFrame = CFrame.new(-3.69999695, 3.40013981, -9.30000019, 0.999988556, 0, 0, 0, 1.00002289, 0, 0, 0, 1.00002289),CanCollide = false,})
- Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
- Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = HandlePart,C0 = CFrame.new(0, 0, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),C1 = CFrame.new(0, 2.70001459, 0, 0.999998569, 0, 0, 0, 1.00000286, 0, 0, 0, 1.00000286),})
- Helmet = New("Part",chara,"Helmet",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 0.800000012, 1),CFrame = CFrame.new(-6.48999977, 0.800009966, -11.2199984, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
- Mesh = New("SpecialMesh",Helmet,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=11185622",MeshType = Enum.MeshType.FileMesh,})
- Weld = New("ManualWeld",Helmet,"Weld",{Part0 = Helmet,Part1 = chara.Head,C1 = CFrame.new(0, 0.299999952, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- SHead = New("Part",chara,"SHead",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",SHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
- Weld = New("ManualWeld",SHead,"Weld",{Part0 = SHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Wings = New("Part",chara,"Wings",{BrickColor = BrickColor.new("Really black"),Reflectance = 0.30000001192093,FormFactor = Enum.FormFactor.Custom,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-11, 2.5, -19.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Wings,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=93715902",MeshType = Enum.MeshType.FileMesh,})
- Weld = New("ManualWeld",Wings,"Weld",{Part0 = Wings,Part1 = chara.Torso,C1 = CFrame.new(0, 1.5, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- RightArm = New("Model",chara,"RightArm",{})
- MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
- Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- LeftArm = New("Model",chara,"LeftArm",{})
- MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
- Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- lach = LeftArm:GetChildren()
- rach = RightArm:GetChildren()
- Shirt = chara:FindFirstChildOfClass("Shirt")
- Pants = chara:FindFirstChildOfClass("Pants")
- if Shirt == nil then
- Shirt = Instance.new("Shirt",chara)
- end
- if Pants == nil then
- Pants = Instance.new("Pants",chara)
- end
- Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=90811696"
- Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832"
- --Sounds--
- function LoadSnd(id,loop,vol,pit)
- local snd = New("Sound",HandlePart,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
- return snd
- end
- Music = LoadSnd(164282197,true,1,1)
- Music.Parent = chara
- if player.Name == "Bruno_IAmBR" then
- Music.SoundId = "rbxassetid://164282197"
- end
- Music:Play()
- StartUpSnd = LoadSnd(153092315,false,1,.8)
- SwingSnd = LoadSnd(200633108,false,1,1)
- Swing2Snd = LoadSnd(536642316,false,1,1)
- HitSnd = LoadSnd(153092274,false,1,1)
- HitPunchSnd = LoadSnd(153092227,false,1,1)
- SV2Snd = LoadSnd(2697431,false,1,.3)
- SVHitSnd = LoadSnd(62339698,false,1,.3)
- LaserSnd = LoadSnd(178452221,false,1,.6)
- LaserSnd = LoadSnd(2974000,false,1,.8)
- PewSnd = LoadSnd(410543238,false,1,.5)
- --Play Sound in Part--
- function PlaySnd(snd,part)
- local sound = snd:Clone()
- sound.PlayOnRemove = true
- sound.Parent = part
- sound:Destroy()
- end
- function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
- local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
- local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
- local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
- return TEff
- end
- SlashT = CreateTrailObj(Hitbox,"Bright orange","Bright yellow",0,.3)
- --PunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
- --KickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
- --Punch Hit Effect--
- function PunchEff(pos)
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(1,1,1)
- p.BrickColor = BrickColor.new("Really red")
- p.Material = "Neon"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = pos
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshType = "Sphere"
- local disp = coroutine.wrap(function()
- for i = 0,1,.2 do
- swait()
- p.Transparency = i
- pm.Scale = Vector3.new(2*i,2*i,2*i)
- end
- swait()
- p:Destroy()
- end)
- disp()
- end
- function SlashEff(pos)
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(1,1,1)
- p.BrickColor = BrickColor.new("Neon orange")
- p.Material = "Neon"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshType = "Sphere"
- local disp = coroutine.wrap(function()
- for i = 0,1,.2 do
- swait()
- p.Transparency = i
- pm.Scale = Vector3.new(.3,10*i,.3)
- end
- swait()
- p:Destroy()
- end)
- disp()
- end
- --Handle Wielding--
- idlec0 = CFrame.new(-.2,-.2,1) * CFrame.fromEulerAnglesXYZ(math.rad(120),0,0)
- pointc0 = CFrame.new(0,-.7,0) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0)
- GWeld.C0 = idlec0
- --Damage Function--
- function dealdmg(dude,damage,env,toim,kby,kbx)
- coroutine.resume(coroutine.create(function()
- if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
- finaldmg = damage + math.random(-env,env)
- dudehum = dude:FindFirstChildOfClass("Humanoid")
- dudehum.MaxHealth = 100
- dudehum.Health = dudehum.Health - finaldmg
- local vall = Instance.new("ObjectValue",dude)
- vall.Name = "IsHit"
- game.Debris:AddItem(vall,toim)
- local bfos = Instance.new("BodyVelocity",dude.Head)
- bfos.P = 20000
- bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
- bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
- game.Debris:AddItem(bfos,.1)
- local naeeym2 = Instance.new("BillboardGui",dude)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = "-"..finaldmg
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,0.6,0)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- for i = 1, 5 do
- wait(.1)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end
- end))
- end
- --Explode Hitbox--
- function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
- local E = Instance.new("Explosion")
- E.Position = pos
- E.Parent = game.Workspace
- E.BlastRadius = rad
- E.BlastPressure = 0
- E.Visible = false
- E.Hit:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
- dealdmg(hit.Parent,damage,env,toim,kby,kbx)
- end
- end)
- end
- --Punch Touch--
- dela = .5
- punchactive = false
- function punchhit(hit)
- if punchactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- dealdmg(hit.Parent,10,2,dela,0,5)
- PlaySnd(HitPunchSnd,hit.Parent.Head)
- PunchEff(hit.CFrame)
- end
- end
- end
- --Emit2Part.Touched:connect(punchhit)
- EmitPart.Touched:connect(punchhit)
- --Kick Touch--
- kickactive = false
- function kickhit(hit)
- if kickactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- PlaySnd(HitPunchSnd,hit.Parent.Head)
- PunchEff(hit.CFrame)
- dealdmg(hit.Parent,15,2,dela,0,10)
- end
- end
- end
- chara["Right Leg"].Touched:connect(kickhit)
- --Blade Touch--
- bladeactive = false
- function bladehit(hit)
- if bladeactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- dealdmg(hit.Parent,15,2,.05,0,0)
- PlaySnd(HitSnd,hit.Parent.Head)
- SlashEff(hit.CFrame)
- end
- end
- end
- Hitbox.Touched:connect(bladehit)
- --Chat Function--
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if chara:FindFirstChild("TalkingBillBoard")~= nil then
- chara:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",chara)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = chara.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(.3,.3,.3)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while tecks2 ~= nil do
- swait(.05)
- tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
- end
- end))
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- swait(0.01)
- end
- swait(1)
- for i = 1, 5 do
- swait(.01)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- function onChatted(msg)
- chatfunc(msg)
- end
- player.Chatted:connect(onChatted)
- --Clerp Animations--
- TC = chara.HumanoidRootPart.RootJoint
- HC = chara.Torso.Neck
- RAC = chara.Torso["Right Shoulder"]
- LAC = chara.Torso["Left Shoulder"]
- RLC = chara.Torso["Right Hip"]
- LLC = chara.Torso["Left Hip"]
- TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RW = Instance.new("Weld",HC.Parent)
- RW.Part1 = HC.Parent
- RW.Part0 = chara["Right Arm"]
- RW.C0 = RWF
- LW = Instance.new("Weld",HC.Parent)
- LW.Part1 = HC.Parent
- LW.Part0 = chara["Left Arm"]
- LW.C0 = LWF
- RLW = nil
- LLW = nil
- grp = Instance.new("Model",chara)
- function AddLegWelds()
- RLW = Instance.new("Weld",chara["Right Leg"])
- RLW.Part1 = HC.Parent
- RLW.Part0 = chara["Right Leg"]
- RLW.C0 = RLWF
- LLW = Instance.new("Weld",chara["Left Leg"])
- LLW.Part1 = HC.Parent
- LLW.Part0 = chara["Left Leg"]
- LLW.C0 = LLWF
- end
- function DestroyLegWelds()
- RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
- LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
- RLW:Destroy()
- LLW:Destroy()
- end
- function clerp(a,b,c)
- return a:lerp(b,c)
- end
- ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30))
- IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
- IRWF = (RWF - Vector3.new(-.5,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-60),math.rad(-50),0)
- ILWF = (LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(50),0)
- function res()
- TC.C0 = ITCF
- HC.C0 = IHCF
- RW.C0 = IRWF
- LW.C0 = ILWF
- end
- res()
- hum.Name = "hoomanood"
- Instance.new("ForceField",chara).Visible = false
- --Cannon--
- function Cannon()
- del = true
- hum.WalkSpeed = 0
- SlashT.Enabled = true
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.4+i)
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i)
- RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),.4+i)
- end
- swait(.5)
- SVHitSnd:Play()
- for i = 0,.6,.2 do
- swait()
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF,.4+i)
- LW.C0 = clerp((LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),(LWF - Vector3.new(2.5,-2.5,-.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)),.4+i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-10)),.4+i)
- GWeld.C0 = clerp(idlec0,pointc0,.4+i)
- end
- swait(.1)
- SVHitSnd:Play()
- for i = 0,.6,.2 do
- swait()
- LW.C0 = clerp((LWF - Vector3.new(2.5,-2.5,-.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(120)),(LWF + Vector3.new(0,-.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(70),0),.4+i)
- end
- swait(.1)
- SVHitSnd:Play()
- for i = 0,.6,.2 do
- swait()
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.4+i)
- LW.C0 = clerp((LWF + Vector3.new(0,-.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(70),0),(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),.4+i)
- end
- swait(.1)
- SVHitSnd:Play()
- for i = 0,.6,.2 do
- swait()
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),IHCF,.4+i)
- TC.C0 = clerp(TCF,ITCF,.4+i)
- LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),(LWF + Vector3.new(-1,1,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0),.4+i)
- end
- LW.C0 = (LWF + Vector3.new(-1,1,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0)
- GWeld.C0 = pointc0
- local EffectPart = Instance.new("Part",chara)
- EffectPart.Size = Vector3.new(1,1,1)
- EffectPart.Anchored = true
- EffectPart.BrickColor = BrickColor.new("Neon orange")
- EffectPart.Position = mouse.Hit.p
- EffectPart.CFrame = mouse.Hit
- EffectPart.Material = "Neon"
- local EffectPart2 = Instance.new("Part",chara)
- EffectPart2.Size = Vector3.new(1,1,1)
- EffectPart2.Anchored = true
- EffectPart2.BrickColor = BrickColor.new("Neon orange")
- EffectPart2.Position = mouse.Hit.p
- EffectPart2.CFrame = CFrame.new(mouse.Hit.p.X,mouse.Hit.p.Y,mouse.Hit.p.Z)
- EffectPart2.Material = "Neon"
- local mehs1 = Instance.new("SpecialMesh",EffectPart)
- mehs1.MeshType = "Sphere"
- mehs1.Scale = Vector3.new(10,10,10)
- local mehs2 = Instance.new("CylinderMesh",EffectPart2)
- mehs2.Scale = Vector3.new(1,9999,1)
- local Place0 = EmitPart.CFrame
- local Place1 = EffectPart.CFrame
- local leng = (Place0.p - Place1.p).magnitude
- local P = Instance.new("Part")
- local meshla = Instance.new("BlockMesh", P)
- meshla.Scale = Vector3.new(1,1,1)
- P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
- P.Name = "Laser"
- P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
- P.Parent = chara
- P.BrickColor = BrickColor.new("Neon orange")
- P.Material = "Neon"
- P.Anchored = true
- P.CanCollide = false
- P.Locked = true
- P.BottomSurface = "Smooth"
- P.TopSurface = "Smooth"
- PlaySnd(LaserSnd,chara)
- ExHitbox(15,Place1.p,40,1,.05,50,50)
- for i = 1, 5 do
- coroutine.resume(coroutine.create(function()
- local hitp = Instance.new("Part",chara)
- hitp.Size = Vector3.new(1,1,1)
- hitp.Anchored = true
- hitp.CanCollide = false
- hitp.BrickColor = BrickColor.new("Neon orange")
- hitp.Transparency = 1
- hitp.CFrame = EffectPart.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local hitm = Instance.new("SpecialMesh",hitp)
- hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- hitm.Scale = Vector3.new(4,4,1)
- for i = 0,1,.1 do
- swait(.001)
- hitp.Transparency = i
- hitm.Scale = Vector3.new(i*80,i*80,i)
- end
- hitp:Destroy()
- end))
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,1,.05 do
- swait()
- mehs1.Scale = Vector3.new(5*i,5*i,5*i)
- mehs2.Scale = Vector3.new(2*i,9999,2*i)
- meshla.Scale = Vector3.new(2.5*i,2.5*i,1)
- EffectPart.Transparency = i
- EffectPart2.Transparency = i
- P.Transparency = i
- end
- ----
- P:Destroy()
- EffectPart:Destroy()
- EffectPart2:Destroy()
- end))
- swait(.5)
- for i = 0,.6,.1 do
- swait()
- LW.C0 = clerp((LWF + Vector3.new(-1,-.5,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0),ILWF,.4+i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-10)),IRWF,.4+i)
- GWeld.C0 = clerp(idlec0,pointc0,.6-i)
- end
- GWeld.C0 = idlec0
- SlashT.Enabled = false
- hum.WalkSpeed = 10
- walking = false
- del = false
- end
- --Blast--
- function Blast()
- del = true
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.4+i)
- end
- TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
- HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- local p1 = Instance.new("Part",chara)
- p1.CFrame = ShootPart.CFrame
- p1.Position = ShootPart.Position
- p1.Size = Vector3.new(.5,.5,.5)
- p1.BrickColor = BrickColor.new("Bright blue")
- p1.Material = "Neon"
- p1.CanCollide = false
- p1.Transparency = 1
- local pm1 = Instance.new("SpecialMesh",p1)
- pm1.MeshType = "Sphere"
- local wd1 = Instance.new("Weld",p1)
- wd1.Part0 = p1
- wd1.Part1 = ShootPart
- local p2 = Instance.new("Part",chara)
- p2.CFrame = ShootPart.CFrame
- p2.Position = ShootPart.Position
- p2.Size = Vector3.new(.5,.5,.5)
- p2.BrickColor = BrickColor.new("Bright blue")
- p2.Material = "Neon"
- p2.CanCollide = false
- p2.Transparency = 1
- local pm2 = Instance.new("SpecialMesh",p2)
- pm2.MeshType = "Sphere"
- local wd2 = Instance.new("Weld",p2)
- wd2.Part0 = p2
- wd2.Part1 = ShootPart
- PewSnd:Play()
- for i = 0,1,.2 do
- swait()
- p1.Transparency = i/2
- p2.Transparency = i/2
- pm1.Scale = Vector3.new(5*i,1,1)
- pm2.Scale = Vector3.new(1,1,5*i)
- end
- local missile = Instance.new("Part",game.Workspace)
- missile.Size = Vector3.new(.6,1,.6)
- missile.Name = "Blast"
- missile.BrickColor = BrickColor.new("Bright blue")
- missile.Material = "Neon"
- missile.CanCollide = false
- missile.TopSurface = 0
- missile.BottomSurface = 0
- missile.Position = ShootPart.Position
- missile.CFrame = (ShootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector*2)
- missile.Velocity = chara.HumanoidRootPart.CFrame.lookVector*150
- local pmit = Instance.new("ParticleEmitter",missile)
- pmit.Texture = "rbxasset://textures/particles/smoke_main.dds"
- pmit.Color = ColorSequence.new(BrickColor.new("Bright blue").Color)
- pmit.LightEmission = 1
- pmit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
- pmit.Lifetime = NumberRange.new(1)
- pmit.Rate = 10000
- pmit.Rotation = NumberRange.new(0,359)
- pmit.RotSpeed = NumberRange.new(100)
- pmit.Speed = NumberRange.new(0)
- local mesh1 = Instance.new("SpecialMesh",missile)
- mesh1.MeshType = "Sphere"
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
- force.Parent = missile
- missile.Touched:connect(function(hit)
- if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then
- missile.Anchored = true
- ExHitbox(3,missile.Position,30,1,.1,0,0)
- for i = 0,1,.1 do
- swait()
- mesh1.Scale = Vector3.new(3*i,3*i,3*i)
- end
- missile:Destroy()
- end
- end)
- debby:AddItem(missile,10)
- for i = 0,1,.2 do
- swait()
- p1.Transparency = .5+(i/2)
- p2.Transparency = .5+(i/2)
- pm1.Scale = Vector3.new(5-5*i,1,1)
- pm2.Scale = Vector3.new(1,1,5-5*i)
- end
- p1:Destroy()
- p2:Destroy()
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.6-i)
- end
- walking = false
- del = false
- res()
- end
- --Flip--
- function Flip()
- del = true
- res()
- hum.WalkSpeed = 0
- AddLegWelds()
- Swing2Snd:Play()
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
- RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
- LW.C0 = clerp(ILWF,LWF,.4+i)
- RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
- Wings.Transparency = .6-i
- end
- Wings.Transparency = 0
- local bf = Instance.new("BodyVelocity",chara.Torso)
- bf.P = 100000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30
- debby:AddItem(bf,.5)
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
- LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
- LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
- end
- bf.MaxForce = Vector3.new(bf.P,0,bf.P)
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i)
- end
- swait(.5)
- bf:Destroy()
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
- RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
- LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
- end
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
- RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
- LW.C0 = clerp(ILWF,LWF,.6-i)
- RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
- Wings.Transparency = .4+i
- end
- Wings.Transparency = 1
- DestroyLegWelds()
- res()
- hum.WalkSpeed = 10
- walking = false
- del = false
- end
- function BackFlip()
- del = true
- res()
- hum.WalkSpeed = 0
- AddLegWelds()
- Swing2Snd:Play()
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i)
- RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
- LW.C0 = clerp(ILWF,LWF,.4+i)
- RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
- Wings.Transparency = .6-i
- end
- Wings.Transparency = 0
- local bf = Instance.new("BodyVelocity",chara.Torso)
- bf.P = 100000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
- LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i)
- LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i)
- end
- bf.MaxForce = Vector3.new(bf.P,0,bf.P)
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i)
- end
- swait(.5)
- bf:Destroy()
- for i = 0,1,.25 do
- swait()
- TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
- RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),i)
- LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i)
- end
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i)
- RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
- LW.C0 = clerp(ILWF,LWF,.6-i)
- RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i)
- Wings.Transparency = .4+i
- end
- Wings.Transparency = 1
- DestroyLegWelds()
- res()
- hum.WalkSpeed = 10
- walking = false
- del = false
- end
- --Keys--
- combo = 0
- function onKeyDown(key)
- if del == false then
- if key == "z" then
- Cannon()
- elseif key == "x" then
- Blast()
- elseif key == "r" then
- BackFlip()
- elseif key == "t" then
- Flip()
- elseif key == "k" then
- Music:Stop()
- Music.SoundId = "rbxassetid://161783960"
- Music:Play()
- elseif key == "l" then
- Music:Stop()
- Music.SoundId = "rbxassetid://300671319"
- Music:Play()
- elseif key == "m" then
- if Music.IsPlaying == true then
- Music:Stop()
- elseif Music.IsPlaying == false then
- Music:Play()
- end
- end
- end
- end
- function onButton1Down()
- if del == false then
- del = true
- res()
- Swing2Snd:Play()
- bladeactive = true
- SlashT.Enabled = true
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- for i = 0,.6,.2 do
- swait()
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- bladeactive = false
- swait(.1)
- for i = 0,.6,.1 do
- swait()
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- SlashT.Enabled = false
- res()
- walking = false
- del = false
- end
- end
- if mouse then
- mouse.Button1Down:connect(onButton1Down)
- mouse.KeyDown:connect(onKeyDown)
- end
- --Loop Function--
- walking = false
- toim = 0
- while true do
- swait()
- toim = toim + .1
- if del == false then attacking = false elseif del == true then attacking = true end
- if atkd == true then
- TC.C0 = TCF
- HC.C0 = HCF
- RW.C0 = RWF
- LW.C0 = LWF
- atkd = false
- end
- if atkdd == true then
- TC.C0 = ITCF
- HC.C0 = IHCF
- RW.C0 = IRWF
- LW.C0 = ILWF
- atkdd = false
- end
- hum.Name = "hoomanood"
- hum.MaxHealth = math.huge
- hum.Health = math.huge
- torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
- if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
- for i = 0,1,.5 do
- swait(.001)
- if del == false and attacking == false then
- TC.C0 = clerp(TCF,ITCF,i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,i)
- LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,i)
- end
- end
- walking = false
- elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
- for i = 0,1,.5 do
- swait(.001)
- if del == false and attacking == false then
- TC.C0 = clerp(TCF,ITCF,1-i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
- RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,1-i)
- LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,1-i)
- end
- end
- walking = true
- else
- end
- end
Add Comment
Please, Sign In to add comment