SHOW:
|
|
- or go back to the newest paste.
| 1 | - | ---------------------------------- |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
|
| 2 | - | --Ballistic Dispatcher Device-41-- |
| 2 | + | print("FE Compatibility: by WaverlyCole & Mokiros")
|
| 3 | - | ---------------------------------- |
| 3 | + | InternalData = {}
|
| 4 | - | --By -- |
| 4 | + | do |
| 5 | - | --CKbackup- |
| 5 | + | script.Parent = owner.Character |
| 6 | - | ----------- |
| 6 | + | local Event = Instance.new("RemoteEvent")
|
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | player = game.Players.LocalPlayer | |
| 172 | chara = player.Character | |
| 173 | debby = game.Debris | |
| 174 | Mouse = player:GetMouse() | |
| 175 | chara.Humanoid.WalkSpeed = 24 | |
| 176 | atkd = false | |
| 177 | atkdd = false | |
| 178 | targetted = nil | |
| 179 | exed = false | |
| 180 | exeact = false | |
| 181 | ||
| 182 | --Outfit-- | |
| 183 | New = function(Object, Parent, Name, Data) | |
| 184 | local Object = Instance.new(Object) | |
| 185 | for Index, Value in pairs(Data or {}) do
| |
| 186 | Object[Index] = Value | |
| 187 | end | |
| 188 | Object.Parent = Parent | |
| 189 | Object.Name = Name | |
| 190 | return Object | |
| 191 | end | |
| 192 | ||
| 193 | Gun1 = New("Model",chara,"Gun1",{})
| |
| 194 | Handle1 = New("Part",Gun1,"Handle1",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.800000012, 1, 1),CFrame = CFrame.new(34.5999947, 1.10000491, 22.4999981, -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,})
| |
| 195 | Weld = New("ManualWeld",Handle1,"Weld",{Part0 = Handle1,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(-0.0999679565, -0.900001526, 0.100005031, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
| |
| 196 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(34.5999985, 1.10000467, 22.0999928, 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(0.388235, 0.372549, 0.384314),})
| |
| 197 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 198 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, -2.38418579e-07, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 199 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.599999905),CFrame = CFrame.new(34.5999947, 1.30000496, 23.0999908, 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(0.388235, 0.372549, 0.384314),})
| |
| 200 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 0.200000003, 1),})
| |
| 201 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.199999988, -0.599992752, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 202 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(34.5999947, 2.20000482, 22.1999989, -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(0.803922, 0.803922, 0.803922),})
| |
| 203 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.800000012, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 204 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 1.0999999, 0.299999237, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 205 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999973, 0, 0, 1, -1, 0, 0, 0, -1, 0),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(0.803922, 0.803922, 0.803922),})
| |
| 206 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),})
| |
| 207 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 208 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 23.2999954, 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(0.803922, 0.803922, 0.803922),})
| |
| 209 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 210 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.79999733, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 211 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 3.5999999),CFrame = CFrame.new(34.5999985, 1.80000472, 23.9999924, 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,})
| |
| 212 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.69999975, -1.49999428, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 213 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.800000012),CFrame = CFrame.new(34.5999985, 2.20000482, 22.7999935, 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(0.803922, 0.803922, 0.803922),})
| |
| 214 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.299995422, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 215 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999738, 1.19999993),CFrame = CFrame.new(34.5999947, 2.00000477, 23.7999916, 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(0.94902, 0.952941, 0.952941),})
| |
| 216 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.70000005, 1),})
| |
| 217 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.899999917, -1.29999352, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 218 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 24.2999992, 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(0.803922, 0.803922, 0.803922),})
| |
| 219 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 220 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -1.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 221 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999897, 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(0.803922, 0.803922, 0.803922),})
| |
| 222 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 223 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.0999999, -3.79999161, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 224 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.400000006),CFrame = CFrame.new(34.5999985, 1.80000472, 25.9999981, 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,})
| |
| 225 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 226 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 0.699999869, -3.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 227 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 1.80000472, 22.0999928, 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,})
| |
| 228 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 229 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.69999975, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 230 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 1.79999995),CFrame = CFrame.new(34.5999985, 2.20000482, 25.2999992, 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(0.803922, 0.803922, 0.803922),})
| |
| 231 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -2.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 232 | Hitbox1 = New("Part",Gun1,"Hitbox1",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 1.19999969, 3.39999986),CFrame = CFrame.new(34.5999985, 1.80002093, 24.6999912, 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,})
| |
| 233 | Weld = New("ManualWeld",Hitbox1,"Weld",{Part0 = Hitbox1,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 0.700015962, -2.19999313, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 234 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(34.5999947, 2.50000501, 25.9999962, 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(0.803922, 0.803922, 0.803922),})
| |
| 235 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 236 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 1.4000001, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 237 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(34.5999947, 1.10000491, 22.6999989, 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(0.388235, 0.372549, 0.384314),})
| |
| 238 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 239 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0, -0.200000763, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 240 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 2.4000001),CFrame = CFrame.new(34.5999947, 1.40000486, 24.5999928, 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(0.388235, 0.372549, 0.384314),})
| |
| 241 | Mesh = New("BlockMesh",Part,"Mesh",{})
| |
| 242 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.300000012, -2.09999466, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 243 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000095),CFrame = CFrame.new(34.5999947, 1.40000486, 25.7999935, 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(0.0666667, 0.0666667, 0.0666667),})
| |
| 244 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 0.200000003),})
| |
| 245 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(0, 0.300000012, -3.29999542, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 246 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(34.5999947, 1.60000467, 23, -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(0.803922, 0.803922, 0.803922),})
| |
| 247 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1.25, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 248 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.499999821, -0.500001907, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 249 | Part = New("Part",Gun1,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.399999976),CFrame = CFrame.new(34.5999947, 1.80000472, 25.9999962, 0, 0, 1, -1, 0, 0, 0, -1, 0),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,})
| |
| 250 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),})
| |
| 251 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 0.699999869, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 252 | BulletSpawn1 = New("Part",Gun1,"BulletSpawn1",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5999947, 2.20000482, 26.2999973, 0, 0, 1, -1, 0, 0, 0, -1, 0),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(0.0666667, 0.0666667, 0.0666667),})
| |
| 253 | Mesh = New("CylinderMesh",BulletSpawn1,"Mesh",{Scale = Vector3.new(0.699999988, 1.14999998, 0.699999988),})
| |
| 254 | Weld = New("ManualWeld",BulletSpawn1,"Weld",{Part0 = BulletSpawn1,Part1 = Handle1,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 255 | Part = New("Part",Gun1,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(34.5999985, 2.20000482, 22.2999935, 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(0.803922, 0.803922, 0.803922),})
| |
| 256 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 257 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle1,C1 = CFrame.new(-3.81469727e-06, 1.0999999, 0.200004578, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 258 | ||
| 259 | Gun2 = New("Model",chara,"Gun2",{})
| |
| 260 | Handle2 = New("Part",Gun2,"Handle2",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.800000012, 1, 1),CFrame = CFrame.new(37.3999939, 1.10000491, 22.5, -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,})
| |
| 261 | Weld = New("ManualWeld",Handle2,"Weld",{Part0 = Handle2,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0.100032806, -0.900003433, 0.100005031, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
| |
| 262 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(37.3999977, 1.10000467, 22.0999947, 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(0.388235, 0.372549, 0.384314),})
| |
| 263 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 264 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, -2.38418579e-07, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 265 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.599999905),CFrame = CFrame.new(37.3999939, 1.30000496, 23.0999928, 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(0.388235, 0.372549, 0.384314),})
| |
| 266 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 0.200000003, 1),})
| |
| 267 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.199999988, -0.599992752, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 268 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(37.3999939, 2.20000482, 22.2000008, -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(0.803922, 0.803922, 0.803922),})
| |
| 269 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.800000012, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 270 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 1.0999999, 0.299999237, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 271 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999992, 0, 0, 1, -1, 0, 0, 0, -1, 0),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(0.803922, 0.803922, 0.803922),})
| |
| 272 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),})
| |
| 273 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 274 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 23.2999973, 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(0.803922, 0.803922, 0.803922),})
| |
| 275 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 276 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.79999733, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 277 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 3.5999999),CFrame = CFrame.new(37.3999977, 1.80000472, 23.9999943, 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,})
| |
| 278 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.69999975, -1.49999428, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 279 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.800000012),CFrame = CFrame.new(37.3999977, 2.20000482, 22.7999954, 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(0.803922, 0.803922, 0.803922),})
| |
| 280 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -0.299995422, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 281 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("White"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999738, 1.19999993),CFrame = CFrame.new(37.3999939, 2.00000477, 23.7999935, 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(0.94902, 0.952941, 0.952941),})
| |
| 282 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.70000005, 1),})
| |
| 283 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.899999917, -1.29999352, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 284 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 24.3000011, 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(0.803922, 0.803922, 0.803922),})
| |
| 285 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 286 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -1.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 287 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999916, 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(0.803922, 0.803922, 0.803922),})
| |
| 288 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 289 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.0999999, -3.79999161, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 290 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.400000006),CFrame = CFrame.new(37.3999977, 1.80000472, 26, 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,})
| |
| 291 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 292 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(-3.81469727e-06, 0.699999869, -3.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 293 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 1.80000472, 22.0999947, 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,})
| |
| 294 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 295 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.69999975, 0.400005341, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 296 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 1.79999995),CFrame = CFrame.new(37.3999977, 2.20000482, 25.3000011, 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(0.803922, 0.803922, 0.803922),})
| |
| 297 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, -2.80000114, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 298 | Hitbox2 = New("Part",Gun2,"Hitbox2",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.400000006, 1.19999969, 3.39999986),CFrame = CFrame.new(37.3999977, 1.80002093, 24.6999931, 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,})
| |
| 299 | Weld = New("ManualWeld",Hitbox2,"Weld",{Part0 = Hitbox2,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 0.700015962, -2.19999313, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 300 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.800000012),CFrame = CFrame.new(37.3999939, 2.50000501, 25.9999981, 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(0.803922, 0.803922, 0.803922),})
| |
| 301 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 302 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 1.4000001, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 303 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.999999762, 0.600000024),CFrame = CFrame.new(37.3999939, 1.10000491, 22.7000008, 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(0.388235, 0.372549, 0.384314),})
| |
| 304 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1, 1),MeshType = Enum.MeshType.Wedge,})
| |
| 305 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0, -0.200000763, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 306 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 2.4000001),CFrame = CFrame.new(37.3999939, 1.40000486, 24.5999947, 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(0.388235, 0.372549, 0.384314),})
| |
| 307 | Mesh = New("BlockMesh",Part,"Mesh",{})
| |
| 308 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.300000012, -2.09999466, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 309 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000095),CFrame = CFrame.new(37.3999939, 1.40000486, 25.7999954, 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(0.0666667, 0.0666667, 0.0666667),})
| |
| 310 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 0.200000003),})
| |
| 311 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(0, 0.300000012, -3.29999542, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 312 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(37.3999939, 1.60000467, 23.0000019, -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(0.803922, 0.803922, 0.803922),})
| |
| 313 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1.25, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 314 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.499999821, -0.500001907, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 315 | Part = New("Part",Gun2,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.400000006, 0.399999976),CFrame = CFrame.new(37.3999939, 1.80000472, 25.9999981, 0, 0, 1, -1, 0, 0, 0, -1, 0),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,})
| |
| 316 | Mesh = New("CylinderMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 1.10000002, 0.800000012),})
| |
| 317 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 0.699999869, -3.49999809, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 318 | BulletSpawn2 = New("Part",Gun2,"BulletSpawn2",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.200000003, 0.399999976),CFrame = CFrame.new(37.3999939, 2.20000482, 26.2999992, 0, 0, 1, -1, 0, 0, 0, -1, 0),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(0.0666667, 0.0666667, 0.0666667),})
| |
| 319 | Mesh = New("CylinderMesh",BulletSpawn2,"Mesh",{Scale = Vector3.new(0.699999988, 1.14999998, 0.699999988),})
| |
| 320 | Weld = New("ManualWeld",BulletSpawn2,"Weld",{Part0 = BulletSpawn2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0),C1 = CFrame.new(0, 1.0999999, -3.79999924, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 321 | Part = New("Part",Gun2,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.399999708, 0.200000003),CFrame = CFrame.new(37.3999977, 2.20000482, 22.2999954, 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(0.803922, 0.803922, 0.803922),})
| |
| 322 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,})
| |
| 323 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle2,C1 = CFrame.new(-3.81469727e-06, 1.0999999, 0.200004578, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 324 | ||
| 325 | RightArm = New("Model",chara,"RightArm",{})
| |
| 326 | 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,})
| |
| 327 | 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),})
| |
| 328 | 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),})
| |
| 329 | Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 330 | 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),})
| |
| 331 | LeftArm = New("Model",chara,"LeftArm",{})
| |
| 332 | 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,})
| |
| 333 | 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),})
| |
| 334 | 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),})
| |
| 335 | Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
| |
| 336 | 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),})
| |
| 337 | ||
| 338 | lach = LeftArm:GetChildren() | |
| 339 | rach = RightArm:GetChildren() | |
| 340 | ch = chara:GetChildren() | |
| 341 | ||
| 342 | ScreenGui = New("ScreenGui",player.PlayerGui,"ScreenGui",{})
| |
| 343 | Frame = New("Frame",ScreenGui,"Frame",{BackgroundColor3 = Color3.new(.7,.7,.7),BorderColor3 = Color3.new(.5,.5,.5),BorderSizePixel = 3,Position = UDim2.new(0,700,0,100),Size = UDim2.new(0,200,0,400),Draggable = true})
| |
| 344 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,0),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "BDD-41",TextColor3 = Color3.new(1,1,1)})
| |
| 345 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,20),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "M - Mute/Unmute Music",TextColor3 = Color3.new(1,1,1)})
| |
| 346 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,40),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Z - Swing",TextColor3 = Color3.new(1,1,1)})
| |
| 347 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,60),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "X - Kick",TextColor3 = Color3.new(1,1,1)})
| |
| 348 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,80),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "C - Barrel Explode",TextColor3 = Color3.new(1,1,1)})
| |
| 349 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,100),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Q - Select Target",TextColor3 = Color3.new(1,1,1)})
| |
| 350 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,120),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "E - Block",TextColor3 = Color3.new(1,1,1)})
| |
| 351 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,140),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SAX - Ballista Revolver",TextColor3 = Color3.new(1,1,1)})
| |
| 352 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,160),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSX - Hagar",TextColor3 = Color3.new(1,1,1)})
| |
| 353 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,180),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DSDC - From Above",TextColor3 = Color3.new(1,1,1)})
| |
| 354 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,200),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSQ - Evade",TextColor3 = Color3.new(1,1,1)})
| |
| 355 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,220),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "ADDQ - Grab",TextColor3 = Color3.new(1,1,1)})
| |
| 356 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,240),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "Target Moves:",TextColor3 = Color3.new(1,1,1)})
| |
| 357 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,260),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SDQ - Alpha Blast",TextColor3 = Color3.new(1,1,1)})
| |
| 358 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,280),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "SSDDQ - Summon Ferir",TextColor3 = Color3.new(1,1,1)})
| |
| 359 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,300),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DASDQ - Rocket Barrage",TextColor3 = Color3.new(1,1,1)})
| |
| 360 | TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,320),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "SciFi",Text = "DSASQ - Ray Overdrive",TextColor3 = Color3.new(1,1,1)})
| |
| 361 | OpenButton = New("TextButton",ScreenGui,"OpenButton",{BackgroundColor3 = Color3.new(.7,.7,.7),BorderColor3 = Color3.new(.5,.5,.5),BorderSizePixel = 3,Position = UDim2.new(0,700,0,500),Size = UDim2.new(0,50,0,20),FontSize = "Size14",Font = "SciFi",Text = "Close",TextColor3 = Color3.new(1,1,1)})
| |
| 362 | ||
| 363 | OpenButton.MouseButton1Click:connect(function() | |
| 364 | if Frame.Visible == true then | |
| 365 | Frame.Visible = false | |
| 366 | OpenButton.Text = "Open" | |
| 367 | elseif Frame.Visible == false then | |
| 368 | Frame.Visible = true | |
| 369 | OpenButton.Text = "Close" | |
| 370 | end | |
| 371 | end) | |
| 372 | ||
| 373 | crosshair = Instance.new("BillboardGui",chara)
| |
| 374 | crosshair.Size = UDim2.new(10,0,10,0) | |
| 375 | crosshair.Enabled = false | |
| 376 | imgl = Instance.new("ImageLabel",crosshair)
| |
| 377 | imgl.Position = UDim2.new(0,0,0,0) | |
| 378 | imgl.Size = UDim2.new(1,0,1,0) | |
| 379 | imgl.Image = "rbxassetid://233522684" | |
| 380 | imgl.BackgroundTransparency = 1 | |
| 381 | imgl.ImageColor3 = Color3.new(1,1,0) | |
| 382 | ||
| 383 | --Sounds-- | |
| 384 | function LoadSnd(id,loop,vol,pit) | |
| 385 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
| |
| 386 | return snd | |
| 387 | end | |
| 388 | Music = LoadSnd(575330378,true,1,1) | |
| 389 | StartUpSnd = LoadSnd(153092315,false,1,.8) | |
| 390 | SwingSnd = LoadSnd(158037267,false,1,1) | |
| 391 | Swing2Snd = LoadSnd(12222208,false,1,1) | |
| 392 | HitSnd = LoadSnd(153092274,false,1,1) | |
| 393 | HitPunchSnd = LoadSnd(153092227,false,1,1) | |
| 394 | DodgeSnd = LoadSnd(232210079,false,1,1) | |
| 395 | ExpSnd = LoadSnd(142070127,false,1,1) | |
| 396 | FlySnd = LoadSnd(169445602,false,1,1) | |
| 397 | BExpSnd = LoadSnd(258057783,false,5,1) | |
| 398 | ClawDashSnd = LoadSnd(62339698,false,1,.5) | |
| 399 | deathmus = LoadSnd(395580552,true,5,1) | |
| 400 | deathex = LoadSnd(258057783,false,5,1) | |
| 401 | --Grunt1Snd = LoadSnd(159882486,false,1,1.1) | |
| 402 | --Grunt2Snd = LoadSnd(159882466,false,1,1.1) | |
| 403 | --Grunt3Snd = LoadSnd(159972643,false,1,1.1) | |
| 404 | --Grunt4Snd = LoadSnd(159882584,false,1,1.1) | |
| 405 | --YouIdiotSnd = LoadSnd(160212768,false,1,1.1) | |
| 406 | --DieSnd = LoadSnd(159882598,false,1,1.1) | |
| 407 | --Laugh1Snd = LoadSnd(160212549,false,1,1.1) | |
| 408 | --Laugh2Snd = LoadSnd(159882561,false,1,1.1) | |
| 409 | --Laugh3Snd = LoadSnd(160212812,false,1,1.1) | |
| 410 | ChargeSnd = LoadSnd(137463716,false,1,1) | |
| 411 | LasSnd = LoadSnd(162246701,false,1,1) | |
| 412 | LasLoopSnd = LoadSnd(162246683,true,1,1) | |
| 413 | RStompSnd = LoadSnd(2760979,false,1,1) | |
| 414 | GunFlameSnd = LoadSnd(2691586,false,1,1) | |
| 415 | OrbSnd = LoadSnd(233091161,false,1,1) | |
| 416 | ElectricSnd = LoadSnd(231917975,false,1,1) | |
| 417 | LightsOutSnd = LoadSnd(231917794,false,1,1) | |
| 418 | SkyBeamSnd = LoadSnd(260433522,false,1,1) | |
| 419 | TargetSnd = LoadSnd(613361563,false,1,1) | |
| 420 | SV1Snd = LoadSnd(28144425,false,1,.265) | |
| 421 | SV2Snd = LoadSnd(2697431,false,1,.3) | |
| 422 | SVHitSnd = LoadSnd(62339698,false,1,.3) | |
| 423 | IceBreakSnd = LoadSnd(357568316,false,1,1) | |
| 424 | FreezeSnd = LoadSnd(203936153,false,1,1) | |
| 425 | IceBreak2Snd = LoadSnd(87015121,false,1,1) | |
| 426 | BlockedSnd = LoadSnd(357622136,false,1,1) | |
| 427 | BulletGSnd = LoadSnd(131072992,false,1,2) | |
| 428 | MinigunSnd = LoadSnd(146830867,false,1,1) | |
| 429 | MiniStopSnd = LoadSnd(295843191,false,1,1) | |
| 430 | BulletLSnd = LoadSnd(144884872,false,1,1) | |
| 431 | MissileSnd = LoadSnd(137991337,false,1,1) | |
| 432 | Music:Play() | |
| 433 | ||
| 434 | --Play Sound in Part-- | |
| 435 | function PlaySnd(snd,part) | |
| 436 | local sound = snd:Clone() | |
| 437 | sound.PlayOnRemove = true | |
| 438 | sound.Parent = part | |
| 439 | sound:Destroy() | |
| 440 | end | |
| 441 | ||
| 442 | --Target Select-- | |
| 443 | function TargetSelect(person) | |
| 444 | local dd=coroutine.wrap(function() | |
| 445 | if targetted ~= person then | |
| 446 | targetted = person | |
| 447 | for i = 0,30,10 do | |
| 448 | wait(.05) | |
| 449 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
| 450 | end | |
| 451 | end | |
| 452 | end) | |
| 453 | dd() | |
| 454 | end | |
| 455 | ||
| 456 | --Damage Function-- | |
| 457 | function dealdmg(dude,damage,env,toim,kby,kbx) | |
| 458 | hurt = coroutine.wrap(function(dude2,damage2,env2,toim2) | |
| 459 | if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
| |
| 460 | TargetSelect(dude) | |
| 461 | dude.Humanoid.MaxHealth = 100 | |
| 462 | finaldmg = damage + math.random(-env,env) | |
| 463 | if berserkmode == true then | |
| 464 | finaldmg = finaldmg * 1.5 | |
| 465 | end | |
| 466 | dude.Humanoid.Health = dude.Humanoid.Health - finaldmg | |
| 467 | local vall = Instance.new("ObjectValue",dude)
| |
| 468 | vall.Name = "IsHit" | |
| 469 | debby:AddItem(vall,toim) | |
| 470 | local bfos = Instance.new("BodyVelocity",dude.Head)
| |
| 471 | bfos.P = 20000 | |
| 472 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 473 | bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx | |
| 474 | debby:AddItem(bfos,.1) | |
| 475 | local naeeym2 = Instance.new("BillboardGui",dude)
| |
| 476 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 477 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 478 | naeeym2.Adornee = dude.Head | |
| 479 | naeeym2.Name = "TalkingBillBoard" | |
| 480 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 481 | tecks2.BackgroundTransparency = 1 | |
| 482 | tecks2.BorderSizePixel = 0 | |
| 483 | tecks2.Text = "-"..finaldmg | |
| 484 | tecks2.Font = "SciFi" | |
| 485 | tecks2.FontSize = "Size24" | |
| 486 | tecks2.TextStrokeTransparency = 0 | |
| 487 | tecks2.TextColor3 = Color3.new(1,0.6,0) | |
| 488 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 489 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 490 | for i = 1, 5 do | |
| 491 | wait(.1) | |
| 492 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 493 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 494 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 495 | end | |
| 496 | naeeym2:Destroy() | |
| 497 | end | |
| 498 | end) | |
| 499 | hurt(dude,damage,env,toim) | |
| 500 | end | |
| 501 | ||
| 502 | --Explode Hitbox-- | |
| 503 | function ExHitbox(rad,pos,damage,env,toim,kby,kbx) | |
| 504 | local E = Instance.new("Explosion")
| |
| 505 | E.Position = pos | |
| 506 | E.Parent = game.Workspace | |
| 507 | E.BlastRadius = rad | |
| 508 | E.BlastPressure = 0 | |
| 509 | E.Visible = false | |
| 510 | E.Hit:connect(function(hit) | |
| 511 | if hit.Parent:FindFirstChild("Humanoid")~=nil then
| |
| 512 | dealdmg(hit.Parent,damage,env,toim,kby,kbx) | |
| 513 | end | |
| 514 | end) | |
| 515 | end | |
| 516 | ||
| 517 | --Chat Function-- | |
| 518 | function chatfunc(text) | |
| 519 | local chat = coroutine.wrap(function() | |
| 520 | if chara:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 521 | chara:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 522 | end | |
| 523 | local naeeym2 = Instance.new("BillboardGui",chara)
| |
| 524 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 525 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 526 | naeeym2.Adornee = chara.Head | |
| 527 | naeeym2.Name = "TalkingBillBoard" | |
| 528 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 529 | tecks2.BackgroundTransparency = 1 | |
| 530 | tecks2.BorderSizePixel = 0 | |
| 531 | tecks2.Text = "" | |
| 532 | tecks2.Font = "Fantasy" | |
| 533 | tecks2.FontSize = "Size24" | |
| 534 | tecks2.TextStrokeTransparency = 0 | |
| 535 | tecks2.TextColor3 = Color3.new(1,1,1) | |
| 536 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 537 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 538 | if berserkmode == true then | |
| 539 | tecks2.TextColor3 = Color3.new(1,0,0) | |
| 540 | tecks2.TextStrokeColor3 = Color3.new(1,1,0) | |
| 541 | end | |
| 542 | for i = 1,string.len(text),1 do | |
| 543 | tecks2.Text = string.sub(text,1,i) | |
| 544 | wait(0.01) | |
| 545 | end | |
| 546 | wait(1) | |
| 547 | for i = 1, 5 do | |
| 548 | wait(.01) | |
| 549 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
| 550 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
| 551 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
| 552 | end | |
| 553 | naeeym2:Destroy() | |
| 554 | end) | |
| 555 | chat() | |
| 556 | end | |
| 557 | ||
| 558 | function onChatted(msg) | |
| 559 | chatfunc(msg) | |
| 560 | end | |
| 561 | player.Chatted:connect(onChatted) | |
| 562 | ||
| 563 | --Punch Hit Effect-- | |
| 564 | function PunchEff(pos) | |
| 565 | local p = Instance.new("Part",game.Workspace)
| |
| 566 | p.Size = Vector3.new(0,0,0) | |
| 567 | p.BrickColor = BrickColor.new("White")
| |
| 568 | p.Material = "Neon" | |
| 569 | p.Anchored = true | |
| 570 | p.CanCollide = false | |
| 571 | p.CFrame = pos | |
| 572 | local pm = Instance.new("SpecialMesh",p)
| |
| 573 | pm.MeshType = "Sphere" | |
| 574 | local disp = coroutine.wrap(function() | |
| 575 | for i = 1, 4 do | |
| 576 | wait(.01) | |
| 577 | p.Transparency = p.Transparency + .2 | |
| 578 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
| 579 | end | |
| 580 | wait(.01) | |
| 581 | p:Destroy() | |
| 582 | end) | |
| 583 | disp() | |
| 584 | end | |
| 585 | ||
| 586 | --Blade Hit Effect-- | |
| 587 | function SlashEff(pos) | |
| 588 | local p = Instance.new("Part",game.Workspace)
| |
| 589 | p.Size = Vector3.new(0,0,0) | |
| 590 | p.BrickColor = BrickColor.new("White")
| |
| 591 | p.Material = "Neon" | |
| 592 | p.Anchored = true | |
| 593 | p.CanCollide = false | |
| 594 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 595 | local pm = Instance.new("SpecialMesh",p)
| |
| 596 | pm.MeshType = "Sphere" | |
| 597 | pm.Scale = Vector3.new(2.5,0,2.5) | |
| 598 | local disp = coroutine.wrap(function() | |
| 599 | for i = 1, 4 do | |
| 600 | wait(.01) | |
| 601 | p.Transparency = p.Transparency + .2 | |
| 602 | pm.Scale = pm.Scale + Vector3.new(0,30,0) | |
| 603 | end | |
| 604 | wait(.01) | |
| 605 | p:Destroy() | |
| 606 | end) | |
| 607 | disp() | |
| 608 | end | |
| 609 | ||
| 610 | --Super Pause-- | |
| 611 | function SuperPause() | |
| 612 | StartUpSnd:Play() | |
| 613 | local p = Instance.new("Part",game.Workspace)
| |
| 614 | p.Size = Vector3.new(0,0,0) | |
| 615 | p.BrickColor = BrickColor.new("White")
| |
| 616 | p.Material = "Neon" | |
| 617 | p.Anchored = true | |
| 618 | p.CanCollide = false | |
| 619 | p.CFrame = chara.Torso.CFrame | |
| 620 | local pm = Instance.new("SpecialMesh",p)
| |
| 621 | pm.MeshType = "Sphere" | |
| 622 | local disp = coroutine.wrap(function() | |
| 623 | for i = 1, 4 do | |
| 624 | wait(.01) | |
| 625 | p.Transparency = p.Transparency + .2 | |
| 626 | pm.Scale = pm.Scale + Vector3.new(20,20,20) | |
| 627 | end | |
| 628 | wait(.01) | |
| 629 | p:Destroy() | |
| 630 | end) | |
| 631 | disp() | |
| 632 | end | |
| 633 | ||
| 634 | --Punch Touch-- | |
| 635 | dela = .5 | |
| 636 | punchactive = false | |
| 637 | function punchhit(hit) | |
| 638 | if punchactive == true then | |
| 639 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 640 | dealdmg(hit.Parent,9,2,dela,0,25) | |
| 641 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 642 | PunchEff(Hitbox1.CFrame) | |
| 643 | end | |
| 644 | end | |
| 645 | end | |
| 646 | Hitbox1.Touched:connect(punchhit) | |
| 647 | ||
| 648 | --Kick Touch-- | |
| 649 | kickactive = false | |
| 650 | dkickactive = false | |
| 651 | skickactive = false | |
| 652 | didskick = false | |
| 653 | lkickactive = false | |
| 654 | function kickhit(hit) | |
| 655 | if kickactive == true then | |
| 656 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 657 | dealdmg(hit.Parent,10,2,dela,0,35) | |
| 658 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 659 | PunchEff(hit.CFrame) | |
| 660 | if dkickactive == true then | |
| 661 | hit.Parent.Humanoid.PlatformStand = true | |
| 662 | hit.Parent.Head.CFrame = chara["Right Leg"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) | |
| 663 | wait(3) | |
| 664 | hit.Parent.Humanoid.PlatformStand = false | |
| 665 | end | |
| 666 | if skickactive == true then | |
| 667 | local bodpf = Instance.new("BodyPosition",hit.Parent.Head)
| |
| 668 | bodpf.MaxForce = Vector3.new(10000,10000,10000) | |
| 669 | bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3) | |
| 670 | debby:AddItem(bodpf,3.5) | |
| 671 | didskick = true | |
| 672 | end | |
| 673 | if lkickactive == true then | |
| 674 | if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then
| |
| 675 | hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy()
| |
| 676 | end | |
| 677 | local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
| |
| 678 | bfos.P = 20000 | |
| 679 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 680 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0) | |
| 681 | debby:AddItem(bfos,.3) | |
| 682 | end | |
| 683 | end | |
| 684 | end | |
| 685 | end | |
| 686 | chara["Left Leg"].Touched:connect(kickhit) | |
| 687 | chara["Right Leg"].Touched:connect(kickhit) | |
| 688 | ||
| 689 | --Grab Touch-- | |
| 690 | weldd = nil | |
| 691 | function grabhit(hit) | |
| 692 | if exeact == true and exed == false then | |
| 693 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
| |
| 694 | dealdmg(hit.Parent,9,2,dela,0,0) | |
| 695 | PlaySnd(HitPunchSnd,hit.Parent.Head) | |
| 696 | PunchEff(hit.CFrame) | |
| 697 | weldd = Instance.new("Weld",hit.Parent)
| |
| 698 | weldd.Part0 = hit.Parent.Head | |
| 699 | weldd.Part1 = BulletSpawn2 | |
| 700 | exed = true | |
| 701 | end | |
| 702 | end | |
| 703 | end | |
| 704 | Hitbox2.Touched:connect(grabhit) | |
| 705 | ||
| 706 | function CasingDrop(no) | |
| 707 | local hitpt = Instance.new("Part",game.Workspace)
| |
| 708 | hitpt.Size = Vector3.new(0,0,1) | |
| 709 | hitpt.TopSurface = 0 | |
| 710 | hitpt.BottomSurface = 0 | |
| 711 | local bf = Instance.new("BodyVelocity",hitpt)
| |
| 712 | bf.P = 10000 | |
| 713 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 714 | debby:AddItem(bf,.1) | |
| 715 | if no == "Right" then | |
| 716 | hitpt.Position = Hitbox1.Position | |
| 717 | hitpt.CFrame = Hitbox1.CFrame | |
| 718 | bf.Velocity = Vector3.new(0,5,0) + Hitbox1.CFrame.rightVector*10 | |
| 719 | elseif no == "Left" then | |
| 720 | hitpt.Position = Hitbox2.Position | |
| 721 | hitpt.CFrame = Hitbox2.CFrame | |
| 722 | bf.Velocity = Vector3.new(0,5,0) + Hitbox1.CFrame.rightVector*-10 | |
| 723 | end | |
| 724 | local hitm = Instance.new("SpecialMesh",hitpt)
| |
| 725 | hitm.MeshId = "http://www.roblox.com/asset/?id=94295100" | |
| 726 | hitm.TextureId = "http://www.roblox.com/asset/?id=94287792" | |
| 727 | hitm.Scale = Vector3.new(6,6,7) | |
| 728 | debby:AddItem(hitpt,3) | |
| 729 | end | |
| 730 | ||
| 731 | function GunPlode() | |
| 732 | PlaySnd(GunFlameSnd,chara) | |
| 733 | PlaySnd(ExpSnd,chara) | |
| 734 | PlaySnd(BulletGSnd,chara) | |
| 735 | CasingDrop("Right")
| |
| 736 | CasingDrop("Left")
| |
| 737 | local hitpt = Instance.new("Part",game.Workspace)
| |
| 738 | hitpt.Size = Vector3.new(1,1,1) | |
| 739 | hitpt.Anchored = true | |
| 740 | hitpt.CanCollide = false | |
| 741 | hitpt.BrickColor = BrickColor.new("Bright yellow")
| |
| 742 | hitpt.CFrame = BulletSpawn1.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 743 | local hitb = Instance.new("Part",game.Workspace)
| |
| 744 | hitb.Size = Vector3.new(1,1,1) | |
| 745 | hitb.Anchored = true | |
| 746 | hitb.CanCollide = false | |
| 747 | hitb.BrickColor = BrickColor.new("Bright yellow")
| |
| 748 | hitb.Material = "Neon" | |
| 749 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
| 750 | local hitpt2 = hitpt:Clone() | |
| 751 | hitpt2.Parent = game.Workspace | |
| 752 | hitpt.CFrame = BulletSpawn2.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 753 | local hitb2 = hitb:Clone() | |
| 754 | hitb2.Parent = game.Workspace | |
| 755 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
| 756 | local hitbm = Instance.new("SpecialMesh",hitb)
| |
| 757 | hitbm.MeshType = "Sphere" | |
| 758 | hitbm.Scale = Vector3.new(1,1,1) | |
| 759 | local hitm = Instance.new("SpecialMesh",hitpt)
| |
| 760 | hitm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 761 | local hitbm2 = hitbm:Clone() | |
| 762 | hitbm2.Parent = hitb2 | |
| 763 | local hitm2 = hitm:Clone() | |
| 764 | hitm2.Parent = hitpt2 | |
| 765 | local hpt = coroutine.wrap(function() | |
| 766 | for i = 1, 9 do | |
| 767 | wait(.05) | |
| 768 | hitpt.Transparency = hitpt.Transparency + .1 | |
| 769 | hitm.Scale = hitm.Scale + Vector3.new(.5,.5,.5) | |
| 770 | hitb.Transparency = hitb.Transparency + .1 | |
| 771 | hitbm.Scale = hitbm.Scale + Vector3.new(.5,.5,.5) | |
| 772 | hitpt2.Transparency = hitpt2.Transparency + .1 | |
| 773 | hitm2.Scale = hitm2.Scale + Vector3.new(.5,.5,.5) | |
| 774 | hitb2.Transparency = hitb2.Transparency + .1 | |
| 775 | hitbm2.Scale = hitbm2.Scale + Vector3.new(.5,.5,.5) | |
| 776 | end | |
| 777 | hitpt:Destroy() | |
| 778 | hitb:Destroy() | |
| 779 | hitpt2:Destroy() | |
| 780 | hitb2:Destroy() | |
| 781 | end) | |
| 782 | hpt() | |
| 783 | ExHitbox(5,BulletSpawn1.Position,12,2,.1,0,-50) | |
| 784 | ExHitbox(5,BulletSpawn2.Position,12,2,.1,0,50) | |
| 785 | end | |
| 786 | ||
| 787 | function Laser(Partt,Targ) | |
| 788 | local EffectPart = Instance.new("Part",game.Workspace)
| |
| 789 | EffectPart.Size = Vector3.new(1,1,1) | |
| 790 | EffectPart.Anchored = true | |
| 791 | EffectPart.BrickColor = BrickColor.new("Bright yellow")
| |
| 792 | EffectPart.Material = "Neon" | |
| 793 | EffectPart.Position = Targ.Position | |
| 794 | EffectPart.CFrame = CFrame.new(Targ.Position.x,Targ.Position.y,Targ.Position.z) | |
| 795 | local mehs1 = Instance.new("SpecialMesh",EffectPart)
| |
| 796 | mehs1.MeshType = "Sphere" | |
| 797 | mehs1.Scale = Vector3.new(2,2,2) | |
| 798 | local P = Instance.new("Part")
| |
| 799 | local Place0 = Partt.CFrame | |
| 800 | local Place1 = EffectPart.CFrame | |
| 801 | local meshla = Instance.new("BlockMesh", P)
| |
| 802 | meshla.Scale = Vector3.new(1,1,1) | |
| 803 | P.formFactor = 0 | |
| 804 | P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude) | |
| 805 | P.Name = "Laser" | |
| 806 | P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) | |
| 807 | P.Parent = game.Workspace | |
| 808 | P.BrickColor = BrickColor.new("Bright yellow")
| |
| 809 | P.Material = "Neon" | |
| 810 | P.Anchored = true | |
| 811 | P.CanCollide = false | |
| 812 | P.Locked = true | |
| 813 | P.BottomSurface = "Smooth" | |
| 814 | P.TopSurface = "Smooth" | |
| 815 | ExHitbox(5,Place1.p,20,2,.1,0,5) | |
| 816 | local fu = coroutine.wrap(function() | |
| 817 | for i = 1, 10 do | |
| 818 | wait(.01) | |
| 819 | mehs1.Scale = mehs1.Scale + Vector3.new(.5,.5,.5) | |
| 820 | meshla.Scale = meshla.Scale + Vector3.new(.25,.25,0) | |
| 821 | EffectPart.Transparency = EffectPart.Transparency + .1 | |
| 822 | P.Transparency = P.Transparency + .1 | |
| 823 | end | |
| 824 | ---- | |
| 825 | P:Destroy() | |
| 826 | EffectPart:Destroy() | |
| 827 | end) | |
| 828 | fu() | |
| 829 | end | |
| 830 | ||
| 831 | --Material Return-- | |
| 832 | gprop = {}
| |
| 833 | function materialhit(hit) | |
| 834 | if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
| |
| 835 | gprop = {hit.BrickColor,hit.Material}
| |
| 836 | end | |
| 837 | end | |
| 838 | chara["Left Leg"].Touched:connect(materialhit) | |
| 839 | chara["Right Leg"].Touched:connect(materialhit) | |
| 840 | ||
| 841 | --Clerp Animations-- | |
| 842 | TC = chara.HumanoidRootPart.RootJoint | |
| 843 | HC = chara.Torso.Neck | |
| 844 | RAC = chara.Torso["Right Shoulder"] | |
| 845 | LAC = chara.Torso["Left Shoulder"] | |
| 846 | RLC = chara.Torso["Right Hip"] | |
| 847 | LLC = chara.Torso["Left Hip"] | |
| 848 | TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 849 | HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 850 | RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 851 | LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 852 | RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 853 | LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 854 | RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 855 | LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 856 | RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 857 | LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0) | |
| 858 | RW = Instance.new("Weld",HC.Parent)
| |
| 859 | RW.Part1 = HC.Parent | |
| 860 | RW.Part0 = chara["Right Arm"] | |
| 861 | RW.C0 = RWF | |
| 862 | LW = Instance.new("Weld",HC.Parent)
| |
| 863 | LW.Part1 = HC.Parent | |
| 864 | LW.Part0 = chara["Left Arm"] | |
| 865 | LW.C0 = LWF | |
| 866 | RLW = nil | |
| 867 | LLW = nil | |
| 868 | ||
| 869 | function AddLegWelds() | |
| 870 | RLW = Instance.new("Weld",chara["Right Leg"])
| |
| 871 | RLW.Part1 = HC.Parent | |
| 872 | RLW.Part0 = chara["Right Leg"] | |
| 873 | RLW.C0 = RLWF | |
| 874 | LLW = Instance.new("Weld",chara["Left Leg"])
| |
| 875 | LLW.Part1 = HC.Parent | |
| 876 | LLW.Part0 = chara["Left Leg"] | |
| 877 | LLW.C0 = LLWF | |
| 878 | end | |
| 879 | ||
| 880 | function DestroyLegWelds() | |
| 881 | 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),})
| |
| 882 | 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),})
| |
| 883 | RLW:Destroy() | |
| 884 | LLW:Destroy() | |
| 885 | end | |
| 886 | ||
| 887 | function clerp(a,b,c) | |
| 888 | return a:lerp(b,c) | |
| 889 | end | |
| 890 | ||
| 891 | --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 892 | --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)) | |
| 893 | --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 894 | --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2)) | |
| 895 | ||
| 896 | TC.C0 = TCF | |
| 897 | HC.C0 = HCF | |
| 898 | RW.C0 = RWF | |
| 899 | LW.C0 = LWF | |
| 900 | ||
| 901 | --Idle Clerp-- | |
| 902 | ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(70)) | |
| 903 | IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-70)) | |
| 904 | IRWF = (RWF - Vector3.new(-.5,.5,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),math.rad(-70),0) | |
| 905 | ILWF = (LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 906 | ||
| 907 | TC.C0 = ITCF | |
| 908 | HC.C0 = IHCF | |
| 909 | RW.C0 = IRWF | |
| 910 | LW.C0 = ILWF | |
| 911 | ||
| 912 | ||
| 913 | --Punch-- | |
| 914 | function Punch() | |
| 915 | del = true | |
| 916 | atkd = true | |
| 917 | chara.Humanoid.WalkSpeed = 0 | |
| 918 | punchactive = true | |
| 919 | wait(.01) | |
| 920 | SwingSnd:Play() | |
| 921 | wait(.01) | |
| 922 | for i = 0,.75,.25 do | |
| 923 | wait(.01) | |
| 924 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i) | |
| 925 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 926 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 927 | end | |
| 928 | wait(.1) | |
| 929 | bladeactive = false | |
| 930 | for i = 0,.6,.2 do | |
| 931 | wait(.01) | |
| 932 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 933 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 934 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 935 | end | |
| 936 | chara.Humanoid.WalkSpeed = 32 | |
| 937 | punchactive = false | |
| 938 | del = false | |
| 939 | atkdd = true | |
| 940 | end | |
| 941 | ||
| 942 | --Kick Atk-- | |
| 943 | function KickAtk() | |
| 944 | del = true | |
| 945 | atkd = true | |
| 946 | chara.Humanoid.WalkSpeed = 0 | |
| 947 | kickactive = true | |
| 948 | AddLegWelds() | |
| 949 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 950 | bfos.P = 10000 | |
| 951 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 952 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 200 | |
| 953 | debby:AddItem(bfos,.1) | |
| 954 | for i = 0,.75,.25 do | |
| 955 | wait(.05) | |
| 956 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i) | |
| 957 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i) | |
| 958 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i) | |
| 959 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i) | |
| 960 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i) | |
| 961 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i) | |
| 962 | end | |
| 963 | for i = 0,.75,.25 do | |
| 964 | wait(.05) | |
| 965 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i) | |
| 966 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i) | |
| 967 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i) | |
| 968 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i) | |
| 969 | LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i) | |
| 970 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i) | |
| 971 | end | |
| 972 | DestroyLegWelds() | |
| 973 | kickactive = false | |
| 974 | chara.Humanoid.WalkSpeed = 24 | |
| 975 | del = false | |
| 976 | atkdd = true | |
| 977 | end | |
| 978 | ||
| 979 | --Explod-- | |
| 980 | function ExplodPunch() | |
| 981 | del = true | |
| 982 | atkd = true | |
| 983 | chara.Humanoid.WalkSpeed = 0 | |
| 984 | wait(.01) | |
| 985 | for i = 0,.6,.2 do | |
| 986 | wait(.001) | |
| 987 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 988 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 989 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 990 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 991 | end | |
| 992 | GunPlode() | |
| 993 | wait(.5) | |
| 994 | for i = 0,.6,.2 do | |
| 995 | wait(.001) | |
| 996 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 997 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 998 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 999 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1000 | end | |
| 1001 | chara.Humanoid.WalkSpeed = 24 | |
| 1002 | atkdd = true | |
| 1003 | del = false | |
| 1004 | end | |
| 1005 | ||
| 1006 | --Bandit Revolver-- | |
| 1007 | function BanditRevolver() | |
| 1008 | del = true | |
| 1009 | atkd = true | |
| 1010 | chara.Humanoid.WalkSpeed = 0 | |
| 1011 | kickactive = true | |
| 1012 | dkickactive = true | |
| 1013 | chatfunc("Bandit Revolver!")
| |
| 1014 | AddLegWelds() | |
| 1015 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 1016 | bfos.P = 10000 | |
| 1017 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 1018 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 40 | |
| 1019 | for i = 0,.6,.2 do | |
| 1020 | wait(.01) | |
| 1021 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
| 1022 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i) | |
| 1023 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
| 1024 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
| 1025 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 1026 | end | |
| 1027 | SwingSnd:Play() | |
| 1028 | for i = 0,1,.25 do | |
| 1029 | wait(.0001) | |
| 1030 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i) | |
| 1031 | end | |
| 1032 | for i = 0,1,.25 do | |
| 1033 | wait(.0001) | |
| 1034 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i) | |
| 1035 | end | |
| 1036 | for i = 0,1,.25 do | |
| 1037 | wait(.01) | |
| 1038 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i) | |
| 1039 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
| 1040 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i) | |
| 1041 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i) | |
| 1042 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i) | |
| 1043 | end | |
| 1044 | DestroyLegWelds() | |
| 1045 | dkickactive = false | |
| 1046 | kickactive = false | |
| 1047 | chara.Humanoid.WalkSpeed = 24 | |
| 1048 | bfos:Destroy() | |
| 1049 | del = false | |
| 1050 | atkdd = true | |
| 1051 | end | |
| 1052 | ||
| 1053 | --Freezer Kick-- | |
| 1054 | function FlipKickEffect(pos) | |
| 1055 | local p = Instance.new("Part",game.Workspace)
| |
| 1056 | p.Size = Vector3.new(0,0,0) | |
| 1057 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 1058 | p.Material = "Neon" | |
| 1059 | p.Anchored = true | |
| 1060 | p.CanCollide = false | |
| 1061 | p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 1062 | local pm = Instance.new("BlockMesh",p)
| |
| 1063 | local disp = coroutine.wrap(function() | |
| 1064 | for i = 1, 4 do | |
| 1065 | wait(.01) | |
| 1066 | p.Transparency = p.Transparency + .2 | |
| 1067 | pm.Scale = pm.Scale + Vector3.new(2,2,2) | |
| 1068 | end | |
| 1069 | wait(.01) | |
| 1070 | p:Destroy() | |
| 1071 | end) | |
| 1072 | disp() | |
| 1073 | end | |
| 1074 | function FlipKick() | |
| 1075 | del = true | |
| 1076 | atkd = true | |
| 1077 | chatfunc("Hagar!")
| |
| 1078 | AddLegWelds() | |
| 1079 | kickactive = true | |
| 1080 | lkickactive = true | |
| 1081 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 1082 | bfos.P = 10000 | |
| 1083 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 1084 | bfos.Velocity = Vector3.new(0,10,0) + chara.HumanoidRootPart.CFrame.lookVector * 50 | |
| 1085 | Swing2Snd:Play() | |
| 1086 | for i = 0,.6,.2 do | |
| 1087 | wait(.001) | |
| 1088 | TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 1089 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i) | |
| 1090 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i) | |
| 1091 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i) | |
| 1092 | RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i) | |
| 1093 | FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5) | |
| 1094 | end | |
| 1095 | for i = 1, 3 do | |
| 1096 | wait(.001) | |
| 1097 | FlipKickEffect(chara["Right Leg"].CFrame - chara["Right Leg"].CFrame.upVector*1.5) | |
| 1098 | end | |
| 1099 | bfos:Destroy() | |
| 1100 | kickactive = false | |
| 1101 | lkickactive = false | |
| 1102 | wait(.25) | |
| 1103 | for i = 0,1,.25 do | |
| 1104 | wait(.001) | |
| 1105 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),ITCF,.4+i) | |
| 1106 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i) | |
| 1107 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i) | |
| 1108 | LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i) | |
| 1109 | RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i) | |
| 1110 | end | |
| 1111 | DestroyLegWelds() | |
| 1112 | del = false | |
| 1113 | end | |
| 1114 | ||
| 1115 | --Alpha Blast-- | |
| 1116 | function ABlast() | |
| 1117 | del = true | |
| 1118 | atkd = true | |
| 1119 | chatfunc("Alpha Blast!")
| |
| 1120 | for i = 0,.6,.2 do | |
| 1121 | wait(.001) | |
| 1122 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1123 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1124 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1125 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1126 | end | |
| 1127 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1128 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1129 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1130 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1131 | for i = 1, 2 do | |
| 1132 | GunFlameSnd:Play() | |
| 1133 | BulletGSnd:Play() | |
| 1134 | CasingDrop("Left")
| |
| 1135 | local missile = Instance.new("Part",game.Workspace)
| |
| 1136 | missile.Size = Vector3.new(0,0,0) | |
| 1137 | missile.Name = "Blast" | |
| 1138 | missile.Transparency = 1 | |
| 1139 | missile.Position = BulletSpawn2.Position | |
| 1140 | missile.CFrame = BulletSpawn2.CFrame | |
| 1141 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
| 1142 | local force = Instance.new("BodyForce")
| |
| 1143 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1144 | force.Parent = missile | |
| 1145 | local p1mit = Instance.new("ParticleEmitter",missile)
| |
| 1146 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 1147 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)})
| |
| 1148 | p1mit.LightEmission = 1 | |
| 1149 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1150 | p1mit.Lifetime = NumberRange.new(1) | |
| 1151 | p1mit.Rate = 10000 | |
| 1152 | p1mit.Rotation = NumberRange.new(0,359) | |
| 1153 | p1mit.RotSpeed = NumberRange.new(100) | |
| 1154 | p1mit.Speed = NumberRange.new(0) | |
| 1155 | missile.Touched:connect(function(hit) | |
| 1156 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
| 1157 | force:Destroy() | |
| 1158 | force = nil | |
| 1159 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
| 1160 | PlaySnd(BulletLSnd,hit) | |
| 1161 | p1mit.Enabled = false | |
| 1162 | wait(2) | |
| 1163 | missile:Destroy() | |
| 1164 | end | |
| 1165 | end) | |
| 1166 | wait(.1) | |
| 1167 | for i = 0,.6,.2 do | |
| 1168 | wait(.001) | |
| 1169 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1170 | end | |
| 1171 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1172 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1173 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1174 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1175 | debby:AddItem(missile,10) | |
| 1176 | GunFlameSnd:Play() | |
| 1177 | BulletGSnd:Play() | |
| 1178 | CasingDrop("Right")
| |
| 1179 | local missile = Instance.new("Part",game.Workspace)
| |
| 1180 | missile.Size = Vector3.new(0,0,0) | |
| 1181 | missile.Name = "Blast" | |
| 1182 | missile.Transparency = 1 | |
| 1183 | missile.Position = BulletSpawn1.Position | |
| 1184 | missile.CFrame = BulletSpawn1.CFrame | |
| 1185 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
| 1186 | local force = Instance.new("BodyForce")
| |
| 1187 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1188 | force.Parent = missile | |
| 1189 | local p1mit = Instance.new("ParticleEmitter",missile)
| |
| 1190 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 1191 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)})
| |
| 1192 | p1mit.LightEmission = 1 | |
| 1193 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1194 | p1mit.Lifetime = NumberRange.new(1) | |
| 1195 | p1mit.Rate = 10000 | |
| 1196 | p1mit.Rotation = NumberRange.new(0,359) | |
| 1197 | p1mit.RotSpeed = NumberRange.new(100) | |
| 1198 | p1mit.Speed = NumberRange.new(0) | |
| 1199 | missile.Touched:connect(function(hit) | |
| 1200 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
| 1201 | force:Destroy() | |
| 1202 | force = nil | |
| 1203 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
| 1204 | PlaySnd(BulletLSnd,hit) | |
| 1205 | p1mit.Enabled = false | |
| 1206 | wait(2) | |
| 1207 | missile:Destroy() | |
| 1208 | end | |
| 1209 | end) | |
| 1210 | debby:AddItem(missile,10) | |
| 1211 | wait(.1) | |
| 1212 | for i = 0,.6,.2 do | |
| 1213 | wait(.001) | |
| 1214 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1215 | end | |
| 1216 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1217 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1218 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1219 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1220 | end | |
| 1221 | GunFlameSnd:Play() | |
| 1222 | BulletGSnd:Play() | |
| 1223 | CasingDrop("Left")
| |
| 1224 | local missile = Instance.new("Part",game.Workspace)
| |
| 1225 | missile.Size = Vector3.new(0,0,0) | |
| 1226 | missile.Name = "Blast" | |
| 1227 | missile.Transparency = 1 | |
| 1228 | missile.Position = BulletSpawn2.Position | |
| 1229 | missile.CFrame = BulletSpawn2.CFrame | |
| 1230 | missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*200 | |
| 1231 | local force = Instance.new("BodyForce")
| |
| 1232 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1233 | force.Parent = missile | |
| 1234 | local p1mit = Instance.new("ParticleEmitter",missile)
| |
| 1235 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 1236 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright yellow").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright orange").Color)})
| |
| 1237 | p1mit.LightEmission = 1 | |
| 1238 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1239 | p1mit.Lifetime = NumberRange.new(1) | |
| 1240 | p1mit.Rate = 10000 | |
| 1241 | p1mit.Rotation = NumberRange.new(0,359) | |
| 1242 | p1mit.RotSpeed = NumberRange.new(100) | |
| 1243 | p1mit.Speed = NumberRange.new(0) | |
| 1244 | missile.Touched:connect(function(hit) | |
| 1245 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then | |
| 1246 | force:Destroy() | |
| 1247 | force = nil | |
| 1248 | ExHitbox(3,missile.Position,12,1,.1,0,5) | |
| 1249 | PlaySnd(BulletLSnd,hit) | |
| 1250 | p1mit.Enabled = false | |
| 1251 | wait(2) | |
| 1252 | missile:Destroy() | |
| 1253 | end | |
| 1254 | end) | |
| 1255 | wait(.1) | |
| 1256 | for i = 0,.6,.2 do | |
| 1257 | wait(.001) | |
| 1258 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1259 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1260 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1261 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1262 | end | |
| 1263 | del = false | |
| 1264 | atkdd = true | |
| 1265 | end | |
| 1266 | ||
| 1267 | --Decapitator-- | |
| 1268 | function Decapitator() | |
| 1269 | del = true | |
| 1270 | atkd = true | |
| 1271 | chatfunc("From Above!")
| |
| 1272 | chara.Humanoid.WalkSpeed = 0 | |
| 1273 | for i = 0,.6,.2 do | |
| 1274 | wait(.0001) | |
| 1275 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.4+i) | |
| 1276 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1277 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1278 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1279 | end | |
| 1280 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1281 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1282 | local bf = Instance.new("BodyVelocity",chara.Torso)
| |
| 1283 | bf.P = 10000 | |
| 1284 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 1285 | bf.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector*50 | |
| 1286 | for i = 0,1,.25 do | |
| 1287 | wait(.0001) | |
| 1288 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1289 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1290 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),i) | |
| 1291 | HC.C0 = HCF | |
| 1292 | GunPlode() | |
| 1293 | end | |
| 1294 | bf.Velocity = Vector3.new(0,-20,0) + chara.HumanoidRootPart.CFrame.lookVector*50 | |
| 1295 | for i = 0,1,.25 do | |
| 1296 | wait(.0001) | |
| 1297 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(360)),i) | |
| 1298 | HC.C0 = HCF | |
| 1299 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1300 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1301 | GunPlode() | |
| 1302 | end | |
| 1303 | bf:Destroy() | |
| 1304 | for i = 0,.6,.2 do | |
| 1305 | wait(.0001) | |
| 1306 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.6-i) | |
| 1307 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 1308 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1309 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1310 | end | |
| 1311 | atkdd = true | |
| 1312 | chara.Humanoid.WalkSpeed = 24 | |
| 1313 | del = false | |
| 1314 | end | |
| 1315 | ||
| 1316 | --Back Explosion-- | |
| 1317 | function BackEx() | |
| 1318 | del = true | |
| 1319 | atkd = true | |
| 1320 | chatfunc("Evade!")
| |
| 1321 | chara.Humanoid.WalkSpeed = 0 | |
| 1322 | for i = 0,.6,.2 do | |
| 1323 | wait(.001) | |
| 1324 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1325 | end | |
| 1326 | TC.C0 = TCF | |
| 1327 | HC.C0 = HCF | |
| 1328 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 1329 | bfos.P = 10000 | |
| 1330 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 1331 | bfos.Velocity = Vector3.new(0,200,0) | |
| 1332 | for i = 0,.6,.2 do | |
| 1333 | wait(.001) | |
| 1334 | TC.C0 = clerp(TCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
| 1335 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)),.4+i) | |
| 1336 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
| 1337 | LW.C0 = ILWF | |
| 1338 | end | |
| 1339 | SwingSnd:Play() | |
| 1340 | for i = 0,1,.25 do | |
| 1341 | wait(.001) | |
| 1342 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
| 1343 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 1344 | LW.C0 = ILWF | |
| 1345 | end | |
| 1346 | GunPlode() | |
| 1347 | bfos.Velocity = Vector3.new(0,200,0)+chara.HumanoidRootPart.CFrame.lookVector * -100 | |
| 1348 | for i = 0,1,.25 do | |
| 1349 | wait(.001) | |
| 1350 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
| 1351 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 1352 | LW.C0 = ILWF | |
| 1353 | end | |
| 1354 | bfos:Destroy() | |
| 1355 | for i = 0,1,.25 do | |
| 1356 | wait(.001) | |
| 1357 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),ITCF,i) | |
| 1358 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
| 1359 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),IRWF,i) | |
| 1360 | end | |
| 1361 | del = false | |
| 1362 | atkdd = true | |
| 1363 | chara.Humanoid.WalkSpeed = 24 | |
| 1364 | end | |
| 1365 | ||
| 1366 | --Grab Move-- | |
| 1367 | function GrabMove() | |
| 1368 | del = true | |
| 1369 | atkd = true | |
| 1370 | chara.Humanoid.WalkSpeed = 0 | |
| 1371 | chatfunc("Have this.")
| |
| 1372 | exeact = true | |
| 1373 | wait(.01) | |
| 1374 | SwingSnd:Play() | |
| 1375 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 1376 | bfos.P = 10000 | |
| 1377 | bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P) | |
| 1378 | bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 500 | |
| 1379 | debby:AddItem(bfos,.1) | |
| 1380 | for i = 0,.6,.2 do | |
| 1381 | wait(.001) | |
| 1382 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1383 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1384 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1385 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1386 | end | |
| 1387 | wait(.5) | |
| 1388 | if exed == true then | |
| 1389 | exeact = false | |
| 1390 | for i = 0,.6,.2 do | |
| 1391 | wait(.001) | |
| 1392 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.4+i) | |
| 1393 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(150)),.4+i) | |
| 1394 | end | |
| 1395 | wait(.5) | |
| 1396 | PlaySnd(GunFlameSnd,chara) | |
| 1397 | PlaySnd(ExpSnd,chara) | |
| 1398 | PlaySnd(BulletGSnd,chara) | |
| 1399 | CasingDrop("Left")
| |
| 1400 | local hitpt = Instance.new("Part",game.Workspace)
| |
| 1401 | hitpt.Size = Vector3.new(1,1,1) | |
| 1402 | hitpt.Anchored = true | |
| 1403 | hitpt.CanCollide = false | |
| 1404 | hitpt.BrickColor = BrickColor.new("Bright yellow")
| |
| 1405 | hitpt.CFrame = BulletSpawn2.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
| 1406 | local hitb = Instance.new("Part",game.Workspace)
| |
| 1407 | hitb.Size = Vector3.new(1,1,1) | |
| 1408 | hitb.Anchored = true | |
| 1409 | hitb.CanCollide = false | |
| 1410 | hitb.BrickColor = BrickColor.new("Bright yellow")
| |
| 1411 | hitb.Material = "Neon" | |
| 1412 | hitb.CFrame = CFrame.new(hitpt.Position.x,hitpt.Position.y,hitpt.Position.z) * CFrame.fromEulerAnglesXYZ(math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30)),math.random(math.rad(-30),math.rad(30))) | |
| 1413 | local hitbm = Instance.new("SpecialMesh",hitb)
| |
| 1414 | hitbm.MeshType = "Sphere" | |
| 1415 | hitbm.Scale = Vector3.new(1,1,1) | |
| 1416 | local hitm = Instance.new("SpecialMesh",hitpt)
| |
| 1417 | hitm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 1418 | local hpt = coroutine.wrap(function() | |
| 1419 | for i = 1, 9 do | |
| 1420 | wait(.05) | |
| 1421 | hitpt.Transparency = hitpt.Transparency + .1 | |
| 1422 | hitm.Scale = hitm.Scale + Vector3.new(.5,.5,.5) | |
| 1423 | hitb.Transparency = hitb.Transparency + .1 | |
| 1424 | hitbm.Scale = hitbm.Scale + Vector3.new(.5,.5,.5) | |
| 1425 | end | |
| 1426 | hitpt:Destroy() | |
| 1427 | hitb:Destroy() | |
| 1428 | end) | |
| 1429 | hpt() | |
| 1430 | exed = false | |
| 1431 | weldd:Destroy() | |
| 1432 | ExHitbox(5,BulletSpawn2.Position,24,2,.1,50,50) | |
| 1433 | wait(1) | |
| 1434 | for i = 0,.6,.2 do | |
| 1435 | wait(.001) | |
| 1436 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1437 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(-60),math.rad(90)),.6-i) | |
| 1438 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-150)),.6-i) | |
| 1439 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1440 | end | |
| 1441 | elseif exed == false then | |
| 1442 | exeact = false | |
| 1443 | for i = 0,.6,.2 do | |
| 1444 | wait(.001) | |
| 1445 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1446 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1447 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1448 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1449 | end | |
| 1450 | end | |
| 1451 | chara.Humanoid.WalkSpeed = 24 | |
| 1452 | atkdd = true | |
| 1453 | del = false | |
| 1454 | end | |
| 1455 | ||
| 1456 | --Ray Overdrive-- | |
| 1457 | function RayOver() | |
| 1458 | del = true | |
| 1459 | atkd = true | |
| 1460 | chara.Humanoid.WalkSpeed = 0 | |
| 1461 | chatfunc("Ray Overdrive!")
| |
| 1462 | SuperPause() | |
| 1463 | for i = 0,.6,.2 do | |
| 1464 | wait(.001) | |
| 1465 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1466 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1467 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1468 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1469 | end | |
| 1470 | TC.C0 = TCF | |
| 1471 | HC.C0 = HCF | |
| 1472 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1473 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1474 | wait(.5) | |
| 1475 | GunFlameSnd.Pitch = .7 | |
| 1476 | for i = 0,.6,.2 do | |
| 1477 | wait(.001) | |
| 1478 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1479 | end | |
| 1480 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1481 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1482 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1483 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1484 | GunFlameSnd:Play() | |
| 1485 | BulletGSnd:Play() | |
| 1486 | CasingDrop("Left")
| |
| 1487 | Laser(Hitbox2,targetted.Head) | |
| 1488 | wait(.5) | |
| 1489 | for i = 0,.6,.2 do | |
| 1490 | wait(.001) | |
| 1491 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1492 | end | |
| 1493 | TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1494 | HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1495 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1496 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1497 | GunFlameSnd:Play() | |
| 1498 | BulletGSnd:Play() | |
| 1499 | CasingDrop("Right")
| |
| 1500 | Laser(Hitbox1,targetted.Head) | |
| 1501 | wait(.5) | |
| 1502 | for i = 0,.6,.2 do | |
| 1503 | wait(.001) | |
| 1504 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),TCF,.4+i) | |
| 1505 | end | |
| 1506 | TC.C0 = TCF | |
| 1507 | HC.C0 = HCF | |
| 1508 | local bfos = Instance.new("BodyVelocity",chara.Torso)
| |
| 1509 | bfos.P = 10000 | |
| 1510 | bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P) | |
| 1511 | bfos.Velocity = Vector3.new(0,600,0)+chara.HumanoidRootPart.CFrame.lookVector * -300 | |
| 1512 | for i = 0,.6,.2 do | |
| 1513 | wait(.001) | |
| 1514 | TC.C0 = clerp(TCF,(TCF + Vector3.new(0,1,0)),.4+i) | |
| 1515 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)),.4+i) | |
| 1516 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
| 1517 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),ILWF,.4+i) | |
| 1518 | end | |
| 1519 | SwingSnd:Play() | |
| 1520 | for i = 0,1,.25 do | |
| 1521 | wait(.001) | |
| 1522 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),i) | |
| 1523 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 1524 | LW.C0 = ILWF | |
| 1525 | end | |
| 1526 | PlaySnd(GunFlameSnd,chara) | |
| 1527 | PlaySnd(BulletGSnd,chara) | |
| 1528 | CasingDrop("Right")
| |
| 1529 | Laser(Hitbox1,targetted.Head) | |
| 1530 | PlaySnd(GunFlameSnd,chara) | |
| 1531 | PlaySnd(BulletGSnd,chara) | |
| 1532 | CasingDrop("Left")
| |
| 1533 | Laser(Hitbox2,targetted.Head) | |
| 1534 | bfos:Destroy() | |
| 1535 | GunFlameSnd.Pitch = 1 | |
| 1536 | for i = 0,1,.25 do | |
| 1537 | wait(.001) | |
| 1538 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),i) | |
| 1539 | RW.C0 = (RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) | |
| 1540 | LW.C0 = ILWF | |
| 1541 | end | |
| 1542 | for i = 0,1,.25 do | |
| 1543 | wait(.001) | |
| 1544 | TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(360),0,0),ITCF,i) | |
| 1545 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i) | |
| 1546 | RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),IRWF,i) | |
| 1547 | end | |
| 1548 | del = false | |
| 1549 | atkdd = true | |
| 1550 | chara.Humanoid.WalkSpeed = 24 | |
| 1551 | end | |
| 1552 | ||
| 1553 | --Minigun-- | |
| 1554 | function Minigun() | |
| 1555 | del = true | |
| 1556 | atkd = true | |
| 1557 | chatfunc("Summon Arsenal: Ferir Zero!")
| |
| 1558 | SuperPause() | |
| 1559 | for i = 0,.6,.2 do | |
| 1560 | wait(.001) | |
| 1561 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1562 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1563 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1564 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1565 | end | |
| 1566 | TC.C0 = TCF | |
| 1567 | HC.C0 = HCF | |
| 1568 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1569 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1570 | for a = .1,1,.1 do | |
| 1571 | local gch1 = Gun1:GetChildren() | |
| 1572 | local gch2 = Gun2:GetChildren() | |
| 1573 | wait(.001) | |
| 1574 | for i = 1, #gch1 do | |
| 1575 | if gch1[i] ~= Handle1 and gch1[i] ~= Hitbox1 then | |
| 1576 | gch1[i].Transparency = a | |
| 1577 | end | |
| 1578 | end | |
| 1579 | for i = 1, #gch2 do | |
| 1580 | if gch2[i] ~= Handle2 and gch2[i] ~= Hitbox2 then | |
| 1581 | gch2[i].Transparency = a | |
| 1582 | end | |
| 1583 | end | |
| 1584 | end | |
| 1585 | for i = 0,.6,.2 do | |
| 1586 | wait(.001) | |
| 1587 | TC.C0 = clerp(TCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1588 | HC.C0 = clerp(HCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1589 | RW.C0 = clerp((RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
| 1590 | LW.C0 = clerp((LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),LWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),.4+i) | |
| 1591 | end | |
| 1592 | RW.C0 = RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0) | |
| 1593 | local Minigun = New("Part",chara,"Minigun",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 8, 2),CFrame = CFrame.new(26.999979, 1.6000222, 45.0999527, 1.81951127e-05, 1, -1.16825559e-05, 2.54704446e-06, 1.16825104e-05, 1, 1, -1.81952728e-05, -2.54687802e-06),})
| |
| 1594 | local Mesh = New("SpecialMesh",Minigun,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset?id=71947307",TextureId = "http://www.roblox.com/asset?id=71947249",MeshType = Enum.MeshType.FileMesh,})
| |
| 1595 | local Weld = New("ManualWeld",Minigun,"Weld",{Part0 = Minigun,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, 1.81951127e-05, 2.54704446e-06, 1, 1, 1.16825104e-05, -1.81952728e-05, -1.16825559e-05, 1, -2.54687802e-06),C1 = CFrame.new(-3.49995232, -1.06061363, 0.35357666, -1, 0, 0, 0, 0.707106829, -0.707106829, 0, -0.707106829, -0.707106829),})
| |
| 1596 | for i = .1,1,.1 do | |
| 1597 | wait(.001) | |
| 1598 | Minigun.Transparency = 1 - i | |
| 1599 | end | |
| 1600 | for i = 1, 20 do | |
| 1601 | wait(.001) | |
| 1602 | PlaySnd(MinigunSnd,chara) | |
| 1603 | local Targ = targetted.Head | |
| 1604 | local Partt = Minigun | |
| 1605 | local EffectPart = Instance.new("Part",game.Workspace)
| |
| 1606 | EffectPart.Size = Vector3.new(1,1,1) | |
| 1607 | EffectPart.Anchored = true | |
| 1608 | EffectPart.BrickColor = BrickColor.new("Bright yellow")
| |
| 1609 | EffectPart.Material = "Neon" | |
| 1610 | EffectPart.Position = Targ.Position | |
| 1611 | EffectPart.CFrame = CFrame.new(Targ.Position.x,Targ.Position.y,Targ.Position.z) | |
| 1612 | local mehs1 = Instance.new("SpecialMesh",EffectPart)
| |
| 1613 | mehs1.MeshType = "Sphere" | |
| 1614 | mehs1.Scale = Vector3.new(.1,.1,.1) | |
| 1615 | local P = Instance.new("Part")
| |
| 1616 | local Place0 = Partt.CFrame + Partt.CFrame.upVector*4 | |
| 1617 | local Place1 = EffectPart.CFrame | |
| 1618 | local meshla = Instance.new("BlockMesh", P)
| |
| 1619 | meshla.Scale = Vector3.new(.1,.1,1) | |
| 1620 | P.formFactor = 0 | |
| 1621 | P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude) | |
| 1622 | P.Name = "Laser" | |
| 1623 | P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p) | |
| 1624 | P.Parent = game.Workspace | |
| 1625 | P.BrickColor = BrickColor.new("Bright yellow")
| |
| 1626 | P.Material = "Neon" | |
| 1627 | P.Anchored = true | |
| 1628 | P.CanCollide = false | |
| 1629 | P.Locked = true | |
| 1630 | P.BottomSurface = "Smooth" | |
| 1631 | P.TopSurface = "Smooth" | |
| 1632 | ExHitbox(3,Place1.p,3,1,.05,10,2) | |
| 1633 | local fu = coroutine.wrap(function() | |
| 1634 | for i = 1, 10 do | |
| 1635 | wait(.001) | |
| 1636 | mehs1.Scale = mehs1.Scale + Vector3.new(.1,.1,.1) | |
| 1637 | meshla.Scale = meshla.Scale + Vector3.new(.05,.05,0) | |
| 1638 | EffectPart.Transparency = EffectPart.Transparency + .1 | |
| 1639 | P.Transparency = P.Transparency + .1 | |
| 1640 | end | |
| 1641 | ---- | |
| 1642 | P:Destroy() | |
| 1643 | EffectPart:Destroy() | |
| 1644 | end) | |
| 1645 | fu() | |
| 1646 | end | |
| 1647 | MiniStopSnd:Play() | |
| 1648 | wait(.5) | |
| 1649 | for i = .1,1,.1 do | |
| 1650 | wait(.001) | |
| 1651 | Minigun.Transparency = i | |
| 1652 | end | |
| 1653 | Minigun:Destroy() | |
| 1654 | for i = 0,.6,.2 do | |
| 1655 | wait(.001) | |
| 1656 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),ITCF,.4+i) | |
| 1657 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),IHCF,.4+i) | |
| 1658 | RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),IRWF,.4+i) | |
| 1659 | LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0),ILWF,.4+i) | |
| 1660 | end | |
| 1661 | for a = .1,1,.1 do | |
| 1662 | local gch1 = Gun1:GetChildren() | |
| 1663 | local gch2 = Gun2:GetChildren() | |
| 1664 | wait(.001) | |
| 1665 | for i = 1, #gch1 do | |
| 1666 | if gch1[i] ~= Handle1 and gch1[i] ~= Hitbox1 then | |
| 1667 | gch1[i].Transparency = 1-a | |
| 1668 | end | |
| 1669 | end | |
| 1670 | for i = 1, #gch2 do | |
| 1671 | if gch2[i] ~= Handle2 and gch2[i] ~= Hitbox2 then | |
| 1672 | gch2[i].Transparency = 1-a | |
| 1673 | end | |
| 1674 | end | |
| 1675 | end | |
| 1676 | atkdd = true | |
| 1677 | del = false | |
| 1678 | end | |
| 1679 | ||
| 1680 | function RocketBlast() | |
| 1681 | del = true | |
| 1682 | atkd = true | |
| 1683 | chatfunc("Rocket Barrage!")
| |
| 1684 | SuperPause() | |
| 1685 | for i = 0,.6,.2 do | |
| 1686 | wait(.001) | |
| 1687 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1688 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1689 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i) | |
| 1690 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i) | |
| 1691 | end | |
| 1692 | TC.C0 = TCF | |
| 1693 | HC.C0 = HCF | |
| 1694 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1695 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1696 | local bpos = Instance.new("BodyPosition",chara.Torso)
| |
| 1697 | bpos.Position = chara.Torso.Position + Vector3.new(0,20,0) | |
| 1698 | bpos.MaxForce = Vector3.new(10000,10000,10000) | |
| 1699 | wait(1) | |
| 1700 | for i = 1,3 do | |
| 1701 | RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)) | |
| 1702 | LW.C0 = (LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)) | |
| 1703 | MissileSnd:Play() | |
| 1704 | local missile = Instance.new("Part",game.Workspace)
| |
| 1705 | missile.Size = Vector3.new(0,0,1.2) | |
| 1706 | missile.Name = "Blast" | |
| 1707 | missile.TopSurface = 0 | |
| 1708 | missile.BottomSurface = 0 | |
| 1709 | missile.Position = BulletSpawn1.Position | |
| 1710 | missile.CFrame = BulletSpawn1.CFrame | |
| 1711 | missile.Velocity = BulletSpawn1.CFrame.lookVector*100 | |
| 1712 | missile.CFrame = CFrame.new(BulletSpawn1.Position,BulletSpawn1.Position + BulletSpawn1.CFrame.upVector*2) | |
| 1713 | local p1mit = Instance.new("ParticleEmitter",missile)
| |
| 1714 | p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 1715 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)})
| |
| 1716 | p1mit.LightEmission = 1 | |
| 1717 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1718 | p1mit.Lifetime = NumberRange.new(1) | |
| 1719 | p1mit.Rate = 10000 | |
| 1720 | p1mit.Rotation = NumberRange.new(0,359) | |
| 1721 | p1mit.RotSpeed = NumberRange.new(100) | |
| 1722 | p1mit.Speed = NumberRange.new(0) | |
| 1723 | local mesh1 = Instance.new("SpecialMesh",missile)
| |
| 1724 | mesh1.MeshId = "http://www.roblox.com/asset/?id=111879014" | |
| 1725 | mesh1.TextureId = "http://www.roblox.com/asset/?id=111878985" | |
| 1726 | mesh1.Scale = Vector3.new(1.2,1.2,1.2) | |
| 1727 | local force = Instance.new("BodyForce")
| |
| 1728 | force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1729 | force.Parent = missile | |
| 1730 | local bf = Instance.new("BodyVelocity",missile)
| |
| 1731 | bf.P = 10000 | |
| 1732 | bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P) | |
| 1733 | bf.Velocity = BulletSpawn1.CFrame.upVector*100 | |
| 1734 | local gy = Instance.new("BodyGyro",missile)
| |
| 1735 | gy.MaxTorque = Vector3.new(0,0,0) | |
| 1736 | local chase = coroutine.wrap(function() | |
| 1737 | wait(.3) | |
| 1738 | while wait() do | |
| 1739 | if targetted ~= nil then | |
| 1740 | local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 1741 | bf.Velocity = (torsy.Position - missile.Position).unit*100 | |
| 1742 | gy.CFrame = CFrame.new(missile.Position, targetted.Head.Position) | |
| 1743 | gy.maxTorque = Vector3.new(9000,9000,9000) | |
| 1744 | end | |
| 1745 | end | |
| 1746 | end) | |
| 1747 | chase() | |
| 1748 | missile.Touched:connect(function(hit) | |
| 1749 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile.Anchored == false) then | |
| 1750 | missile.Anchored = true | |
| 1751 | PlaySnd(ExpSnd,missile) | |
| 1752 | p1mit.Enabled = false | |
| 1753 | mesh1.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
| 1754 | mesh1.TextureId = "http://www.roblox.com/asset/?id=3126553" | |
| 1755 | ExHitbox(8,missile.Position,15,3,.05,30,50) | |
| 1756 | wait(0.1) | |
| 1757 | missile.Transparency = .25 | |
| 1758 | missile.Mesh.Scale = Vector3.new(2,2,2) | |
| 1759 | wait(0.1) | |
| 1760 | missile.Transparency = .5 | |
| 1761 | missile.Mesh.Scale = Vector3.new(4,4,4) | |
| 1762 | wait(0.1) | |
| 1763 | missile.Transparency = .75 | |
| 1764 | missile.Mesh.Scale = Vector3.new(6,6,6) | |
| 1765 | wait(0.1) | |
| 1766 | missile:Destroy() | |
| 1767 | end | |
| 1768 | end) | |
| 1769 | wait(.1) | |
| 1770 | debby:AddItem(missile,10) | |
| 1771 | MissileSnd:Play() | |
| 1772 | local missile2 = Instance.new("Part",game.Workspace)
| |
| 1773 | missile2.Size = Vector3.new(0,0,1.2) | |
| 1774 | missile2.Name = "Blast" | |
| 1775 | missile2.TopSurface = 0 | |
| 1776 | missile2.BottomSurface = 0 | |
| 1777 | missile2.Position = BulletSpawn2.Position | |
| 1778 | missile2.CFrame = BulletSpawn2.CFrame | |
| 1779 | missile2.Velocity = BulletSpawn2.CFrame.lookVector*100 | |
| 1780 | missile2.CFrame = CFrame.new(BulletSpawn2.Position,BulletSpawn2.Position + BulletSpawn2.CFrame.upVector*2) | |
| 1781 | local p2mit = Instance.new("ParticleEmitter",missile2)
| |
| 1782 | p2mit.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
| 1783 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Bright orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Bright yellow").Color)})
| |
| 1784 | p2mit.LightEmission = 1 | |
| 1785 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 1786 | p2mit.Lifetime = NumberRange.new(1) | |
| 1787 | p2mit.Rate = 10000 | |
| 1788 | p2mit.Rotation = NumberRange.new(0,359) | |
| 1789 | p2mit.RotSpeed = NumberRange.new(100) | |
| 1790 | p2mit.Speed = NumberRange.new(0) | |
| 1791 | local mesh2 = Instance.new("SpecialMesh",missile2)
| |
| 1792 | mesh2.MeshId = "http://www.roblox.com/asset/?id=111879014" | |
| 1793 | mesh2.TextureId = "http://www.roblox.com/asset/?id=111878985" | |
| 1794 | mesh2.Scale = Vector3.new(1.2,1.2,1.2) | |
| 1795 | local force2 = Instance.new("BodyForce")
| |
| 1796 | force2.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0) | |
| 1797 | force2.Parent = missile2 | |
| 1798 | local bf2 = Instance.new("BodyVelocity",missile2)
| |
| 1799 | bf2.P = 10000 | |
| 1800 | bf2.MaxForce = Vector3.new(bf2.P,bf2.P,bf2.P) | |
| 1801 | bf2.Velocity = BulletSpawn2.CFrame.upVector*100 | |
| 1802 | local gy2 = Instance.new("BodyGyro",missile2)
| |
| 1803 | gy2.MaxTorque = Vector3.new(0,0,0) | |
| 1804 | local chase2 = coroutine.wrap(function() | |
| 1805 | wait(.3) | |
| 1806 | while wait() do | |
| 1807 | if targetted ~= nil then | |
| 1808 | local torsy = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 1809 | bf2.Velocity = (torsy.Position - missile2.Position).unit*100 | |
| 1810 | gy2.CFrame = CFrame.new(missile2.Position, targetted.Head.Position) | |
| 1811 | gy2.maxTorque = Vector3.new(9000,9000,9000) | |
| 1812 | end | |
| 1813 | end | |
| 1814 | end) | |
| 1815 | chase2() | |
| 1816 | missile2.Touched:connect(function(hit) | |
| 1817 | if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and missile2.Anchored == false) then | |
| 1818 | missile2.Anchored = true | |
| 1819 | PlaySnd(ExpSnd,missile2) | |
| 1820 | p2mit.Enabled = false | |
| 1821 | mesh2.MeshId = "http://www.roblox.com/asset/?id=1290033" | |
| 1822 | mesh2.TextureId = "http://www.roblox.com/asset/?id=3126553" | |
| 1823 | ExHitbox(8,missile2.Position,15,3,.05,30,50) | |
| 1824 | wait(0.1) | |
| 1825 | missile2.Transparency = .25 | |
| 1826 | missile2.Mesh.Scale = Vector3.new(2,2,2) | |
| 1827 | wait(0.1) | |
| 1828 | missile2.Transparency = .5 | |
| 1829 | missile2.Mesh.Scale = Vector3.new(4,4,4) | |
| 1830 | wait(0.1) | |
| 1831 | missile2.Transparency = .75 | |
| 1832 | missile2.Mesh.Scale = Vector3.new(6,6,6) | |
| 1833 | wait(0.1) | |
| 1834 | missile2:Destroy() | |
| 1835 | end | |
| 1836 | end) | |
| 1837 | debby:AddItem(missile2,10) | |
| 1838 | wait(.1) | |
| 1839 | end | |
| 1840 | for i = 0,.6,.2 do | |
| 1841 | wait(.001) | |
| 1842 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 1843 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 1844 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i) | |
| 1845 | LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i) | |
| 1846 | end | |
| 1847 | bpos:Destroy() | |
| 1848 | atkdd = true | |
| 1849 | del = false | |
| 1850 | end | |
| 1851 | ||
| 1852 | --Lock On-- | |
| 1853 | function LockOn() | |
| 1854 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
| |
| 1855 | TargetSelect(Mouse.Target.Parent) | |
| 1856 | TargetSnd:Play() | |
| 1857 | wait(.05) | |
| 1858 | TargetSnd:Play() | |
| 1859 | else end | |
| 1860 | end | |
| 1861 | ||
| 1862 | --Block-- | |
| 1863 | blockval = false | |
| 1864 | healthlock = 0 | |
| 1865 | effeff = nil | |
| 1866 | function ToggleBlock() | |
| 1867 | if blockval == false then | |
| 1868 | del = true | |
| 1869 | blockval = true | |
| 1870 | SwingSnd:Play() | |
| 1871 | healthlock = chara.Humanoid.Health | |
| 1872 | effeff = Instance.new("ForceField",chara)
| |
| 1873 | effeff.Name = "FawsFeeld" | |
| 1874 | effeff.Visible = false | |
| 1875 | for i = 0,.75,.25 do | |
| 1876 | wait(.0001) | |
| 1877 | TC.C0 = clerp(ITCF,TCF,.4+i) | |
| 1878 | HC.C0 = clerp(IHCF,HCF,.4+i) | |
| 1879 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
| 1880 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.4+i) | |
| 1881 | end | |
| 1882 | elseif blockval == true then | |
| 1883 | SwingSnd:Play() | |
| 1884 | effeff:Destroy() | |
| 1885 | blockval = false | |
| 1886 | for i = 0,.6,.2 do | |
| 1887 | wait(.0001) | |
| 1888 | TC.C0 = clerp(ITCF,TCF,.6-i) | |
| 1889 | HC.C0 = clerp(IHCF,HCF,.6-i) | |
| 1890 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(-.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
| 1891 | RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1,-.5)) * CFrame.fromEulerAnglesXYZ(math.rad(180),0,0),.6-i) | |
| 1892 | end | |
| 1893 | del = false | |
| 1894 | atkdd = true | |
| 1895 | end | |
| 1896 | end | |
| 1897 | ||
| 1898 | --Mouse Functions-- | |
| 1899 | orbpushactive = false | |
| 1900 | del = false | |
| 1901 | input = "" | |
| 1902 | letterd = 0 | |
| 1903 | ltoim = 0 | |
| 1904 | function onKeyDown(key) | |
| 1905 | if key == "e" then | |
| 1906 | ToggleBlock() | |
| 1907 | elseif del == false then | |
| 1908 | if key == "q" then | |
| 1909 | if input == "sd" and targetted ~= nil then | |
| 1910 | ABlast() | |
| 1911 | elseif input == "dsas" and targetted ~= nil then | |
| 1912 | RayOver() | |
| 1913 | elseif input == "ssdd" and targetted ~= nil then | |
| 1914 | Minigun() | |
| 1915 | elseif input == "dasd" and targetted ~= nil then | |
| 1916 | RocketBlast() | |
| 1917 | elseif input == "ss" then | |
| 1918 | BackEx() | |
| 1919 | elseif input == "add" then | |
| 1920 | GrabMove() | |
| 1921 | else LockOn() end | |
| 1922 | input = "" | |
| 1923 | letterd = 0 | |
| 1924 | ltoim = 0 | |
| 1925 | elseif key == "z" then | |
| 1926 | Punch() | |
| 1927 | input = "" | |
| 1928 | letterd = 0 | |
| 1929 | ltoim = 0 | |
| 1930 | elseif key == "x" then | |
| 1931 | if input == "sa" then | |
| 1932 | BanditRevolver() | |
| 1933 | elseif input == "ss" then | |
| 1934 | FlipKick() | |
| 1935 | else KickAtk() end | |
| 1936 | input = "" | |
| 1937 | letterd = 0 | |
| 1938 | ltoim = 0 | |
| 1939 | elseif key == "c" then | |
| 1940 | if input == "dsd" then | |
| 1941 | Decapitator() | |
| 1942 | else ExplodPunch() end | |
| 1943 | input = "" | |
| 1944 | letterd = 0 | |
| 1945 | ltoim = 0 | |
| 1946 | elseif (key == "w" or key == "a" or key == "s" or key == "d") then | |
| 1947 | input=input..key | |
| 1948 | print(input) | |
| 1949 | letterd = letterd + 1 | |
| 1950 | ltoim = ltoim + 10 | |
| 1951 | if letterd > 5 then | |
| 1952 | input = "" | |
| 1953 | letterd = 0 | |
| 1954 | ltoim = 0 | |
| 1955 | end | |
| 1956 | elseif key == "m" then | |
| 1957 | if Music.IsPlaying == true then | |
| 1958 | Music:Stop() | |
| 1959 | elseif Music.IsPlaying == false then | |
| 1960 | Music:Play() | |
| 1961 | end | |
| 1962 | end | |
| 1963 | end | |
| 1964 | end | |
| 1965 | combo = 0 | |
| 1966 | ||
| 1967 | --Mouse Activation-- | |
| 1968 | if Mouse then | |
| 1969 | Mouse.KeyDown:connect(onKeyDown) | |
| 1970 | end | |
| 1971 | ||
| 1972 | --Loop Function-- | |
| 1973 | walking = false | |
| 1974 | toim = 0 | |
| 1975 | while true do | |
| 1976 | wait() | |
| 1977 | toim = toim + .1 | |
| 1978 | ltoim = ltoim - 1 | |
| 1979 | if ltoim < 1 then | |
| 1980 | input = "" | |
| 1981 | end | |
| 1982 | if blockval == true then | |
| 1983 | chara.Humanoid.Health = healthlock | |
| 1984 | end | |
| 1985 | if atkd == true then | |
| 1986 | TC.C0 = TCF | |
| 1987 | HC.C0 = HCF | |
| 1988 | RW.C0 = RWF | |
| 1989 | LW.C0 = LWF | |
| 1990 | atkd = false | |
| 1991 | end | |
| 1992 | if atkdd == true then | |
| 1993 | TC.C0 = ITCF | |
| 1994 | HC.C0 = IHCF | |
| 1995 | RW.C0 = IRWF | |
| 1996 | LW.C0 = ILWF | |
| 1997 | atkdd = false | |
| 1998 | end | |
| 1999 | torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 2000 | if torvel < 1 and walking == true and del == false and atkd == false then | |
| 2001 | for i = 0,1,.5 do | |
| 2002 | wait(.001) | |
| 2003 | if del == false then | |
| 2004 | TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),ITCF,i) | |
| 2005 | HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),IHCF,i) | |
| 2006 | RW.C0 = IRWF | |
| 2007 | LW.C0 = clerp((LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,i) | |
| 2008 | end | |
| 2009 | end | |
| 2010 | walking = false | |
| 2011 | elseif torvel > 1 and walking == false and del == false and atkd == false then | |
| 2012 | for i = 0,1,.5 do | |
| 2013 | wait(.001) | |
| 2014 | if del == false then | |
| 2015 | TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i) | |
| 2016 | HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),i) | |
| 2017 | RW.C0 = IRWF | |
| 2018 | LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),i) | |
| 2019 | end | |
| 2020 | end | |
| 2021 | walking = true | |
| 2022 | else | |
| 2023 | end | |
| 2024 | imgl.Rotation = imgl.Rotation + 3 | |
| 2025 | if targetted ~= nil then | |
| 2026 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 2027 | crosshair.Enabled = true | |
| 2028 | elseif targetted == nil then | |
| 2029 | crosshair.Adornee = nil | |
| 2030 | crosshair.Enabled = false | |
| 2031 | end | |
| 2032 | end |