SHOW:
|
|
- or go back to the newest paste.
| 1 | ------------------------ | |
| 2 | - | --0m3g4-- |
| 2 | + | --i d k what is this?-- |
| 3 | ------------------------ | |
| 4 | - | --By XXUNORIBOASXX, Original Source : CKBackup-- |
| 4 | + | --Edited By SonicSydney, Original Source : CKBackup-- |
| 5 | --------------- | |
| 6 | ||
| 7 | player = game.Players.LocalPlayer | |
| 8 | mouse = player:GetMouse() | |
| 9 | chara = player.Character | |
| 10 | equipped = false | |
| 11 | del = false | |
| 12 | attacking = false | |
| 13 | atkd = false | |
| 14 | hum = chara:FindFirstChildOfClass("Humanoid")
| |
| 15 | hum.WalkSpeed = 20 | |
| 16 | debby = game.Debris | |
| 17 | ||
| 18 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 19 | ArtificialHB.Name = "Heartbeat" | |
| 20 | script:WaitForChild("Heartbeat")
| |
| 21 | frame = 0.03333333333333 | |
| 22 | tf = 0 | |
| 23 | allowframeloss = false | |
| 24 | tossremainder = false | |
| 25 | lastframe = tick() | |
| 26 | script.Heartbeat:Fire() | |
| 27 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 28 | tf = tf + s | |
| 29 | if tf >= frame then | |
| 30 | if allowframeloss then | |
| 31 | script.Heartbeat:Fire() | |
| 32 | lastframe = tick() | |
| 33 | else | |
| 34 | for i = 1, math.floor(tf / frame) do | |
| 35 | script.Heartbeat:Fire() | |
| 36 | end | |
| 37 | lastframe = tick() | |
| 38 | end | |
| 39 | if tossremainder then | |
| 40 | tf = 0 | |
| 41 | else | |
| 42 | tf = tf - frame * math.floor(tf / frame) | |
| 43 | end | |
| 44 | end | |
| 45 | end) | |
| 46 | function swait(num) | |
| 47 | if num == 0 or num == nil then | |
| 48 | ArtificialHB.Event:wait() | |
| 49 | else | |
| 50 | for i = 0, num*30 do | |
| 51 | ArtificialHB.Event:wait() | |
| 52 | end | |
| 53 | end | |
| 54 | end | |
| 55 | ||
| 56 | New = function(Object, Parent, Name, Data) | |
| 57 | local Object = Instance.new(Object) | |
| 58 | for Index, Value in pairs(Data or {}) do
| |
| 59 | Object[Index] = Value | |
| 60 | end | |
| 61 | Object.Parent = Parent | |
| 62 | Object.Name = Name | |
| 63 | return Object | |
| 64 | end | |
| 65 | ||
| 66 | Blaster = nil | |
| 67 | meshpresent = false | |
| 68 | ShootPart = nil | |
| 69 | for i, v in pairs(chara:GetChildren()) do | |
| 70 | if v:IsA("CharacterMesh") and v.BodyPart == Enum.BodyPart.RightArm then
| |
| 71 | meshpresent = true | |
| 72 | end | |
| 73 | end | |
| 74 | ||
| 75 | if meshpresent == false then | |
| 76 | Blaster = New("Model",chara,"Blaster",{})
| |
| 77 | MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.DiamondPlate,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,})
| |
| 78 | Mesh = New("BlockMesh",MainPart,"Mesh",{Scale = Vector3.new(1.04999995, 1, 1.04999995),})
| |
| 79 | 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),})
| |
| 80 | Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,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,})
| |
| 81 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 82 | 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),})
| |
| 83 | Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.DiamondPlate,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),})
| |
| 84 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.04999995, 0.800000012),})
| |
| 85 | 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),})
| |
| 86 | ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.DiamondPlate,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,})
| |
| 87 | Mesh = New("CylinderMesh",ShootPart,"Mesh",{})
| |
| 88 | 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),})
| |
| 89 | Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,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,})
| |
| 90 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 91 | 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),})
| |
| 92 | Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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(0, 0, 0),})
| |
| 93 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 94 | 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),})
| |
| 95 | elseif meshpresent == true then | |
| 96 | Blaster = New("Model",chara,"Blaster",{})
| |
| 97 | MainPart = New("Part",Blaster,"MainPart",{Material = Enum.Material.DiamondPlate,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,})
| |
| 98 | Mesh = New("CylinderMesh",MainPart,"Mesh",{})
| |
| 99 | 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),})
| |
| 100 | Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,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,})
| |
| 101 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 102 | 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),})
| |
| 103 | Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.DiamondPlate,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),})
| |
| 104 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.600000024, 1.04999995, 0.600000024),})
| |
| 105 | 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),})
| |
| 106 | ShootPart = New("Part",Blaster,"ShootPart",{Material = Enum.Material.DiamondPlate,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,})
| |
| 107 | Mesh = New("CylinderMesh",ShootPart,"Mesh",{Scale = Vector3.new(0.699999988, 1, 0.699999988),})
| |
| 108 | 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),})
| |
| 109 | Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,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,})
| |
| 110 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 111 | 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),})
| |
| 112 | Part = New("Part",Blaster,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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(0, 0, 0),})
| |
| 113 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 114 | 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),})
| |
| 115 | Part = New("Part",Blaster,"Part",{Material = Enum.Material.DiamondPlate,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,})
| |
| 116 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 5, 1),MeshType = Enum.MeshType.Sphere,})
| |
| 117 | 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),})
| |
| 118 | end | |
| 119 | ||
| 120 | Sword = New("Model",chara,"Sword",{})
| |
| 121 | - | HandlePart = New("Part",Sword,"HandlePart",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 121 | + | HandlePart = New("Part",Sword,"HandlePart",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 122 | Mesh = New("CylinderMesh",HandlePart,"Mesh",{})
| |
| 123 | GWeld = New("Weld",HandlePart,"GWeld",{Part0 = HandlePart,Part1 = chara["Left Arm"],})
| |
| 124 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 124 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 125 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),MeshType = Enum.MeshType.Sphere,})
| |
| 126 | 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),})
| |
| 127 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 127 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 128 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 129 | 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),})
| |
| 130 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 130 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 131 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),})
| |
| 132 | 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),})
| |
| 133 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 133 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 134 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),MeshType = Enum.MeshType.Wedge,})
| |
| 135 | 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),})
| |
| 136 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 136 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 137 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 138 | 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),})
| |
| 139 | - | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 139 | + | Part = New("Part",Sword,"Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 140 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
| |
| 141 | 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),})
| |
| 142 | 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,})
| |
| 143 | Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.300000012, 1, 0.699999988),})
| |
| 144 | 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),})
| |
| 145 | ||
| 146 | - | 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),})
|
| 146 | + | SHead = New("Part",chara,"SHead",{BrickColor = BrickColor.new("Really red"),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),})
|
| 147 | Mesh = New("SpecialMesh",SHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
| |
| 148 | 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),})
| |
| 149 | ||
| 150 | - | 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),})
|
| 150 | + | Wings = New("Part",chara,"Wings",{BrickColor = BrickColor.new("Really red"),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),})
|
| 151 | Mesh = New("SpecialMesh",Wings,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=93715902",MeshType = Enum.MeshType.FileMesh,})
| |
| 152 | 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),})
| |
| 153 | ||
| 154 | RightArm = New("Model",chara,"RightArm",{})
| |
| 155 | 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,})
| |
| 156 | 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),})
| |
| 157 | - | Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 157 | + | Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 158 | Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 159 | 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),})
| |
| 160 | LeftArm = New("Model",chara,"LeftArm",{})
| |
| 161 | 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,})
| |
| 162 | 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),})
| |
| 163 | - | EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Camo"),Material = Enum.Material.DiamondPlate,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),})
|
| 163 | + | EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.DiamondPlate,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),})
|
| 164 | Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 165 | 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),})
| |
| 166 | ||
| 167 | lach = LeftArm:GetChildren() | |
| 168 | rach = RightArm:GetChildren() | |
| 169 | ||
| 170 | Shirt = chara:FindFirstChildOfClass("Shirt")
| |
| 171 | Pants = chara:FindFirstChildOfClass("Pants")
| |
| 172 | if Shirt == nil then | |
| 173 | Shirt = Instance.new("Shirt",chara)
| |
| 174 | end | |
| 175 | if Pants == nil then | |
| 176 | Pants = Instance.new("Pants",chara)
| |
| 177 | end | |
| 178 | - | Shirt.ShirtTemplate = "rbxassetid://554828175" |
| 178 | + | Shirt.ShirtTemplate = "rbxassetid://404950402" |
| 179 | - | Pants.PantsTemplate = "rbxassetid://1031921793" |
| 179 | + | Pants.PantsTemplate = "rbxassetid://468459489" |
| 180 | ||
| 181 | --Sounds-- | |
| 182 | function LoadSnd(id,loop,vol,pit) | |
| 183 | local snd = New("Sound",HandlePart,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
| |
| 184 | return snd | |
| 185 | end | |
| 186 | - | Music = LoadSnd(161783960,true,1,1) |
| 186 | + | Music = LoadSnd(811235780,true,1,1) |
| 187 | Music.Parent = chara | |
| 188 | - | if player.Name == "CKbackup" then |
| 188 | + | if player.Name == "SonicSydney" then |
| 189 | - | Music.SoundId = "rbxassetid://548913803" |
| 189 | + | Music.SoundId = "rbxassetid://811235780" |
| 190 | end | |
| 191 | Music:Play() | |
| 192 | StartUpSnd = LoadSnd(153092315,false,1,.8) | |
| 193 | SwingSnd = LoadSnd(200633108,false,1,1) | |
| 194 | Swing2Snd = LoadSnd(536642316,false,1,1) | |
| 195 | HitSnd = LoadSnd(153092274,false,1,1) | |
| 196 | HitPunchSnd = LoadSnd(153092227,false,1,1) | |
| 197 | SV2Snd = LoadSnd(2697431,false,1,.3) | |
| 198 | SVHitSnd = LoadSnd(62339698,false,1,.3) | |
| 199 | - | LaserSnd = LoadSnd(178452221,false,1,.6) |
| 199 | + | LaserSnd = LoadSnd(462606062,false,1,.6) |
| 200 | LaserSnd = LoadSnd(2974000,false,1,.8) | |
| 201 | PewSnd = LoadSnd(410543238,false,1,.5) | |
| 202 | ||
| 203 | --Play Sound in Part-- | |
| 204 | function PlaySnd(snd,part) | |
| 205 | local sound = snd:Clone() | |
| 206 | sound.PlayOnRemove = true | |
| 207 | sound.Parent = part | |
| 208 | sound:Destroy() | |
| 209 | end | |
| 210 | ||
| 211 | function CreateTrailObj(parent,color1,color2,ofsx,ofsz) | |
| 212 | local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
| |
| 213 | local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
| |
| 214 | 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})
| |
| 215 | return TEff | |
| 216 | end | |
| 217 | ||
| 218 | - | SlashT = CreateTrailObj(Hitbox,"Camo","Camo",0,.3) |
| 218 | + | SlashT = CreateTrailObj(Hitbox,"Bright red","Bright red",0,.3) |
| 219 | - | --PunchT = CreateTrailObj(chara["Left Arm"],"Camo","Camo",0,0) |
| 219 | + | --PunchT = CreateTrailObj(chara["Left Arm"],"Bright red","Bright red",0,0) |
| 220 | - | --KickT = CreateTrailObj(chara["Right Leg"],"Camo","Camo",0,0) |
| 220 | + | --KickT = CreateTrailObj(chara["Right Leg"],"Bright red","Bright red",0,0) |
| 221 | ||
| 222 | --Punch Hit Effect-- | |
| 223 | function PunchEff(pos) | |
| 224 | local p = Instance.new("Part",game.Workspace)
| |
| 225 | p.Size = Vector3.new(1,1,1) | |
| 226 | - | p.BrickColor = BrickColor.new("Camo")
|
| 226 | + | p.BrickColor = BrickColor.new("Bright red")
|
| 227 | p.Material = "DiamondPlate" | |
| 228 | p.Anchored = true | |
| 229 | p.CanCollide = false | |
| 230 | p.CFrame = pos | |
| 231 | local pm = Instance.new("SpecialMesh",p)
| |
| 232 | pm.MeshType = "Sphere" | |
| 233 | local disp = coroutine.wrap(function() | |
| 234 | for i = 0,1,.2 do | |
| 235 | swait() | |
| 236 | p.Transparency = i | |
| 237 | pm.Scale = Vector3.new(2*i,2*i,2*i) | |
| 238 | end | |
| 239 | swait() | |
| 240 | p:Destroy() | |
| 241 | end) | |
| 242 | disp() | |
| 243 | end | |
| 244 | ||
| 245 | function SlashEff(pos) | |
| 246 | local p = Instance.new("Part",game.Workspace)
| |
| 247 | p.Size = Vector3.new(1,1,1) | |
| 248 | - | p.BrickColor = BrickColor.new("Camo")
|
| 248 | + | p.BrickColor = BrickColor.new("Bright red")
|
| 249 | p.Material = "DiamondPlate" | |
| 250 | p.Anchored = true | |
| 251 | p.CanCollide = false | |
| 252 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 253 | local pm = Instance.new("SpecialMesh",p)
| |
| 254 | pm.MeshType = "Sphere" | |
| 255 | local disp = coroutine.wrap(function() | |
| 256 | for i = 0,1,.2 do | |
| 257 | swait() | |
| 258 | p.Transparency = i | |
| 259 | pm.Scale = Vector3.new(.3,10*i,.3) | |
| 260 | end | |
| 261 | swait() | |
| 262 | p:Destroy() | |
| 263 | end) | |
| 264 | disp() | |
| 265 | end | |
| 266 | ||
| 267 | --Handle Wielding-- | |
| 268 | idlec0 = CFrame.new(-.2,-.2,1) * CFrame.fromEulerAnglesXYZ(math.rad(120),0,0) | |
| 269 | pointc0 = CFrame.new(0,-.7,0) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 270 | GWeld.C0 = idlec0 | |
| 271 | ||
| 272 | --Damage Function-- | |
| 273 | function dealdmg(dude,damage,env,toim,kby,kbx) | |
| 274 | coroutine.resume(coroutine.create(function() | |
| 275 | if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
| |
| 276 | finaldmg = damage + math.random(-env,env) | |
| 277 | dudehum = dude:FindFirstChildOfClass("Humanoid")
| |
| 278 | dudehum.MaxHealth = 100 | |
| 279 | dudehum.Health = dudehum.Health - finaldmg | |
| 280 | local vall = Instance.new("ObjectValue",dude)
| |
| 281 | vall.Name = "IsHit" | |
| 282 | game.Debris:AddItem(vall,toim) | |
| 283 | local bfos = Instance.new("BodyVelocity",dude.Head)
| |
| 284 | bfos.P = 20000 | |
| 285 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 286 | bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx | |
| 287 | game.Debris:AddItem(bfos,.1) | |
| 288 | local naeeym2 = Instance.new("BillboardGui",dude)
| |
| 289 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 290 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 291 | naeeym2.Adornee = dude.Head | |
| 292 | naeeym2.Name = "TalkingBillBoard" | |
| 293 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 294 | tecks2.BackgroundTransparency = 1 | |
| 295 | tecks2.BorderSizePixel = 0 | |
| 296 | tecks2.Text = "-"..finaldmg | |
| 297 | tecks2.Font = "Fantasy" | |
| 298 | tecks2.FontSize = "Size24" | |
| 299 | tecks2.TextStrokeTransparency = 0 | |
| 300 | - | tecks2.TextColor3 = Color3.new(0,255,0) |
| 300 | + | tecks2.TextColor3 = Color3.new(255,0,0) |
| 301 | tecks2.TextStrokeColor3 = Color3.new(255,0,0) | |
| 302 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 303 | for i = 1, 5 do | |
| 304 | wait(.1) | |
| 305 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 306 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 307 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 308 | end | |
| 309 | naeeym2:Destroy() | |
| 310 | end | |
| 311 | end)) | |
| 312 | end | |
| 313 | ||
| 314 | --Explode Hitbox-- | |
| 315 | function ExHitbox(rad,pos,damage,env,toim,kby,kbx) | |
| 316 | local E = Instance.new("Explosion")
| |
| 317 | E.Position = pos | |
| 318 | E.Parent = game.Workspace | |
| 319 | E.BlastRadius = rad | |
| 320 | E.BlastPressure = 0 | |
| 321 | E.Visible = false | |
| 322 | E.Hit:connect(function(hit) | |
| 323 | if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
| |
| 324 | dealdmg(hit.Parent,damage,env,toim,kby,kbx) | |
| 325 | end | |
| 326 | end) | |
| 327 | end | |
| 328 | ||
| 329 | --Punch Touch-- | |
| 330 | dela = .5 | |
| 331 | punchactive = false | |
| 332 | function punchhit(hit) | |
| 333 | if punchactive == true then | |
| 334 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 335 | dealdmg(hit.Parent,10,2,dela,0,5) | |
| 336 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 337 | PunchEff(hit.CFrame) | |
| 338 | end | |
| 339 | end | |
| 340 | end | |
| 341 | --Emit2Part.Touched:connect(punchhit) | |
| 342 | EmitPart.Touched:connect(punchhit) | |
| 343 | ||
| 344 | --Kick Touch-- | |
| 345 | kickactive = false | |
| 346 | function kickhit(hit) | |
| 347 | if kickactive == true then | |
| 348 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 349 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 350 | PunchEff(hit.CFrame) | |
| 351 | dealdmg(hit.Parent,15,2,dela,0,10) | |
| 352 | end | |
| 353 | end | |
| 354 | end | |
| 355 | chara["Right Leg"].Touched:connect(kickhit) | |
| 356 | ||
| 357 | --Blade Touch-- | |
| 358 | bladeactive = false | |
| 359 | function bladehit(hit) | |
| 360 | if bladeactive == true then | |
| 361 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 362 | dealdmg(hit.Parent,15,2,.05,0,0) | |
| 363 | PlaySnd(HitSnd,hit.Parent.Head) | |
| 364 | SlashEff(hit.CFrame) | |
| 365 | end | |
| 366 | end | |
| 367 | end | |
| 368 | Hitbox.Touched:connect(bladehit) | |
| 369 | ||
| 370 | --Chat Function-- | |
| 371 | function chatfunc(text) | |
| 372 | local chat = coroutine.wrap(function() | |
| 373 | if chara:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 374 | chara:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 375 | end | |
| 376 | local naeeym2 = Instance.new("BillboardGui",chara)
| |
| 377 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 378 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 379 | naeeym2.Adornee = chara.Head | |
| 380 | naeeym2.Name = "TalkingBillBoard" | |
| 381 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 382 | tecks2.BackgroundTransparency = 1 | |
| 383 | tecks2.BorderSizePixel = 0 | |
| 384 | tecks2.Text = "" | |
| 385 | tecks2.Font = "Fantasy" | |
| 386 | tecks2.FontSize = "Size24" | |
| 387 | tecks2.TextStrokeTransparency = 0 | |
| 388 | - | tecks2.TextColor3 = Color3.new(0,255,0) |
| 388 | + | tecks2.TextColor3 = Color3.new(255,0,0) |
| 389 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 390 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 391 | coroutine.resume(coroutine.create(function() | |
| 392 | while tecks2 ~= nil do | |
| 393 | swait(.05) | |
| 394 | tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
| 395 | end | |
| 396 | end)) | |
| 397 | for i = 1,string.len(text),1 do | |
| 398 | tecks2.Text = string.sub(text,1,i) | |
| 399 | swait(0.01) | |
| 400 | end | |
| 401 | swait(1) | |
| 402 | for i = 1, 5 do | |
| 403 | swait(.01) | |
| 404 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 405 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 406 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 407 | end | |
| 408 | naeeym2:Destroy() | |
| 409 | end) | |
| 410 | chat() | |
| 411 | end | |
| 412 | ||
| 413 | function onChatted(msg) | |
| 414 | chatfunc(msg) | |
| 415 | end | |
| 416 | player.Chatted:connect(onChatted) | |
| 417 | ||
| 418 | --Clerp Animations-- | |
| 419 | TC = chara.HumanoidRootPart.RootJoint | |
| 420 | HC = chara.Torso.Neck | |
| 421 | RAC = chara.Torso["Right Shoulder"] | |
| 422 | LAC = chara.Torso["Left Shoulder"] | |
| 423 | RLC = chara.Torso["Right Hip"] | |
| 424 | LLC = chara.Torso["Left Hip"] | |
| 425 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 426 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 427 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 428 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 429 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 430 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 431 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 432 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 433 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 434 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 435 | RW = Instance.new("Weld",HC.Parent)
| |
| 436 | RW.Part1 = HC.Parent | |
| 437 | RW.Part0 = chara["Right Arm"] | |
| 438 | RW.C0 = RWF | |
| 439 | LW = Instance.new("Weld",HC.Parent)
| |
| 440 | LW.Part1 = HC.Parent | |
| 441 | LW.Part0 = chara["Left Arm"] | |
| 442 | LW.C0 = LWF | |
| 443 | RLW = nil | |
| 444 | LLW = nil | |
| 445 | grp = Instance.new("Model",chara)
| |
| 446 | ||
| 447 | function AddLegWelds() | |
| 448 | RLW = Instance.new("Weld",chara["Right Leg"])
| |
| 449 | RLW.Part1 = HC.Parent | |
| 450 | RLW.Part0 = chara["Right Leg"] | |
| 451 | RLW.C0 = RLWF | |
| 452 | LLW = Instance.new("Weld",chara["Left Leg"])
| |
| 453 | LLW.Part1 = HC.Parent | |
| 454 | LLW.Part0 = chara["Left Leg"] | |
| 455 | LLW.C0 = LLWF | |
| 456 | end | |
| 457 | ||
| 458 | function DestroyLegWelds() | |
| 459 | 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),})
| |
| 460 | 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),})
| |
| 461 | RLW:Destroy() | |
| 462 | LLW:Destroy() | |
| 463 | end | |
| 464 | ||
| 465 | function clerp(a,b,c) | |
| 466 | return a:lerp(b,c) | |
| 467 | end | |
| 468 | ||
| 469 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)) | |
| 470 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(30)) | |
| 471 | IRWF = (RWF - Vector3.new(-.5,.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-60),math.rad(-50),0) | |
| 472 | ILWF = (LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(50),0) | |
| 473 | ||
| 474 | function res() | |
| 475 | TC.C0 = ITCF | |
| 476 | HC.C0 = IHCF | |
| 477 | RW.C0 = IRWF | |
| 478 | LW.C0 = ILWF | |
| 479 | end | |
| 480 | res() | |
| 481 | ||
| 482 | hum.Name = "hoomanood" | |
| 483 | Instance.new("ForceField",chara).Visible = false
| |
| 484 | ||
| 485 | --Cannon-- | |
| 486 | function Cannon() | |
| 487 | del = true | |
| 488 | hum.WalkSpeed = 0 | |
| 489 | SlashT.Enabled = true | |
| 490 | for i = 0,.6,.1 do | |
| 491 | swait() | |
| 492 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 493 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),.4+i) | |
| 494 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,-.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(70),0),.4+i) | |
| 495 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),.4+i) | |
| 496 | end | |
| 497 | swait(.5) | |
| 498 | SVHitSnd:Play() | |
| 499 | for i = 0,.6,.2 do | |
| 500 | swait() | |
| 501 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF,.4+i) | |
| 502 | 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) | |
| 503 | 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) | |
| 504 | GWeld.C0 = clerp(idlec0,pointc0,.4+i) | |
| 505 | end | |
| 506 | swait(.1) | |
| 507 | SVHitSnd:Play() | |
| 508 | for i = 0,.6,.2 do | |
| 509 | swait() | |
| 510 | 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) | |
| 511 | end | |
| 512 | swait(.1) | |
| 513 | SVHitSnd:Play() | |
| 514 | for i = 0,.6,.2 do | |
| 515 | swait() | |
| 516 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.4+i) | |
| 517 | 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) | |
| 518 | end | |
| 519 | swait(.1) | |
| 520 | SVHitSnd:Play() | |
| 521 | for i = 0,.6,.2 do | |
| 522 | swait() | |
| 523 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),IHCF,.4+i) | |
| 524 | TC.C0 = clerp(TCF,ITCF,.4+i) | |
| 525 | 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) | |
| 526 | end | |
| 527 | LW.C0 = (LWF + Vector3.new(-1,1,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0) | |
| 528 | GWeld.C0 = pointc0 | |
| 529 | local EffectPart = Instance.new("Part",chara)
| |
| 530 | EffectPart.Size = Vector3.new(1,1,1) | |
| 531 | EffectPart.Anchored = true | |
| 532 | - | EffectPart.BrickColor = BrickColor.new("Camo")
|
| 532 | + | EffectPart.BrickColor = BrickColor.new("Bright red")
|
| 533 | EffectPart.Position = mouse.Hit.p | |
| 534 | EffectPart.CFrame = mouse.Hit | |
| 535 | EffectPart.Material = "DiamondPlate" | |
| 536 | local EffectPart2 = Instance.new("Part",chara)
| |
| 537 | EffectPart2.Size = Vector3.new(1,1,1) | |
| 538 | EffectPart2.Anchored = true | |
| 539 | - | EffectPart2.BrickColor = BrickColor.new("Camo")
|
| 539 | + | EffectPart2.BrickColor = BrickColor.new("Bright red")
|
| 540 | EffectPart2.Position = mouse.Hit.p | |
| 541 | EffectPart2.CFrame = CFrame.new(mouse.Hit.p.X,mouse.Hit.p.Y,mouse.Hit.p.Z) | |
| 542 | EffectPart2.Material = "DiamondPlate" | |
| 543 | local mehs1 = Instance.new("SpecialMesh",EffectPart)
| |
| 544 | mehs1.MeshType = "Sphere" | |
| 545 | mehs1.Scale = Vector3.new(10,10,10) | |
| 546 | local mehs2 = Instance.new("CylinderMesh",EffectPart2)
| |
| 547 | mehs2.Scale = Vector3.new(1,9999,1) | |
| 548 | local Place0 = EmitPart.CFrame | |
| 549 | local Place1 = EffectPart.CFrame | |
| 550 | local leng = (Place0.p - Place1.p).magnitude | |
| 551 | local P = Instance.new("Part")
| |
| 552 | local meshla = Instance.new("BlockMesh", P)
| |
| 553 | meshla.Scale = Vector3.new(1,1,1) | |
| 554 | P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude) | |
| 555 | P.Name = "Laser" | |
| 556 | P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) | |
| 557 | P.Parent = chara | |
| 558 | - | P.BrickColor = BrickColor.new("Camo")
|
| 558 | + | P.BrickColor = BrickColor.new("Bright red")
|
| 559 | P.Material = "DiamondPlate" | |
| 560 | P.Anchored = true | |
| 561 | P.CanCollide = false | |
| 562 | P.Locked = true | |
| 563 | P.BottomSurface = "Smooth" | |
| 564 | P.TopSurface = "Smooth" | |
| 565 | PlaySnd(LaserSnd,chara) | |
| 566 | ExHitbox(15,Place1.p,40,1,.05,50,50) | |
| 567 | for i = 1, 5 do | |
| 568 | coroutine.resume(coroutine.create(function() | |
| 569 | local hitp = Instance.new("Part",chara)
| |
| 570 | hitp.Size = Vector3.new(1,1,1) | |
| 571 | hitp.Anchored = true | |
| 572 | hitp.CanCollide = false | |
| 573 | - | hitp.BrickColor = BrickColor.new("Camo")
|
| 573 | + | hitp.BrickColor = BrickColor.new("Bright red")
|
| 574 | hitp.Transparency = 1 | |
| 575 | hitp.CFrame = EffectPart.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 576 | local hitm = Instance.new("SpecialMesh",hitp)
| |
| 577 | hitm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 578 | hitm.Scale = Vector3.new(4,4,1) | |
| 579 | for i = 0,1,.1 do | |
| 580 | swait(.001) | |
| 581 | hitp.Transparency = i | |
| 582 | hitm.Scale = Vector3.new(i*80,i*80,i) | |
| 583 | end | |
| 584 | hitp:Destroy() | |
| 585 | end)) | |
| 586 | end | |
| 587 | coroutine.resume(coroutine.create(function() | |
| 588 | for i = 0,1,.05 do | |
| 589 | swait() | |
| 590 | mehs1.Scale = Vector3.new(5*i,5*i,5*i) | |
| 591 | mehs2.Scale = Vector3.new(2*i,9999,2*i) | |
| 592 | meshla.Scale = Vector3.new(2.5*i,2.5*i,1) | |
| 593 | EffectPart.Transparency = i | |
| 594 | EffectPart2.Transparency = i | |
| 595 | P.Transparency = i | |
| 596 | end | |
| 597 | ---- | |
| 598 | P:Destroy() | |
| 599 | EffectPart:Destroy() | |
| 600 | EffectPart2:Destroy() | |
| 601 | end)) | |
| 602 | swait(.5) | |
| 603 | for i = 0,.6,.1 do | |
| 604 | swait() | |
| 605 | LW.C0 = clerp((LWF + Vector3.new(-1,-.5,.25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-30),0),ILWF,.4+i) | |
| 606 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-10)),IRWF,.4+i) | |
| 607 | GWeld.C0 = clerp(idlec0,pointc0,.6-i) | |
| 608 | end | |
| 609 | GWeld.C0 = idlec0 | |
| 610 | SlashT.Enabled = false | |
| 611 | hum.WalkSpeed = 20 | |
| 612 | walking = false | |
| 613 | del = false | |
| 614 | end | |
| 615 | ||
| 616 | --Blast-- | |
| 617 | function Blast() | |
| 618 | del = true | |
| 619 | for i = 0,.6,.2 do | |
| 620 | swait() | |
| 621 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 622 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 623 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 624 | LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.4+i) | |
| 625 | end | |
| 626 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 627 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 628 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 629 | local p1 = Instance.new("Part",chara)
| |
| 630 | p1.CFrame = ShootPart.CFrame | |
| 631 | p1.Position = ShootPart.Position | |
| 632 | p1.Size = Vector3.new(.5,.5,.5) | |
| 633 | - | p1.BrickColor = BrickColor.new("Camo")
|
| 633 | + | p1.BrickColor = BrickColor.new("Bright red")
|
| 634 | p1.Material = "DiamondPlate" | |
| 635 | p1.CanCollide = false | |
| 636 | p1.Transparency = 1 | |
| 637 | local pm1 = Instance.new("SpecialMesh",p1)
| |
| 638 | pm1.MeshType = "Sphere" | |
| 639 | local wd1 = Instance.new("Weld",p1)
| |
| 640 | wd1.Part0 = p1 | |
| 641 | wd1.Part1 = ShootPart | |
| 642 | local p2 = Instance.new("Part",chara)
| |
| 643 | p2.CFrame = ShootPart.CFrame | |
| 644 | p2.Position = ShootPart.Position | |
| 645 | p2.Size = Vector3.new(.5,.5,.5) | |
| 646 | - | p2.BrickColor = BrickColor.new("Camo")
|
| 646 | + | p2.BrickColor = BrickColor.new("Bright red")
|
| 647 | p2.Material = "DiamondPlate" | |
| 648 | p2.CanCollide = false | |
| 649 | p2.Transparency = 1 | |
| 650 | local pm2 = Instance.new("SpecialMesh",p2)
| |
| 651 | pm2.MeshType = "Sphere" | |
| 652 | local wd2 = Instance.new("Weld",p2)
| |
| 653 | wd2.Part0 = p2 | |
| 654 | wd2.Part1 = ShootPart | |
| 655 | PewSnd:Play() | |
| 656 | for i = 0,1,.2 do | |
| 657 | swait() | |
| 658 | p1.Transparency = i/2 | |
| 659 | p2.Transparency = i/2 | |
| 660 | pm1.Scale = Vector3.new(5*i,1,1) | |
| 661 | pm2.Scale = Vector3.new(1,1,5*i) | |
| 662 | end | |
| 663 | local missile = Instance.new("Part",game.Workspace)
| |
| 664 | missile.Size = Vector3.new(.6,1,.6) | |
| 665 | missile.Name = "Blast" | |
| 666 | - | missile.BrickColor = BrickColor.new("Camo")
|
| 666 | + | missile.BrickColor = BrickColor.new("Bright red")
|
| 667 | missile.Material = "DiamondPlate" | |
| 668 | missile.CanCollide = false | |
| 669 | missile.TopSurface = 0 | |
| 670 | missile.BottomSurface = 0 | |
| 671 | missile.Position = ShootPart.Position | |
| 672 | missile.CFrame = (ShootPart.CFrame + chara.HumanoidRootPart.CFrame.lookVector*2) | |
| 673 | missile.Velocity = chara.HumanoidRootPart.CFrame.lookVector*150 | |
| 674 | local pmit = Instance.new("ParticleEmitter",missile)
| |
| 675 | pmit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 676 | - | pmit.Color = ColorSequence.new(BrickColor.new("Camo").Color)
|
| 676 | + | pmit.Color = ColorSequence.new(BrickColor.new("Bright red").Color)
|
| 677 | pmit.LightEmission = 1 | |
| 678 | pmit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 679 | pmit.Lifetime = NumberRange.new(1) | |
| 680 | pmit.Rate = 10000 | |
| 681 | pmit.Rotation = NumberRange.new(0,359) | |
| 682 | pmit.RotSpeed = NumberRange.new(100) | |
| 683 | pmit.Speed = NumberRange.new(0) | |
| 684 | local mesh1 = Instance.new("SpecialMesh",missile)
| |
| 685 | mesh1.MeshType = "Sphere" | |
| 686 | local force = Instance.new("BodyForce")
| |
| 687 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 688 | force.Parent = missile | |
| 689 | missile.Touched:connect(function(hit) | |
| 690 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then | |
| 691 | missile.Anchored = true | |
| 692 | ExHitbox(3,missile.Position,30,1,.1,0,0) | |
| 693 | for i = 0,1,.1 do | |
| 694 | swait() | |
| 695 | mesh1.Scale = Vector3.new(3*i,3*i,3*i) | |
| 696 | end | |
| 697 | missile:Destroy() | |
| 698 | end | |
| 699 | end) | |
| 700 | debby:AddItem(missile,10) | |
| 701 | for i = 0,1,.2 do | |
| 702 | swait() | |
| 703 | p1.Transparency = .5+(i/2) | |
| 704 | p2.Transparency = .5+(i/2) | |
| 705 | pm1.Scale = Vector3.new(5-5*i,1,1) | |
| 706 | pm2.Scale = Vector3.new(1,1,5-5*i) | |
| 707 | end | |
| 708 | p1:Destroy() | |
| 709 | p2:Destroy() | |
| 710 | for i = 0,.6,.2 do | |
| 711 | swait() | |
| 712 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 713 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 714 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 715 | LW.C0 = clerp(ILWF,LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-10),math.rad(10)),.6-i) | |
| 716 | end | |
| 717 | walking = false | |
| 718 | del = false | |
| 719 | res() | |
| 720 | end | |
| 721 | ||
| 722 | --Flip-- | |
| 723 | function Flip() | |
| 724 | del = true | |
| 725 | res() | |
| 726 | hum.WalkSpeed = 0 | |
| 727 | AddLegWelds() | |
| 728 | Swing2Snd:Play() | |
| 729 | for i = 0,.6,.2 do | |
| 730 | swait() | |
| 731 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i) | |
| 732 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i) | |
| 733 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 734 | LW.C0 = clerp(ILWF,LWF,.4+i) | |
| 735 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i) | |
| 736 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 737 | Wings.Transparency = .6-i | |
| 738 | end | |
| 739 | Wings.Transparency = 0 | |
| 740 | local bf = Instance.new("BodyVelocity",chara.Torso)
| |
| 741 | bf.P = 100000 | |
| 742 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 743 | bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*30 | |
| 744 | debby:AddItem(bf,.5) | |
| 745 | for i = 0,1,.25 do | |
| 746 | swait() | |
| 747 | TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 748 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i) | |
| 749 | 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) | |
| 750 | LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 751 | LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i) | |
| 752 | end | |
| 753 | bf.MaxForce = Vector3.new(bf.P,0,bf.P) | |
| 754 | for i = 0,1,.25 do | |
| 755 | swait() | |
| 756 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),i) | |
| 757 | end | |
| 758 | swait(.5) | |
| 759 | bf:Destroy() | |
| 760 | for i = 0,1,.25 do | |
| 761 | swait() | |
| 762 | TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i) | |
| 763 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 764 | 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) | |
| 765 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i) | |
| 766 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i) | |
| 767 | end | |
| 768 | for i = 0,.6,.2 do | |
| 769 | swait() | |
| 770 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i) | |
| 771 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i) | |
| 772 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 773 | LW.C0 = clerp(ILWF,LWF,.6-i) | |
| 774 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i) | |
| 775 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i) | |
| 776 | Wings.Transparency = .4+i | |
| 777 | end | |
| 778 | Wings.Transparency = 1 | |
| 779 | DestroyLegWelds() | |
| 780 | res() | |
| 781 | hum.WalkSpeed = 20 | |
| 782 | walking = false | |
| 783 | del = false | |
| 784 | end | |
| 785 | function BackFlip() | |
| 786 | del = true | |
| 787 | res() | |
| 788 | hum.WalkSpeed = 0 | |
| 789 | AddLegWelds() | |
| 790 | Swing2Snd:Play() | |
| 791 | for i = 0,.6,.2 do | |
| 792 | swait() | |
| 793 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.4+i) | |
| 794 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.4+i) | |
| 795 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 796 | LW.C0 = clerp(ILWF,LWF,.4+i) | |
| 797 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.4+i) | |
| 798 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 799 | Wings.Transparency = .6-i | |
| 800 | end | |
| 801 | Wings.Transparency = 0 | |
| 802 | local bf = Instance.new("BodyVelocity",chara.Torso)
| |
| 803 | bf.P = 100000 | |
| 804 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 805 | bf.Velocity = Vector3.new(0,60,0) + chara.HumanoidRootPart.CFrame.lookVector*-30 | |
| 806 | for i = 0,1,.25 do | |
| 807 | swait() | |
| 808 | TC.C0 = clerp(TCF - Vector3.new(0,1,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
| 809 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),i) | |
| 810 | 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) | |
| 811 | LW.C0 = clerp(LWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),i) | |
| 812 | LLW.C0 = clerp((LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),LLWF,i) | |
| 813 | end | |
| 814 | bf.MaxForce = Vector3.new(bf.P,0,bf.P) | |
| 815 | for i = 0,1,.25 do | |
| 816 | swait() | |
| 817 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
| 818 | end | |
| 819 | swait(.5) | |
| 820 | bf:Destroy() | |
| 821 | for i = 0,1,.25 do | |
| 822 | swait() | |
| 823 | TC.C0 = clerp(TCF,TCF - Vector3.new(0,1,0),i) | |
| 824 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 825 | 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) | |
| 826 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),LWF,i) | |
| 827 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),i) | |
| 828 | end | |
| 829 | for i = 0,.6,.2 do | |
| 830 | swait() | |
| 831 | TC.C0 = clerp(ITCF,TCF - Vector3.new(0,1,0),.6-i) | |
| 832 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),.6-i) | |
| 833 | RW.C0 = clerp(IRWF,RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 834 | LW.C0 = clerp(ILWF,LWF,.6-i) | |
| 835 | RLW.C0 = clerp(RLWF,RLWF - Vector3.new(0,1,-.5),.6-i) | |
| 836 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(0,1,-1))*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.6-i) | |
| 837 | Wings.Transparency = .4+i | |
| 838 | end | |
| 839 | Wings.Transparency = 1 | |
| 840 | DestroyLegWelds() | |
| 841 | res() | |
| 842 | hum.WalkSpeed = 20 | |
| 843 | walking = false | |
| 844 | del = false | |
| 845 | end | |
| 846 | ||
| 847 | --Keys-- | |
| 848 | combo = 0 | |
| 849 | function onKeyDown(key) | |
| 850 | if del == false then | |
| 851 | if key == "z" then | |
| 852 | Cannon() | |
| 853 | elseif key == "x" then | |
| 854 | Blast() | |
| 855 | elseif key == "r" then | |
| 856 | BackFlip() | |
| 857 | elseif key == "t" then | |
| 858 | Flip() | |
| 859 | elseif key == "k" then | |
| 860 | Music:Stop() | |
| 861 | - | Music.SoundId = "rbxassetid://548913803" |
| 861 | + | Music.SoundId = "rbxassetid://811235780" |
| 862 | Music:Play() | |
| 863 | elseif key == "l" then | |
| 864 | Music:Stop() | |
| 865 | - | Music.SoundId = "rbxassetid://305355374" |
| 865 | + | Music.SoundId = "rbxassetid://529965124" |
| 866 | Music:Play() | |
| 867 | elseif key == "m" then | |
| 868 | if Music.IsPlaying == true then | |
| 869 | Music:Stop() | |
| 870 | elseif Music.IsPlaying == false then | |
| 871 | Music:Play() | |
| 872 | end | |
| 873 | end | |
| 874 | end | |
| 875 | end | |
| 876 | function onButton1Down() | |
| 877 | if del == false then | |
| 878 | del = true | |
| 879 | res() | |
| 880 | Swing2Snd:Play() | |
| 881 | bladeactive = true | |
| 882 | SlashT.Enabled = true | |
| 883 | for i = 0,.6,.1 do | |
| 884 | swait() | |
| 885 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 886 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 887 | LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 888 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 889 | end | |
| 890 | for i = 0,.6,.2 do | |
| 891 | swait() | |
| 892 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-80)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 893 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(80)),HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 894 | end | |
| 895 | bladeactive = false | |
| 896 | swait(.1) | |
| 897 | for i = 0,.6,.1 do | |
| 898 | swait() | |
| 899 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 900 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 901 | LW.C0 = clerp(LWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 902 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 903 | end | |
| 904 | SlashT.Enabled = false | |
| 905 | res() | |
| 906 | walking = false | |
| 907 | del = false | |
| 908 | end | |
| 909 | end | |
| 910 | if mouse then | |
| 911 | mouse.Button1Down:connect(onButton1Down) | |
| 912 | mouse.KeyDown:connect(onKeyDown) | |
| 913 | end | |
| 914 | ||
| 915 | --Loop Function-- | |
| 916 | walking = false | |
| 917 | toim = 0 | |
| 918 | while true do | |
| 919 | swait() | |
| 920 | toim = toim + .1 | |
| 921 | if del == false then attacking = false elseif del == true then attacking = true end | |
| 922 | if atkd == true then | |
| 923 | TC.C0 = TCF | |
| 924 | HC.C0 = HCF | |
| 925 | RW.C0 = RWF | |
| 926 | LW.C0 = LWF | |
| 927 | atkd = false | |
| 928 | end | |
| 929 | if atkdd == true then | |
| 930 | TC.C0 = ITCF | |
| 931 | HC.C0 = IHCF | |
| 932 | RW.C0 = IRWF | |
| 933 | LW.C0 = ILWF | |
| 934 | atkdd = false | |
| 935 | end | |
| 936 | hum.Name = "hoomanood" | |
| 937 | hum.MaxHealth = math.huge | |
| 938 | hum.Health = math.huge | |
| 939 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 940 | if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then | |
| 941 | for i = 0,1,.5 do | |
| 942 | swait(.001) | |
| 943 | if del == false and attacking == false then | |
| 944 | TC.C0 = clerp(TCF,ITCF,i) | |
| 945 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i) | |
| 946 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,i) | |
| 947 | LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,i) | |
| 948 | end | |
| 949 | end | |
| 950 | walking = false | |
| 951 | elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then | |
| 952 | for i = 0,1,.5 do | |
| 953 | swait(.001) | |
| 954 | if del == false and attacking == false then | |
| 955 | TC.C0 = clerp(TCF,ITCF,1-i) | |
| 956 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i) | |
| 957 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(5),math.rad(-5)),IRWF,1-i) | |
| 958 | LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,math.rad(-5),math.rad(5)),ILWF,1-i) | |
| 959 | end | |
| 960 | end | |
| 961 | walking = true | |
| 962 | else | |
| 963 | end | |
| 964 | end |