SHOW:
|
|
- or go back to the newest paste.
| 1 | CV="White" | |
| 2 | -- This script has been converted to FE by iPxter | |
| 3 | ||
| 4 | ||
| 5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 6 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 7 | do | |
| 8 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 9 | script.Parent = Player.Character | |
| 10 | ||
| 11 | --RemoteEvent for communicating | |
| 12 | local Event = Instance.new("RemoteEvent")
| |
| 13 | Event.Name = "UserInput_Event" | |
| 14 | ||
| 15 | --Fake event to make stuff like Mouse.KeyDown work | |
| 16 | local function fakeEvent() | |
| 17 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 18 | t.connect = t.Connect | |
| 19 | return t | |
| 20 | end | |
| 21 | ||
| 22 | --Creating fake input objects with fake variables | |
| 23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 27 | end} | |
| 28 | --Merged 2 functions into one by checking amount of arguments | |
| 29 | CAS.UnbindAction = CAS.BindAction | |
| 30 | ||
| 31 | --This function will trigger the events that have been :Connect()'ed | |
| 32 | local function te(self,ev,...) | |
| 33 | local t = m[ev] | |
| 34 | if t and t._fakeEvent and t.Function then | |
| 35 | t.Function(...) | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=Player then return end | |
| 43 | if io.isMouse then | |
| 44 | m.Target = io.Target | |
| 45 | m.Hit = io.Hit | |
| 46 | else | |
| 47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 50 | end | |
| 51 | for _,t in pairs(CAS.Actions) do | |
| 52 | for _,k in pairs(t.Keys) do | |
| 53 | if k==io.KeyCode then | |
| 54 | t.Function(t.Name,io.UserInputState,io) | |
| 55 | end | |
| 56 | end | |
| 57 | end | |
| 58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 60 | end | |
| 61 | end) | |
| 62 | Event.Parent = NLS([==[ | |
| 63 | local Player = game:GetService("Players").LocalPlayer
| |
| 64 | local Event = script:WaitForChild("UserInput_Event")
| |
| 65 | ||
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | - | local Mouse = Player:GetMouse() |
| 75 | + | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | p = owner | |
| 88 | - | p = Game.Players.LocalPlayer |
| 88 | + | |
| 89 | local txt = Instance.new("BillboardGui", char)
| |
| 90 | txt.Adornee = char .Head | |
| 91 | txt.Name = "_status" | |
| 92 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 93 | txt.StudsOffset = Vector3.new(-9, 6, 0) | |
| 94 | local text = Instance.new("TextLabel", txt)
| |
| 95 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 96 | text.FontSize = "Size24" | |
| 97 | text.TextScaled = true | |
| 98 | text.TextTransparency = 0 | |
| 99 | text.BackgroundTransparency = 1 | |
| 100 | text.TextTransparency = 0 | |
| 101 | text.TextStrokeTransparency = 1 | |
| 102 | text.Font = "Code" | |
| 103 | text.TextStrokeColor3 = Color3.new(40,0,0) | |
| 104 | ||
| 105 | v=Instance.new("Part")
| |
| 106 | v.Name = "ColorBrick" | |
| 107 | v.Parent=p.Character | |
| 108 | v.FormFactor="Symmetric" | |
| 109 | v.Anchored=true | |
| 110 | v.CanCollide=false | |
| 111 | v.BottomSurface="Smooth" | |
| 112 | v.TopSurface="Smooth" | |
| 113 | v.Size=Vector3.new(10,5,3) | |
| 114 | v.Transparency=1 | |
| 115 | v.CFrame=char.Torso.CFrame | |
| 116 | v.BrickColor=BrickColor.new(CV) | |
| 117 | v.Transparency=1 | |
| 118 | text.TextColor3 = Color3.fromRGB(255,140,0) | |
| 119 | v.Shape="Block" | |
| 120 | text.Text = "Nine Tailed Fox Heavy Unit" | |
| 121 | coroutine.wrap(function() | |
| 122 | while wait() do | |
| 123 | wait(3) | |
| 124 | text.Text = "Kill" | |
| 125 | wait() | |
| 126 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
| 127 | wait(2) | |
| 128 | local str = "" | |
| 129 | for i = 1, math.random(3,25) do | |
| 130 | str = str..string.char(math.random(65,122)) | |
| 131 | end | |
| 132 | text.Text = str | |
| 133 | wait() | |
| 134 | str = "" | |
| 135 | for i = 1, math.random(12,25) do | |
| 136 | str = str..string.char(math.random(48,122)) | |
| 137 | end | |
| 138 | wait() | |
| 139 | text.Text = str | |
| 140 | wait() | |
| 141 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
| 142 | wait(1) | |
| 143 | text.Text = "THE PAIN" | |
| 144 | wait() | |
| 145 | text.Text = "What do you want?" | |
| 146 | wait() | |
| 147 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
| 148 | wait(2) | |
| 149 | text.Text = "You made me do this."; | |
| 150 | wait() | |
| 151 | text.Text = "Kill"; | |
| 152 | wait() | |
| 153 | for i = 1, math.random(12,25) do | |
| 154 | str = str..string.char(math.random(48,57)) | |
| 155 | end | |
| 156 | text.Text = str | |
| 157 | wait() | |
| 158 | text.Text = "Nine Tailed Fox Heavy Unit"; | |
| 159 | wait(2) | |
| 160 | end | |
| 161 | end)() | |
| 162 | local Player = owner | |
| 163 | local Character = Player.Character | |
| 164 | local Torso = Character.Torso | |
| 165 | local hum = Character.Humanoid | |
| 166 | hum.MaxHealth = 1000 | |
| 167 | wait(0.1) | |
| 168 | hum.Health = 1000 | |
| 169 | ||
| 170 | local Music = Instance.new("Sound")
| |
| 171 | ||
| 172 | Music.Name = "Sound" | |
| 173 | Music.SoundId = "http://roblox.com/asset/?id=714974960" | |
| 174 | Music.Volume = 4 | |
| 175 | Music.Looped = false | |
| 176 | Music.Parent = Character | |
| 177 | Music:play() | |
| 178 | ||
| 179 | GasMask = true | |
| 180 | ||
| 181 | if GasMask == true then | |
| 182 | o1 = Instance.new("Model")
| |
| 183 | o2 = Instance.new("Part")
| |
| 184 | o3 = Instance.new("SpecialMesh")
| |
| 185 | o4 = Instance.new("Part")
| |
| 186 | o5 = Instance.new("Part")
| |
| 187 | o6 = Instance.new("Part")
| |
| 188 | o7 = Instance.new("SpecialMesh")
| |
| 189 | o8 = Instance.new("Part")
| |
| 190 | o9 = Instance.new("Part")
| |
| 191 | o10 = Instance.new("SpecialMesh")
| |
| 192 | o11 = Instance.new("Part")
| |
| 193 | o12 = Instance.new("Part")
| |
| 194 | o13 = Instance.new("SpecialMesh")
| |
| 195 | o14 = Instance.new("Part")
| |
| 196 | o15 = Instance.new("Part")
| |
| 197 | o16 = Instance.new("Part")
| |
| 198 | o17 = Instance.new("Part")
| |
| 199 | o1.Name = "MODEL" | |
| 200 | o2.Name = "Middle" | |
| 201 | o2.Parent = o1 | |
| 202 | o2.BrickColor = BrickColor.new("Pastel brown")
| |
| 203 | o2.Transparency = 1 | |
| 204 | o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117) | |
| 205 | o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414) | |
| 206 | o2.Anchored = true | |
| 207 | o2.FormFactor = Enum.FormFactor.Custom | |
| 208 | o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
| 209 | o2.CFrame = CFrame.new(-13.5356159, 3.71991396, 50.2649117, 1.75646369e-006, 1.74156298e-007, -0.999991417, -1.04150445e-007, 1, 1.60883403e-007, 0.999999762, 9.62157287e-008, 1.6223396e-006) | |
| 210 | o2.BottomSurface = Enum.SurfaceType.Smooth | |
| 211 | o2.TopSurface = Enum.SurfaceType.Smooth | |
| 212 | o2.Color = Color3.new(1, 0.8, 0.6) | |
| 213 | o3.Parent = o2 | |
| 214 | o3.Scale = Vector3.new(6.25, 6.25, 6.25) | |
| 215 | o3.MeshType = Enum.MeshType.FileMesh | |
| 216 | o4.Name = "Lense 1" | |
| 217 | o4.Parent = o1 | |
| 218 | o4.Material = Enum.Material.Metal | |
| 219 | o4.Transparency = 0.050000011920929 | |
| 220 | o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605) | |
| 221 | o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985) | |
| 222 | o4.Anchored = true | |
| 223 | o4.CanCollide = false | |
| 224 | o4.FormFactor = Enum.FormFactor.Custom | |
| 225 | o4.Shape = Enum.PartType.Cylinder | |
| 226 | o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998) | |
| 227 | o4.CFrame = CFrame.new(-12.900528, 3.77991295, 50.5080605, -0.935553849, 3.06141374e-007, 0.353159934, 3.19927466e-007, 1, 2.01617603e-008, -0.353163034, 1.1997561e-007, -0.935561478) | |
| 228 | o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 229 | o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 230 | o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 231 | o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 232 | o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 233 | o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 234 | o5.Name = "Lense2" | |
| 235 | o5.Parent = o1 | |
| 236 | o5.Material = Enum.Material.Metal | |
| 237 | o5.Transparency = 0.050000011920929 | |
| 238 | o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277) | |
| 239 | o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985) | |
| 240 | o5.Anchored = true | |
| 241 | o5.CanCollide = false | |
| 242 | o5.FormFactor = Enum.FormFactor.Custom | |
| 243 | o5.Shape = Enum.PartType.Cylinder | |
| 244 | o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001) | |
| 245 | o5.CFrame = CFrame.new(-12.8961124, 3.77492094, 50.0302277, -0.914722979, 2.85652249e-007, -0.404061079, 2.36339361e-007, 1, 1.37493373e-007, 0.404064298, 2.15865228e-008, -0.914730668) | |
| 246 | o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 247 | o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 248 | o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 249 | o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 250 | o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 251 | o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 252 | o6.Name = "Handle" | |
| 253 | o6.Parent = o1 | |
| 254 | o6.Material = Enum.Material.Metal | |
| 255 | o6.BrickColor = BrickColor.new("Really black")
| |
| 256 | o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869) | |
| 257 | o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008) | |
| 258 | o6.Anchored = true | |
| 259 | o6.CanCollide = false | |
| 260 | o6.FormFactor = Enum.FormFactor.Plate | |
| 261 | o6.Size = Vector3.new(1, 0.400000006, 1) | |
| 262 | o6.CFrame = CFrame.new(-12.8799381, 3.69992495, 50.2599869, 1.75646369e-006, 0.999991417, 1.74156298e-007, -1.04150445e-007, -1.60883403e-007, 1, 0.999999762, -1.6223396e-006, 9.62157287e-008) | |
| 263 | o6.BottomSurface = Enum.SurfaceType.Weld | |
| 264 | o6.TopSurface = Enum.SurfaceType.Smooth | |
| 265 | o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 266 | o7.Parent = o6 | |
| 267 | o7.MeshId = "http://www.roblox.com/asset/?id=5158270" | |
| 268 | o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001) | |
| 269 | o7.MeshType = Enum.MeshType.FileMesh | |
| 270 | o8.Name = "Straps" | |
| 271 | o8.Parent = o1 | |
| 272 | o8.Material = Enum.Material.Fabric | |
| 273 | o8.BrickColor = BrickColor.new("Really black")
| |
| 274 | o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869) | |
| 275 | o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924) | |
| 276 | o8.Anchored = true | |
| 277 | o8.CanCollide = false | |
| 278 | o8.FormFactor = Enum.FormFactor.Custom | |
| 279 | o8.Shape = Enum.PartType.Cylinder | |
| 280 | o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999) | |
| 281 | o8.CFrame = CFrame.new(-13.5199518, 3.48991394, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762) | |
| 282 | o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 283 | o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 284 | o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 285 | o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 286 | o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 287 | o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 288 | o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 289 | o9.Name = "Ring2" | |
| 290 | o9.Parent = o1 | |
| 291 | o9.BrickColor = BrickColor.new("Dark stone grey")
| |
| 292 | o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477) | |
| 293 | o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005) | |
| 294 | o9.Anchored = true | |
| 295 | o9.CanCollide = false | |
| 296 | o9.FormFactor = Enum.FormFactor.Custom | |
| 297 | o9.Size = Vector3.new(0.600000024, 0.200000003, 1) | |
| 298 | o9.CFrame = CFrame.new(-12.8061161, 3.77991295, 49.9993477, 0.404059976, 1.74156298e-007, -0.914723039, -1.6136562e-007, 1, 1.0455733e-007, 0.914730787, 9.62157287e-008, 0.404063195) | |
| 299 | o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 300 | o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 301 | o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 302 | o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 303 | o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 304 | o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 305 | o9.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
| 306 | o10.Parent = o9 | |
| 307 | o10.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 308 | o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012) | |
| 309 | o10.MeshType = Enum.MeshType.FileMesh | |
| 310 | o11.Name = "Straps" | |
| 311 | o11.Parent = o1 | |
| 312 | o11.Material = Enum.Material.Fabric | |
| 313 | o11.BrickColor = BrickColor.new("Really black")
| |
| 314 | o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869) | |
| 315 | o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924) | |
| 316 | o11.Anchored = true | |
| 317 | o11.CanCollide = false | |
| 318 | o11.FormFactor = Enum.FormFactor.Custom | |
| 319 | o11.Shape = Enum.PartType.Cylinder | |
| 320 | o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999) | |
| 321 | o11.CFrame = CFrame.new(-13.5199518, 4.00991392, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762) | |
| 322 | o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 323 | o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 324 | o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 325 | o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 326 | o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 327 | o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 328 | o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 329 | o12.Name = "Ring1" | |
| 330 | o12.Parent = o1 | |
| 331 | o12.BrickColor = BrickColor.new("Dark stone grey")
| |
| 332 | o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988) | |
| 333 | o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985) | |
| 334 | o12.Anchored = true | |
| 335 | o12.CanCollide = false | |
| 336 | o12.FormFactor = Enum.FormFactor.Custom | |
| 337 | o12.Size = Vector3.new(0.600000024, 0.200000003, 1) | |
| 338 | o12.CFrame = CFrame.new(-12.7999144, 3.76992106, 50.5299988, -0.353160918, 1.74156298e-007, -0.935553372, -4.22077129e-008, 1, 1.87534141e-007, 0.935561061, 9.62157287e-008, -0.353164017) | |
| 339 | o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 340 | o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 341 | o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 342 | o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 343 | o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 344 | o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 345 | o12.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
| 346 | o13.Parent = o12 | |
| 347 | o13.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 348 | o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012) | |
| 349 | o13.MeshType = Enum.MeshType.FileMesh | |
| 350 | o14.Name = "Breather" | |
| 351 | o14.Parent = o1 | |
| 352 | o14.Material = Enum.Material.Metal | |
| 353 | o14.BrickColor = BrickColor.new("Really black")
| |
| 354 | o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011) | |
| 355 | o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521) | |
| 356 | o14.Anchored = true | |
| 357 | o14.CanCollide = false | |
| 358 | o14.FormFactor = Enum.FormFactor.Custom | |
| 359 | o14.Shape = Enum.PartType.Cylinder | |
| 360 | o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003) | |
| 361 | o14.CFrame = CFrame.new(-12.7419596, 3.69627094, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762) | |
| 362 | o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 363 | o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 364 | o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 365 | o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 366 | o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 367 | o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 368 | o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 369 | o15.Name = "Breather" | |
| 370 | o15.Parent = o1 | |
| 371 | o15.Material = Enum.Material.Metal | |
| 372 | o15.BrickColor = BrickColor.new("Really black")
| |
| 373 | o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011) | |
| 374 | o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521) | |
| 375 | o15.Anchored = true | |
| 376 | o15.CanCollide = false | |
| 377 | o15.FormFactor = Enum.FormFactor.Custom | |
| 378 | o15.Shape = Enum.PartType.Cylinder | |
| 379 | o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024) | |
| 380 | o15.CFrame = CFrame.new(-12.5337915, 3.51434994, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762) | |
| 381 | o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 382 | o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 383 | o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 384 | o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 385 | o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 386 | o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 387 | o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 388 | o16.Name = "Breather" | |
| 389 | o16.Parent = o1 | |
| 390 | o16.Material = Enum.Material.Metal | |
| 391 | o16.BrickColor = BrickColor.new("Really black")
| |
| 392 | o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256) | |
| 393 | o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548) | |
| 394 | o16.Anchored = true | |
| 395 | o16.CanCollide = false | |
| 396 | o16.FormFactor = Enum.FormFactor.Custom | |
| 397 | o16.Shape = Enum.PartType.Cylinder | |
| 398 | o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75) | |
| 399 | o16.CFrame = CFrame.new(-12.7920103, 3.39220095, 49.784256, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967) | |
| 400 | o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 401 | o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 402 | o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 403 | o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 404 | o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 405 | o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 406 | o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 407 | o17.Name = "Breather" | |
| 408 | o17.Parent = o1 | |
| 409 | o17.Material = Enum.Material.Metal | |
| 410 | o17.BrickColor = BrickColor.new("Really black")
| |
| 411 | o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109) | |
| 412 | o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548) | |
| 413 | o17.Anchored = true | |
| 414 | o17.CanCollide = false | |
| 415 | o17.FormFactor = Enum.FormFactor.Custom | |
| 416 | o17.Shape = Enum.PartType.Cylinder | |
| 417 | o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002) | |
| 418 | o17.CFrame = CFrame.new(-12.8723783, 3.42192006, 49.8816109, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967) | |
| 419 | o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 420 | o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 421 | o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 422 | o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 423 | o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 424 | o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 425 | o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 426 | function onTouched(hit) | |
| 427 | local d = hit.Parent:GetChildren() | |
| 428 | for i=1, #d do | |
| 429 | if (d[i].className == "Hat") then | |
| 430 | d[i]:remove() | |
| 431 | end | |
| 432 | end | |
| 433 | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then
| |
| 434 | local g = o1:clone() | |
| 435 | g.Parent = hit.Parent | |
| 436 | local C = g:GetChildren() | |
| 437 | for i=1, #C do | |
| 438 | if C[i].className == "Part" then | |
| 439 | local W = Instance.new("Weld")
| |
| 440 | W.Part0 = g.Middle | |
| 441 | W.Part1 = C[i] | |
| 442 | local CJ = CFrame.new(g.Middle.Position) | |
| 443 | local C0 = g.Middle.CFrame:inverse()*CJ | |
| 444 | local C1 = C[i].CFrame:inverse()*CJ | |
| 445 | W.C0 = C0 | |
| 446 | W.C1 = C1 | |
| 447 | W.Parent = g.Middle | |
| 448 | g.Middle.Transparency = 1 | |
| 449 | end | |
| 450 | local Y = Instance.new("Weld")
| |
| 451 | Y.Part0 = hit.Parent.Head | |
| 452 | Y.Part1 = g.Middle | |
| 453 | Y.C0 = CFrame.new(0, 0, 0) | |
| 454 | Y.Parent = Y.Part0 | |
| 455 | end | |
| 456 | ||
| 457 | local h = g:GetChildren() | |
| 458 | for i = 1, # h do | |
| 459 | h[i].Anchored = false | |
| 460 | h[i].CanCollide = false | |
| 461 | end | |
| 462 | ||
| 463 | end | |
| 464 | end | |
| 465 | ||
| 466 | onTouched(game.Players.LocalPlayer.Character.Head) | |
| 467 | end | |
| 468 | local Player = owner | |
| 469 | - | local Player = game:service'Players'.localPlayer |
| 469 | + | |
| 470 | ||
| 471 | shirt= Instance.new("Shirt", Character)
| |
| 472 | shirt.Name = "Shirt" | |
| 473 | pants = Instance.new("Pants", Character)
| |
| 474 | pants.Name = "Pants" | |
| 475 | chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=245656735" | |
| 476 | chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=245656766" | |
| 477 | ||
| 478 | local Player = owner | |
| 479 | local chara = Player.Character | |
| 480 | local Character = Player.Character | |
| 481 | torso = chara.Torso | |
| 482 | ||
| 483 | New = function(Object, Parent, Name, Data) | |
| 484 | local Object = Instance.new(Object) | |
| 485 | for Index, Value in pairs(Data or {}) do
| |
| 486 | Object[Index] = Value | |
| 487 | end | |
| 488 | Object.Parent = Parent | |
| 489 | Object.Name = Name | |
| 490 | return Object | |
| 491 | end | |
| 492 | local LoPa = game:GetService("Players").LocalPlayer
| |
| 493 | local C = LoPa.Character | |
| 494 | ||
| 495 | ||
| 496 | LaserMinigun = New("Model",C,"LaserMinigun",{})
| |
| 497 | Gunpart = New("Model",LaserMinigun,"Gunpart",{})
| |
| 498 | FrontHandle = New("Part",Gunpart,"FrontHandle",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.334096551, 0.668193102, 0.334096551),CFrame = CFrame.new(30.8316956, 0.787470937, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 499 | Mesh = New("CylinderMesh",FrontHandle,"Mesh",{})
| |
| 500 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 501 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 502 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 503 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 504 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 505 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 506 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 507 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 508 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 509 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 510 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.556827545, 0.111365512, 0.556827545),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 511 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 512 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 513 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 514 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 515 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 516 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 517 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 518 | FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 519 | Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
| |
| 520 | gun4 = New("Part",Gunpart,"gun4",{BrickColor = BrickColor.new("Pastel blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 521 | Mesh = New("CylinderMesh",gun4,"Mesh",{})
| |
| 522 | gun1 = New("Part",Gunpart,"gun1",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 523 | Mesh = New("CylinderMesh",gun1,"Mesh",{})
| |
| 524 | gun3 = New("Part",Gunpart,"gun3",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 525 | Mesh = New("CylinderMesh",gun3,"Mesh",{})
| |
| 526 | gun2 = New("Part",Gunpart,"gun2",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 527 | Mesh = New("CylinderMesh",gun2,"Mesh",{})
| |
| 528 | PowerHolder = New("Model",LaserMinigun,"PowerHolder",{})
| |
| 529 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(27.7135086, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 530 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 531 | Model = New("Model",Part,"Model",{})
| |
| 532 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 533 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 534 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 535 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 536 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 537 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 538 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 539 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 540 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 541 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 542 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 543 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 544 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 545 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 546 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 547 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 548 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 549 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 550 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 551 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 552 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 553 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 554 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 555 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 556 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 557 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 558 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 559 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 560 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(29.4953289, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 561 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 562 | Model = New("Model",Part,"Model",{})
| |
| 563 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 564 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 565 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 566 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 567 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 568 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 569 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 570 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 571 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 572 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 573 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 574 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 575 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 576 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 577 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 578 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 579 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 580 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 581 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 582 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 583 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 584 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 585 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 586 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 587 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 588 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 589 | Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 590 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 591 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.222731024, 0.890924096),CFrame = CFrame.new(29.7180557, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 592 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 593 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 594 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 595 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 596 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 597 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 598 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 599 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 600 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 601 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 602 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 603 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 604 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 605 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 606 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 607 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 608 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 609 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(29.9407845, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 610 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 611 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 612 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 613 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.38624, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 614 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 615 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.668193102, 0.445462048),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 616 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 617 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(30.6089668, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 618 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 619 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.0498734, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 620 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 621 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000644, 0.707109809, 0.70710659, 0, 0.707112432, -0.707108617, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 622 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 2.00457907, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787482023, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 623 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 624 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.500002861, 0.866023839, 0, 0.866023839, -0.500002861, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 625 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.86602217, 0.500005305, 0, 0.500005305, -0.86602217, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 626 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.965924263, 0.258825034, 0, 0.258825064, -0.965924263, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 627 | Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.25882262, 0.965924919, 0, 0.965924919, -0.25882262, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 628 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 629 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.8271465, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 630 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 631 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.381691, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 632 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 633 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(28.1589584, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 634 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 635 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.222731024),CFrame = CFrame.new(26.9784832, 0.787473083, -52.2899971, -5.52762662e-11, 1.00582838e-05, 1.00000024, -3.50170376e-06, -1.00000024, 1.00582838e-05, 1, -3.50170421e-06, 9.06084097e-11),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 636 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.512281358, 0.111365512),CFrame = CFrame.new(26.7446499, 1.07702565, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 637 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(26.7111912, 0.787473083, -52.2899971, -5.53331096e-11, -0.258809268, 0.965928495, -3.50170376e-06, -0.965928495, -0.258809268, 1, -3.38240966e-06, -9.06219896e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 638 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.111365512),CFrame = CFrame.new(26.6666946, 0.475645214, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 639 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.579100668, 0.111365512),CFrame = CFrame.new(26.4769592, 0.766716778, -52.2899971, -5.52867474e-11, -0.258809447, 0.96592921, -3.50170421e-06, -0.96592921, -0.258809447, 1, -3.38241125e-06, -9.06220293e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 640 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.289550334, 0.111365512),CFrame = CFrame.new(26.8782501, 0.787470937, -52.2899971, -5.69528105e-11, -1, 1.04902101e-05, -3.50170967e-06, -1.04902101e-05, -1, 1, -9.36864822e-11, -3.50170967e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 641 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 642 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -52.7354622, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 643 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -51.8445435, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 644 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.178184807, 0.890924096, 0.178184807),CFrame = CFrame.new(29.4285202, 1.67839265, -52.2899971, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 645 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 646 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -51.9559135, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 647 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 648 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -52.6240959, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 649 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 650 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.779558599, 0.222731024),CFrame = CFrame.new(29.4285202, 1.67839491, -52.2900124, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 651 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 652 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.4907551, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 653 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 654 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 655 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 656 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 657 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 658 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 659 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 660 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 661 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 662 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 663 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 664 | Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 665 | Mesh = New("CylinderMesh",Part,"Mesh",{})
| |
| 666 | ||
| 667 | ||
| 668 | ||
| 669 | ||
| 670 | ||
| 671 | ||
| 672 | ||
| 673 | ||
| 674 | ||
| 675 | ||
| 676 | ||
| 677 | Handle = New("Part",LaserMinigun,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.22300005, 4.51200008, 1.11099994),CFrame = CFrame.new(28.6618481, 0.8217237, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 678 | ||
| 679 | ||
| 680 | ||
| 681 | ||
| 682 | ||
| 683 | ||
| 684 | ||
| 685 | ||
| 686 | ||
| 687 | ||
| 688 | ||
| 689 | ||
| 690 | MiniDroid = New("Model",C,"MiniDroid",{})
| |
| 691 | armor = New("Model",MiniDroid,"armor",{})
| |
| 692 | Main = New("Model",armor,"Main",{})
| |
| 693 | Part = New("Part",Main,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.800000012, 0.800000012),CFrame = CFrame.new(30.9500008, 1.7000351, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 694 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.899999976, 0.699999988, 0.899999976),CFrame = CFrame.new(30.9499989, 1.80003405, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 695 | Mesh = New("SpecialMesh",Part,"Mesh",{})
| |
| 696 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.50999999, 1),CFrame = CFrame.new(30.9499989, 1.90003407, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 697 | Mesh = New("SpecialMesh",Part,"Mesh",{})
| |
| 698 | Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.5, 1),CFrame = CFrame.new(30.9499989, 1.70003402, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 699 | Mesh = New("SpecialMesh",Part,"Mesh",{})
| |
| 700 | Neon = New("Model",MiniDroid,"Neon",{})
| |
| 701 | LaPart = New("Part",Neon,"LaPart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.100000001, 0.949999988, 0.949999988),CFrame = CFrame.new(30.9500008, 1.80000031, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 702 | FirePart = New("Part",Neon,"FirePart",{BrickColor = BrickColor.new("Pastel Blue"),Material = Enum.Material.Neon,Transparency = 0.5,Shape = Enum.PartType.Ball,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(30.9499989, 1.65004444, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 703 | miniHandle = New("Part",MiniDroid,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(30.9500008, 1.80504608, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 704 | ||
| 705 | ||
| 706 | ||
| 707 | ||
| 708 | ||
| 709 | Glow1 = Color3.fromRGB(174,198,207) | |
| 710 | Glow2 = Color3.fromRGB(119,158,203) | |
| 711 | ||
| 712 | GlowParticle = Instance.new("ParticleEmitter",FirePart)
| |
| 713 | GlowParticle.LightEmission = 1 | |
| 714 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
| 715 | GlowParticle.Size = NumberSequence.new(0,20) | |
| 716 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985" | |
| 717 | GlowParticle.Transparency = NumberSequence.new(0,1) | |
| 718 | GlowParticle.LockedToPart = true | |
| 719 | GlowParticle.Lifetime = NumberRange.new(1) | |
| 720 | GlowParticle.Rate= 1 | |
| 721 | GlowParticle.Speed =NumberRange.new(0) | |
| 722 | GlowParticle.Enabled = false | |
| 723 | ||
| 724 | ||
| 725 | ||
| 726 | ||
| 727 | GlowParticle2 = Instance.new("ParticleEmitter",FirePart)
| |
| 728 | GlowParticle2.LightEmission = .7 | |
| 729 | GlowParticle2.Color = ColorSequence.new(Glow1,Glow2) | |
| 730 | GlowParticle2.Size = NumberSequence.new(0,1) | |
| 731 | GlowParticle2.Texture = "http://www.roblox.com/asset/?id=589325350" | |
| 732 | GlowParticle2.Transparency = NumberSequence.new(0,1) | |
| 733 | GlowParticle2.LockedToPart = false | |
| 734 | GlowParticle2.Lifetime = NumberRange.new(0.2) | |
| 735 | GlowParticle2.Rate= 150 | |
| 736 | GlowParticle2.Speed =NumberRange.new(3) | |
| 737 | GlowParticle2.Acceleration = Vector3.new(0, -10.5, 0) | |
| 738 | ||
| 739 | ||
| 740 | ||
| 741 | ||
| 742 | ||
| 743 | local all,last = {}
| |
| 744 | function scan(p) | |
| 745 | for _,v in pairs(p:GetChildren()) do | |
| 746 | if (v:IsA("BasePart")) then
| |
| 747 | if (last) then | |
| 748 | local w = Instance.new("Weld")
| |
| 749 | w.Part0,w.Part1 = last,v | |
| 750 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
| 751 | w.Parent = last | |
| 752 | end | |
| 753 | table.insert(all,v) | |
| 754 | last = v | |
| 755 | end | |
| 756 | scan(v) | |
| 757 | end | |
| 758 | end | |
| 759 | scan(LaserMinigun) | |
| 760 | ||
| 761 | scan(MiniDroid) | |
| 762 | for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end | |
| 763 | MiniDroid.Parent = C | |
| 764 | LaserMinigun.Parent = C | |
| 765 | ||
| 766 | ||
| 767 | Main:Destroy() | |
| 768 | ||
| 769 | Effects = { }
| |
| 770 | Rapid = false | |
| 771 | local Player = owner | |
| 772 | - | local Player = game.Players.localPlayer |
| 772 | + | |
| 773 | local Humanoid = Character.Humanoid | |
| 774 | local LeftArm = Character["Left Arm"] | |
| 775 | - | local mouse = Player:GetMouse() |
| 775 | + | |
| 776 | local LeftLeg = Character["Left Leg"] | |
| 777 | local RightLeg = Character["Right Leg"] | |
| 778 | local Head = Character.Head | |
| 779 | local Torso = Character.Torso | |
| 780 | local cam = game.Workspace.CurrentCamera | |
| 781 | local RootPart = Character.HumanoidRootPart | |
| 782 | local RootJoint = RootPart.RootJoint | |
| 783 | local equipped = false | |
| 784 | local attack = false | |
| 785 | local Anim = 'Idle' | |
| 786 | local idle = 0 | |
| 787 | local attacktype = 1 | |
| 788 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 789 | local velocity = RootPart.Velocity.y | |
| 790 | local sine = 0 | |
| 791 | local change = 1 | |
| 792 | local grabbed = false | |
| 793 | local cn = CFrame.new | |
| 794 | local mr = math.rad | |
| 795 | local angles = CFrame.Angles | |
| 796 | local ud = UDim2.new | |
| 797 | local c3 = Color3.new | |
| 798 | local slashDamage = 15 | |
| 799 | local dir = {w = 0, s = 0, a = 0, d = 0}
| |
| 800 | local dir2 = {w = 0, s = 0, a = 0, d = 0}
| |
| 801 | killcom=true | |
| 802 | trans = 1 | |
| 803 | sentrymode = false | |
| 804 | sentrywait = false | |
| 805 | local LightMod = Instance.new("Model", Character)
| |
| 806 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 807 | Humanoid.Animator:Destroy() | |
| 808 | npcanim = Character.Animate:Clone() | |
| 809 | ultwait=false | |
| 810 | ||
| 811 | ||
| 812 | ||
| 813 | ||
| 814 | Character.Animate:Destroy() | |
| 815 | ||
| 816 | ||
| 817 | local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1) | |
| 818 | local oldParts = {}
| |
| 819 | for _,v in pairs(Par:GetChildren()) do | |
| 820 | v.CFrame = CFrame.new(5e5, 5e5, 5e5) | |
| 821 | table.insert(oldParts, v) | |
| 822 | end | |
| 823 | local Distance = (Start-End).Magnitude | |
| 824 | local ArcScale = ArcScale or 1 | |
| 825 | local RandomScale = RandomScale or 0 | |
| 826 | local Last = Start | |
| 827 | local IterNum = 0 | |
| 828 | ||
| 829 | while Par.Parent do | |
| 830 | IterNum = IterNum + 1 | |
| 831 | local New = nil | |
| 832 | if (Last-End).Magnitude < Length then | |
| 833 | New = CFrame.new(End) | |
| 834 | else | |
| 835 | if (End-Last).Magnitude < Length*2 then | |
| 836 | RandomScale = RandomScale*0.1 | |
| 837 | ArcScale = ArcScale*0.5 | |
| 838 | end | |
| 839 | local Direct = CFrame.new(Last,End) | |
| 840 | New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale))) | |
| 841 | New = New*CFrame.new(0,0,-Length) | |
| 842 | end | |
| 843 | local Trail = nil | |
| 844 | if oldParts[IterNum] then | |
| 845 | Trail = oldParts[IterNum] | |
| 846 | Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue")
| |
| 847 | Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width) | |
| 848 | Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0) | |
| 849 | oldParts[IterNum] = nil | |
| 850 | game:GetService("Debris"):AddItem(Trail, .03)
| |
| 851 | else | |
| 852 | Trail = Instance.new("Part")
| |
| 853 | Trail.Name = "Part" | |
| 854 | Trail.FormFactor = "Custom" | |
| 855 | Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Pastel Blue")) or BrickColor.new("Pastel Blue")
| |
| 856 | Trail.Transparency = 0 | |
| 857 | Trail.Anchored = true | |
| 858 | Trail.CanCollide = false | |
| 859 | Trail.Locked = true | |
| 860 | Trail.BackSurface = "SmoothNoOutlines" | |
| 861 | Trail.BottomSurface = "SmoothNoOutlines" | |
| 862 | Trail.FrontSurface = "SmoothNoOutlines" | |
| 863 | Trail.LeftSurface = "SmoothNoOutlines" | |
| 864 | Trail.RightSurface = "SmoothNoOutlines" | |
| 865 | Trail.TopSurface = "SmoothNoOutlines" | |
| 866 | Trail.Material = "Neon" | |
| 867 | Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width) | |
| 868 | Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0) | |
| 869 | Trail.Parent = Par | |
| 870 | game:GetService("Debris"):AddItem(Trail, .03)
| |
| 871 | end | |
| 872 | Last = New.p | |
| 873 | if (Last-End).Magnitude < 1 then | |
| 874 | break | |
| 875 | end | |
| 876 | end | |
| 877 | for _,v in pairs(oldParts) do | |
| 878 | v:Destroy() | |
| 879 | end | |
| 880 | end | |
| 881 | ||
| 882 | ||
| 883 | ||
| 884 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 885 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 886 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 887 | ||
| 888 | RSH, LSH = nil, nil | |
| 889 | ||
| 890 | ||
| 891 | DW = Instance.new("Weld")
| |
| 892 | DW.Name = "GuW" | |
| 893 | DW.Part0 = Torso | |
| 894 | DW.C0 = cn(0, 50, 0) | |
| 895 | DW.C1 = cn(0, 0, 0) | |
| 896 | DW.Part1 = miniHandle | |
| 897 | DW.Parent = Torso | |
| 898 | ||
| 899 | ||
| 900 | GuW = Instance.new("Weld")
| |
| 901 | GuW.Name = "GuW" | |
| 902 | GuW.Part0 = RightArm | |
| 903 | GuW.C0 = cn(0, -1, -1) | |
| 904 | GuW.C1 = cn(0, 0, 0) | |
| 905 | GuW.Part1 = Handle | |
| 906 | GuW.Parent = RightArm | |
| 907 | ||
| 908 | RW = Instance.new("Weld")
| |
| 909 | LW = Instance.new("Weld")
| |
| 910 | ||
| 911 | ||
| 912 | RH = Torso["Right Hip"] | |
| 913 | LH = Torso["Left Hip"] | |
| 914 | ||
| 915 | RSH = Torso["Right Shoulder"] | |
| 916 | LSH = Torso["Left Shoulder"] | |
| 917 | ||
| 918 | RSH.Parent = nil | |
| 919 | LSH.Parent = nil | |
| 920 | ||
| 921 | RW.Name = "RW" | |
| 922 | RW.Part0 = Torso | |
| 923 | RW.C0 = cn(1.5, 0.5, 0) | |
| 924 | RW.C1 = cn(0, 0.5, 0) | |
| 925 | RW.Part1 = RightArm | |
| 926 | RW.Parent = Torso | |
| 927 | ||
| 928 | LW.Name = "LW" | |
| 929 | LW.Part0 = Torso | |
| 930 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 931 | LW.C1 = cn(0, 0.5, 0) | |
| 932 | LW.Part1 = LeftArm | |
| 933 | LW.Parent = Torso | |
| 934 | ||
| 935 | function clerp(a, b, t) | |
| 936 | local qa = {
| |
| 937 | QuaternionFromCFrame(a) | |
| 938 | } | |
| 939 | local qb = {
| |
| 940 | QuaternionFromCFrame(b) | |
| 941 | } | |
| 942 | local ax, ay, az = a.x, a.y, a.z | |
| 943 | local bx, by, bz = b.x, b.y, b.z | |
| 944 | local _t = 1 - t | |
| 945 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 946 | end | |
| 947 | ||
| 948 | function QuaternionFromCFrame(cf) | |
| 949 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 950 | local trace = m00 + m11 + m22 | |
| 951 | if trace > 0 then | |
| 952 | local s = math.sqrt(1 + trace) | |
| 953 | local recip = 0.5 / s | |
| 954 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 955 | else | |
| 956 | local i = 0 | |
| 957 | if m11 > m00 then | |
| 958 | i = 1 | |
| 959 | end | |
| 960 | if m22 > (i == 0 and m00 or m11) then | |
| 961 | i = 2 | |
| 962 | end | |
| 963 | if i == 0 then | |
| 964 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 965 | local recip = 0.5 / s | |
| 966 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 967 | elseif i == 1 then | |
| 968 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 969 | local recip = 0.5 / s | |
| 970 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 971 | elseif i == 2 then | |
| 972 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 973 | local recip = 0.5 / s | |
| 974 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 975 | end | |
| 976 | end | |
| 977 | end | |
| 978 | ||
| 979 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 980 | local xs, ys, zs = x + x, y + y, z + z | |
| 981 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 982 | local xx = x * xs | |
| 983 | local xy = x * ys | |
| 984 | local xz = x * zs | |
| 985 | local yy = y * ys | |
| 986 | local yz = y * zs | |
| 987 | local zz = z * zs | |
| 988 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 989 | end | |
| 990 | ||
| 991 | function QuaternionSlerp(a, b, t) | |
| 992 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 993 | local startInterp, finishInterp; | |
| 994 | if cosTheta >= 0.0001 then | |
| 995 | if (1 - cosTheta) > 0.0001 then | |
| 996 | local theta = math.acos(cosTheta) | |
| 997 | local invSinTheta = 1 / math.sin(theta) | |
| 998 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 999 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 1000 | else | |
| 1001 | startInterp = 1 - t | |
| 1002 | finishInterp = t | |
| 1003 | end | |
| 1004 | else | |
| 1005 | if (1 + cosTheta) > 0.0001 then | |
| 1006 | local theta = math.acos(-cosTheta) | |
| 1007 | local invSinTheta = 1 / math.sin(theta) | |
| 1008 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 1009 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 1010 | else | |
| 1011 | startInterp = t - 1 | |
| 1012 | finishInterp = t | |
| 1013 | end | |
| 1014 | end | |
| 1015 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 1016 | end | |
| 1017 | ||
| 1018 | function swait(num) | |
| 1019 | if num == 0 or num == nil then | |
| 1020 | game:service'RunService'.RenderStepped:wait(0) | |
| 1021 | else | |
| 1022 | for i = 0, num do | |
| 1023 | game:service'RunService'.RenderStepped:wait(0) | |
| 1024 | end | |
| 1025 | end | |
| 1026 | end | |
| 1027 | ||
| 1028 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 1029 | local Create = RbxUtility.Create | |
| 1030 | ||
| 1031 | function RemoveOutlines(part) | |
| 1032 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1033 | end | |
| 1034 | ||
| 1035 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1036 | local Part = Create("Part"){
| |
| 1037 | formFactor = FormFactor, | |
| 1038 | Parent = Parent, | |
| 1039 | Reflectance = Reflectance, | |
| 1040 | Transparency = Transparency, | |
| 1041 | CanCollide = false, | |
| 1042 | Locked = true, | |
| 1043 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1044 | Name = Name, | |
| 1045 | Size = Size, | |
| 1046 | Material = Material, | |
| 1047 | } | |
| 1048 | RemoveOutlines(Part) | |
| 1049 | return Part | |
| 1050 | end | |
| 1051 | ||
| 1052 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1053 | local Msh = Create(Mesh){
| |
| 1054 | Parent = Part, | |
| 1055 | Offset = OffSet, | |
| 1056 | Scale = Scale, | |
| 1057 | } | |
| 1058 | if Mesh == "SpecialMesh" then | |
| 1059 | Msh.MeshType = MeshType | |
| 1060 | Msh.MeshId = MeshId | |
| 1061 | end | |
| 1062 | return Msh | |
| 1063 | end | |
| 1064 | ||
| 1065 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1066 | local Weld = Create("Weld"){
| |
| 1067 | Parent = Parent, | |
| 1068 | Part0 = Part0, | |
| 1069 | Part1 = Part1, | |
| 1070 | C0 = C0, | |
| 1071 | C1 = C1, | |
| 1072 | } | |
| 1073 | return Weld | |
| 1074 | end | |
| 1075 | ||
| 1076 | function rayCast(Position, Direction, Range, Ignore) | |
| 1077 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 1078 | end | |
| 1079 | ||
| 1080 | function CreateSound(id, par, vol, pit) | |
| 1081 | coroutine.resume(coroutine.create(function() | |
| 1082 | local sou = Instance.new("Sound", par or workspace)
| |
| 1083 | sou.Volume = vol | |
| 1084 | sou.Pitch = pit or 1 | |
| 1085 | sou.SoundId = id | |
| 1086 | wait() | |
| 1087 | sou:play() | |
| 1088 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 1089 | end)) | |
| 1090 | end | |
| 1091 | ||
| 1092 | local function getclosest(obj, distance) | |
| 1093 | local last, lastx = distance + 1 | |
| 1094 | for i, v in pairs(workspace:GetChildren()) do | |
| 1095 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 1096 | local t = v.Torso | |
| 1097 | local dist = (t.Position - obj.Position).magnitude | |
| 1098 | if dist <= distance then | |
| 1099 | if dist < last then | |
| 1100 | last = dist | |
| 1101 | lastx = v | |
| 1102 | end | |
| 1103 | end | |
| 1104 | end | |
| 1105 | end | |
| 1106 | return lastx | |
| 1107 | end | |
| 1108 | ||
| 1109 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 1110 | for i, v in pairs(hit:GetChildren()) do | |
| 1111 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 1112 | local find = v:FindFirstChild("Hitz")
| |
| 1113 | if not find then | |
| 1114 | if v.Parent:findFirstChild("Head") then
| |
| 1115 | local BillG = Create("BillboardGui"){
| |
| 1116 | Parent = v.Parent.Head, | |
| 1117 | Size = UDim2.new(1, 0, 1, 0), | |
| 1118 | Adornee = v.Parent.Head, | |
| 1119 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 1120 | } | |
| 1121 | local TL = Create("TextLabel"){
| |
| 1122 | Parent = BillG, | |
| 1123 | Size = UDim2.new(3, 3, 3, 3), | |
| 1124 | BackgroundTransparency = 1, | |
| 1125 | Text = tostring(damage).."-", | |
| 1126 | TextColor3 = Color1.Color, | |
| 1127 | TextStrokeColor3 = Color2.Color, | |
| 1128 | TextStrokeTransparency = 0, | |
| 1129 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 1130 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 1131 | FontSize = Enum.FontSize.Size18, | |
| 1132 | Font = "ArialBold", | |
| 1133 | } | |
| 1134 | coroutine.resume(coroutine.create(function() | |
| 1135 | wait(1) | |
| 1136 | for i = 0, 1, .1 do | |
| 1137 | wait(.1) | |
| 1138 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 1139 | end | |
| 1140 | BillG:Destroy() | |
| 1141 | end)) | |
| 1142 | end | |
| 1143 | v.Health = v.Health - damage | |
| 1144 | local bool = Create("BoolValue"){
| |
| 1145 | Parent = v, | |
| 1146 | Name = 'Hitz', | |
| 1147 | } | |
| 1148 | if HSound ~= nil and HPitch ~= nil then | |
| 1149 | CreateSound(HSound, hit, 1, HPitch) | |
| 1150 | end | |
| 1151 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 1152 | end | |
| 1153 | end | |
| 1154 | end | |
| 1155 | end | |
| 1156 | ||
| 1157 | ||
| 1158 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1159 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1160 | prt.Anchored = true | |
| 1161 | prt.CFrame = cframe | |
| 1162 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1163 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1164 | if Type == 1 or Type == nil then | |
| 1165 | table.insert(Effects, {
| |
| 1166 | prt, | |
| 1167 | "Block1", | |
| 1168 | delay, | |
| 1169 | x3, | |
| 1170 | y3, | |
| 1171 | z3, | |
| 1172 | msh | |
| 1173 | }) | |
| 1174 | elseif Type == 2 then | |
| 1175 | table.insert(Effects, {
| |
| 1176 | prt, | |
| 1177 | "Block2", | |
| 1178 | delay, | |
| 1179 | x3, | |
| 1180 | y3, | |
| 1181 | z3, | |
| 1182 | msh | |
| 1183 | }) | |
| 1184 | end | |
| 1185 | end | |
| 1186 | ||
| 1187 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1188 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1189 | prt.Anchored = true | |
| 1190 | prt.CFrame = cframe | |
| 1191 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1192 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1193 | table.insert(Effects, {
| |
| 1194 | prt, | |
| 1195 | "Cylinder", | |
| 1196 | delay, | |
| 1197 | x3, | |
| 1198 | y3, | |
| 1199 | z3, | |
| 1200 | msh | |
| 1201 | }) | |
| 1202 | end | |
| 1203 | ||
| 1204 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1205 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1206 | prt.Anchored = true | |
| 1207 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 1208 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1209 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1210 | table.insert(Effects, {
| |
| 1211 | prt, | |
| 1212 | "Cylinder", | |
| 1213 | delay, | |
| 1214 | x3, | |
| 1215 | y3, | |
| 1216 | z3, | |
| 1217 | msh | |
| 1218 | }) | |
| 1219 | end | |
| 1220 | ||
| 1221 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1222 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1223 | prt.Anchored = true | |
| 1224 | prt.CFrame = cframe | |
| 1225 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1226 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1227 | table.insert(Effects, {
| |
| 1228 | prt, | |
| 1229 | "Cylinder", | |
| 1230 | delay, | |
| 1231 | x3, | |
| 1232 | y3, | |
| 1233 | z3, | |
| 1234 | msh | |
| 1235 | }) | |
| 1236 | end | |
| 1237 | ||
| 1238 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1239 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1240 | prt.Anchored = true | |
| 1241 | prt.CFrame = cframe | |
| 1242 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1243 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1244 | table.insert(Effects, {
| |
| 1245 | prt, | |
| 1246 | "Cylinder", | |
| 1247 | delay, | |
| 1248 | x3, | |
| 1249 | y3, | |
| 1250 | z3, | |
| 1251 | msh | |
| 1252 | }) | |
| 1253 | end | |
| 1254 | ||
| 1255 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1256 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1257 | prt.Anchored = true | |
| 1258 | prt.CFrame = cframe | |
| 1259 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1260 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1261 | table.insert(Effects, {
| |
| 1262 | prt, | |
| 1263 | "Cylinder", | |
| 1264 | delay, | |
| 1265 | x3, | |
| 1266 | y3, | |
| 1267 | z3, | |
| 1268 | msh | |
| 1269 | }) | |
| 1270 | end | |
| 1271 | ||
| 1272 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 1273 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1274 | prt.Anchored = true | |
| 1275 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1276 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1277 | local num = math.random(10, 50) / 1000 | |
| 1278 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1279 | table.insert(Effects, {
| |
| 1280 | prt, | |
| 1281 | "Shatter", | |
| 1282 | num, | |
| 1283 | prt.CFrame, | |
| 1284 | math.random() - math.random(), | |
| 1285 | 0, | |
| 1286 | math.random(50, 100) / 100 | |
| 1287 | }) | |
| 1288 | end | |
| 1289 | ||
| 1290 | ||
| 1291 | ||
| 1292 | ||
| 1293 | for i = 0, 1, 0.05 do | |
| 1294 | swait() | |
| 1295 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 1296 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 1297 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 1298 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 1299 | if Torsovelocity > 2 then | |
| 1300 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 1301 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 1302 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 1303 | elseif Torsovelocity < 1 then | |
| 1304 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 1305 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 1306 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 1307 | end | |
| 1308 | end | |
| 1309 | attack = false | |
| 1310 | ||
| 1311 | ||
| 1312 | ||
| 1313 | game:GetService'RunService'.Stepped:connect(function() | |
| 1314 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1315 | velocity = RootPart.Velocity.y | |
| 1316 | sine = sine + change | |
| 1317 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1318 | if equipped == true or equipped == false then | |
| 1319 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1320 | Anim = "Jump" | |
| 1321 | if attack == false then | |
| 1322 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 1323 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 1324 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
| 1325 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
| 1326 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
| 1327 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
| 1328 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
| 1329 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,0 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 1330 | end | |
| 1331 | elseif RootPart.Velocity.y < 1 and hit == nil then | |
| 1332 | Anim = "Fall" | |
| 1333 | if attack == false then | |
| 1334 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 1335 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 1336 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(65), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
| 1337 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(55 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
| 1338 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 1339 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 1340 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
| 1341 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,8 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 1342 | end | |
| 1343 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1344 | Anim = "Idle" | |
| 1345 | if attack == false then | |
| 1346 | change = 1 | |
| 1347 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
| 1348 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
| 1349 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
| 1350 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
| 1351 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 1352 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 1353 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
| 1354 | ||
| 1355 | DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 1356 | end | |
| 1357 | elseif Torsovelocity > 1 and hit ~= nil then | |
| 1358 | Anim = "Walk" | |
| 1359 | if attack == false then | |
| 1360 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2) | |
| 1361 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2) | |
| 1362 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3) | |
| 1363 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2) | |
| 1364 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 1365 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 1366 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 1367 | DW.C0 = clerp(DW.C0, CFrame.new(3+.1 * math.cos(sine / 5) , 3.05 - .1 * math.cos(sine / 3), 2.5 + .5 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 1368 | end | |
| 1369 | ||
| 1370 | ||
| 1371 | ||
| 1372 | ||
| 1373 | ||
| 1374 | ||
| 1375 | ||
| 1376 | ||
| 1377 | ||
| 1378 | ||
| 1379 | ||
| 1380 | ||
| 1381 | ||
| 1382 | ||
| 1383 | ||
| 1384 | ||
| 1385 | ||
| 1386 | ||
| 1387 | end | |
| 1388 | end | |
| 1389 | if #Effects > 0 then | |
| 1390 | for e = 1, #Effects do | |
| 1391 | if Effects[e] ~= nil then | |
| 1392 | local Thing = Effects[e] | |
| 1393 | if Thing ~= nil then | |
| 1394 | local Part = Thing[1] | |
| 1395 | local Mode = Thing[2] | |
| 1396 | local Delay = Thing[3] | |
| 1397 | local IncX = Thing[4] | |
| 1398 | local IncY = Thing[5] | |
| 1399 | local IncZ = Thing[6] | |
| 1400 | if Thing[1].Transparency <= 1 then | |
| 1401 | if Thing[2] == "Block1" then | |
| 1402 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1403 | local Mesh = Thing[1].Mesh | |
| 1404 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1405 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1406 | elseif Thing[2] == "Block2" then | |
| 1407 | Thing[1].CFrame = Thing[1].CFrame | |
| 1408 | local Mesh = Thing[7] | |
| 1409 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1410 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1411 | elseif Thing[2] == "Cylinder" then | |
| 1412 | local Mesh = Thing[1].Mesh | |
| 1413 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1414 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1415 | elseif Thing[2] == "Blood" then | |
| 1416 | local Mesh = Thing[7] | |
| 1417 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 1418 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1419 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1420 | elseif Thing[2] == "Elec" then | |
| 1421 | local Mesh = Thing[1].Mesh | |
| 1422 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1423 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1424 | elseif Thing[2] == "Disappear" then | |
| 1425 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1426 | elseif Thing[2] == "Shatter" then | |
| 1427 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1428 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1429 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1430 | Thing[6] = Thing[6] + Thing[5] | |
| 1431 | end | |
| 1432 | else | |
| 1433 | Part.Parent = nil | |
| 1434 | table.remove(Effects, e) | |
| 1435 | end | |
| 1436 | end | |
| 1437 | end | |
| 1438 | end | |
| 1439 | end | |
| 1440 | end) | |
| 1441 | ||
| 1442 | ||
| 1443 | ||
| 1444 | ||
| 1445 | ||
| 1446 | ||
| 1447 | ||
| 1448 | ||
| 1449 | ||
| 1450 | ||
| 1451 | ||
| 1452 | ||
| 1453 | ||
| 1454 | ||
| 1455 | ||
| 1456 | ||
| 1457 | ||
| 1458 | ||
| 1459 | ||
| 1460 | ||
| 1461 | ||
| 1462 | ||
| 1463 | ||
| 1464 | ||
| 1465 | ||
| 1466 | ||
| 1467 | ||
| 1468 | ||
| 1469 | RemoveOutlines = function(part) | |
| 1470 | ||
| 1471 | part.TopSurface = 10 | |
| 1472 | end | |
| 1473 | ||
| 1474 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1475 | ||
| 1476 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 1477 | RemoveOutlines(Part) | |
| 1478 | return Part | |
| 1479 | end | |
| 1480 | ||
| 1481 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1482 | ||
| 1483 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 1484 | if Mesh == "SpecialMesh" then | |
| 1485 | Msh.MeshType = MeshType | |
| 1486 | Msh.MeshId = MeshId | |
| 1487 | end | |
| 1488 | return Msh | |
| 1489 | end | |
| 1490 | ||
| 1491 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
| 1492 | ||
| 1493 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 1494 | return Weld | |
| 1495 | end | |
| 1496 | ||
| 1497 | ||
| 1498 | ||
| 1499 | ||
| 1500 | ||
| 1501 | ||
| 1502 | ||
| 1503 | ||
| 1504 | ||
| 1505 | ||
| 1506 | ||
| 1507 | ||
| 1508 | ||
| 1509 | ||
| 1510 | ||
| 1511 | ||
| 1512 | CFuncs = {
| |
| 1513 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
| |
| 1514 | ||
| 1515 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
| |
| 1516 | RemoveOutlines(Part) | |
| 1517 | return Part | |
| 1518 | end | |
| 1519 | } | |
| 1520 | , | |
| 1521 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 1522 | ||
| 1523 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 1524 | if Mesh == "SpecialMesh" then | |
| 1525 | Msh.MeshType = MeshType | |
| 1526 | Msh.MeshId = MeshId | |
| 1527 | end | |
| 1528 | return Msh | |
| 1529 | end | |
| 1530 | } | |
| 1531 | , | |
| 1532 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
| |
| 1533 | ||
| 1534 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
| |
| 1535 | if Mesh == "SpecialMesh" then | |
| 1536 | Msh.MeshType = MeshType | |
| 1537 | Msh.MeshId = MeshId | |
| 1538 | end | |
| 1539 | return Msh | |
| 1540 | end | |
| 1541 | } | |
| 1542 | , | |
| 1543 | Weld = {Create = function(Parent, Part0, Part1, C0, C1)
| |
| 1544 | ||
| 1545 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
| |
| 1546 | return Weld | |
| 1547 | end | |
| 1548 | } | |
| 1549 | , | |
| 1550 | Sound = {Create = function(id, par, vol, pit)
| |
| 1551 | ||
| 1552 | coroutine.resume(coroutine.create(function() | |
| 1553 | ||
| 1554 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
| |
| 1555 | wait() | |
| 1556 | S:play() | |
| 1557 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1558 | end | |
| 1559 | )) | |
| 1560 | end | |
| 1561 | } | |
| 1562 | , | |
| 1563 | articleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
| |
| 1564 | ||
| 1565 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
| |
| 1566 | return fp | |
| 1567 | end | |
| 1568 | } | |
| 1569 | } | |
| 1570 | ||
| 1571 | ||
| 1572 | ||
| 1573 | ||
| 1574 | ||
| 1575 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1576 | ||
| 1577 | if hit.Parent == nil then | |
| 1578 | return | |
| 1579 | end | |
| 1580 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1581 | for _,v in pairs(hit.Parent:children()) do | |
| 1582 | if v:IsA("Humanoid") then
| |
| 1583 | h = v | |
| 1584 | end | |
| 1585 | end | |
| 1586 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
| |
| 1587 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1588 | return | |
| 1589 | end | |
| 1590 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
| |
| 1591 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1592 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1593 | CreateSound(HitSound, hit, 1, HitPitch) | |
| 1594 | end | |
| 1595 | local Damage = math.random(minim, maxim) | |
| 1596 | local blocked = false | |
| 1597 | local block = hit.Parent:findFirstChild("Block")
| |
| 1598 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1599 | blocked = true | |
| 1600 | block.Value = block.Value - 1 | |
| 1601 | print(block.Value) | |
| 1602 | end | |
| 1603 | if blocked == false then | |
| 1604 | h.Health = h.Health - Damage | |
| 1605 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1606 | else | |
| 1607 | h.Health = h.Health - Damage / 2 | |
| 1608 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1609 | end | |
| 1610 | if Type == "Knockdown" then | |
| 1611 | local hum = hit.Parent.Humanoid | |
| 1612 | hum.PlatformStand = true | |
| 1613 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1614 | ||
| 1615 | swait(1) | |
| 1616 | HHumanoid.PlatformStand = false | |
| 1617 | end | |
| 1618 | ), hum) | |
| 1619 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1620 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 1621 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
| |
| 1622 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1623 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1624 | elseif Type == "Normal" then | |
| 1625 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
| |
| 1626 | if knockback > 0 then | |
| 1627 | vp.Parent = hit.Parent.HumanoidRootPart | |
| 1628 | end | |
| 1629 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1630 | elseif Type == "Up" then | |
| 1631 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 1632 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1633 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
| |
| 1634 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1635 | elseif Type == "Snare" then | |
| 1636 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1637 | local bp = Create("BodyPosition")({P = 200, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position + Vector3.new(0, -5, 0), Parent = hit.Parent.HumanoidRootPart})
| |
| 1638 | local rl2 = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500, 500, 500) * 10, angularvelocity = Vector3.new(math.random(-15,15), math.random(-0, 0), math.random(-15,15)), Parent = hit})
| |
| 1639 | game:GetService("Debris"):AddItem(rl2, 0.01)
| |
| 1640 | game:GetService("Debris"):AddItem(bp, .1)
| |
| 1641 | hit.Parent.Humanoid.PlatformStand = true | |
| 1642 | ||
| 1643 | ||
| 1644 | wait(.1) | |
| 1645 | hit.Parent.Humanoid.PlatformStand = false | |
| 1646 | elseif Type == "Freeze" then | |
| 1647 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position, Parent = hit.Parent.HumanoidRootPart})
| |
| 1648 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.HumanoidRootPart, cframe = hit.Parent.HumanoidRootPart.CFrame})
| |
| 1649 | hit.Parent.HumanoidRootPart.Anchored = true | |
| 1650 | coroutine.resume(coroutine.create(function(Part) | |
| 1651 | ||
| 1652 | swait(1.5) | |
| 1653 | Part.Anchored = false | |
| 1654 | end | |
| 1655 | ), hit.Parent.HumanoidRootPart) | |
| 1656 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1657 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1658 | end | |
| 1659 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
| |
| 1660 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1661 | c = Instance.new("ObjectValue")
| |
| 1662 | c.Name = "creator" | |
| 1663 | c.Value = Player | |
| 1664 | c.Parent = h | |
| 1665 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1666 | end | |
| 1667 | end | |
| 1668 | ||
| 1669 | ShowDamage = function(Pos, Text, Time, Color) | |
| 1670 | ||
| 1671 | local Rate = 0.033333333333333 | |
| 1672 | if not Pos then | |
| 1673 | local Pos = Vector3.new(0, 0, 0) | |
| 1674 | end | |
| 1675 | local Text = Text or "" | |
| 1676 | local Time = Time or 2 | |
| 1677 | if not Color then | |
| 1678 | local Color = Color3.new(1, 0, 1) | |
| 1679 | end | |
| 1680 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1681 | EffectPart.Anchored = true | |
| 1682 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
| |
| 1683 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
| |
| 1684 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1685 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1686 | delay(0, function() | |
| 1687 | ||
| 1688 | local Frames = Time / Rate | |
| 1689 | for Frame = 1, Frames do | |
| 1690 | wait(Rate) | |
| 1691 | local Percent = Frame / Frames | |
| 1692 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1693 | TextLabel.TextTransparency = Percent | |
| 1694 | end | |
| 1695 | if EffectPart and EffectPart.Parent then | |
| 1696 | EffectPart:Destroy() | |
| 1697 | end | |
| 1698 | end | |
| 1699 | ) | |
| 1700 | end | |
| 1701 | ||
| 1702 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
| 1703 | ||
| 1704 | for _,c in pairs(workspace:children()) do | |
| 1705 | local hum = c:findFirstChild("Humanoid")
| |
| 1706 | if hum ~= nil then | |
| 1707 | local head = c:findFirstChild("HumanoidRootPart")
| |
| 1708 | if head ~= nil then | |
| 1709 | local targ = head.Position - Part.Position | |
| 1710 | local mag = targ.magnitude | |
| 1711 | if mag <= magni and c.Name ~= Player.Name then | |
| 1712 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
| 1713 | end | |
| 1714 | end | |
| 1715 | end | |
| 1716 | end | |
| 1717 | end | |
| 1718 | MagniKILL = function(Part, magni, knock, Type) | |
| 1719 | ||
| 1720 | for _,c in pairs(workspace:children()) do | |
| 1721 | local hum = c:findFirstChild("Humanoid")
| |
| 1722 | if hum ~= nil then | |
| 1723 | local head = c:findFirstChild("Head")
| |
| 1724 | if head ~= nil then | |
| 1725 | local targ = head.Position - Part.Position | |
| 1726 | local mag = targ.magnitude | |
| 1727 | if mag <= magni and c.Name ~= Player.Name then | |
| 1728 | hum.Health = 0 | |
| 1729 | end | |
| 1730 | end | |
| 1731 | end | |
| 1732 | end | |
| 1733 | end | |
| 1734 | ||
| 1735 | EffectModel = Instance.new("Model", Character)
| |
| 1736 | EffectModel.Name = "Effects" | |
| 1737 | Effects = {
| |
| 1738 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
| |
| 1739 | ||
| 1740 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1741 | prt.Anchored = true | |
| 1742 | prt.CFrame = cframe | |
| 1743 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1744 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1745 | if Type == 1 or Type == nil then | |
| 1746 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 1747 | else | |
| 1748 | if Type == 2 then | |
| 1749 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 1750 | end | |
| 1751 | end | |
| 1752 | end | |
| 1753 | } | |
| 1754 | , | |
| 1755 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 1756 | ||
| 1757 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1758 | prt.Anchored = true | |
| 1759 | prt.CFrame = cframe | |
| 1760 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1761 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1762 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1763 | end | |
| 1764 | } | |
| 1765 | , | |
| 1766 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 1767 | ||
| 1768 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1769 | prt.Anchored = true | |
| 1770 | prt.CFrame = cframe | |
| 1771 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1772 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1773 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1774 | end | |
| 1775 | } | |
| 1776 | , | |
| 1777 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 1778 | ||
| 1779 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1780 | prt.Anchored = true | |
| 1781 | prt.CFrame = cframe | |
| 1782 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1783 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1784 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1785 | end | |
| 1786 | } | |
| 1787 | , | |
| 1788 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
| |
| 1789 | ||
| 1790 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1791 | prt.Anchored = true | |
| 1792 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1793 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1794 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1795 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1796 | end | |
| 1797 | } | |
| 1798 | , | |
| 1799 | Break = {Create = function(brickcolor, cframe, x1, y1, z1)
| |
| 1800 | ||
| 1801 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1802 | prt.Anchored = true | |
| 1803 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1804 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1805 | local num = math.random(10, 50) / 1000 | |
| 1806 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1807 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
| |
| 1808 | end | |
| 1809 | } | |
| 1810 | } | |
| 1811 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1812 | ||
| 1813 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1814 | prt.Anchored = true | |
| 1815 | prt.CFrame = cframe | |
| 1816 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1817 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1818 | if Type == 1 or Type == nil then | |
| 1819 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 1820 | else | |
| 1821 | if Type == 2 then | |
| 1822 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 1823 | end | |
| 1824 | end | |
| 1825 | end | |
| 1826 | ||
| 1827 | CreateSound = function(id, par, vol, pit) | |
| 1828 | ||
| 1829 | coroutine.resume(coroutine.create(function() | |
| 1830 | ||
| 1831 | local sou = Instance.new("Sound", par or workspace)
| |
| 1832 | sou.Volume = vol | |
| 1833 | sou.Pitch = pit or 1 | |
| 1834 | sou.SoundId = id | |
| 1835 | swait() | |
| 1836 | sou:play() | |
| 1837 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 1838 | end | |
| 1839 | )) | |
| 1840 | end | |
| 1841 | ||
| 1842 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1843 | ||
| 1844 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1845 | prt.Anchored = true | |
| 1846 | prt.CFrame = cframe | |
| 1847 | prt.Material = "Neon" | |
| 1848 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1849 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1850 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1851 | ||
| 1852 | for i = 0, 6, delay do | |
| 1853 | swait() | |
| 1854 | Part.Transparency = i | |
| 1855 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
| 1856 | end | |
| 1857 | Part.Parent = nil | |
| 1858 | end | |
| 1859 | ), prt, msh) | |
| 1860 | end | |
| 1861 | LigLaser = function(mouse, partt, SpreadAmount) | |
| 1862 | ||
| 1863 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1864 | local MainPos = partt.Position | |
| 1865 | local MainPos2 = mouse + SpreadVectors | |
| 1866 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1867 | local speed = 1000 | |
| 1868 | local num = 1 | |
| 1869 | coroutine.resume(coroutine.create(function() | |
| 1870 | ||
| 1871 | repeat | |
| 1872 | swait() | |
| 1873 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1874 | local mag = (MainPos - pos).magnitude | |
| 1875 | ||
| 1876 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1877 | num = num - 1 | |
| 1878 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1879 | if hit ~= nil then | |
| 1880 | num = 0 | |
| 1881 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1882 | refpart.Anchored = true | |
| 1883 | refpart.CFrame = CFrame.new(pos) | |
| 1884 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1885 | end | |
| 1886 | ||
| 1887 | do | |
| 1888 | if num <= 0 then | |
| 1889 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1890 | refpart.Anchored = true | |
| 1891 | refpart.CFrame = CFrame.new(pos) | |
| 1892 | if hit ~= nil then | |
| 1893 | for i = 0,5 do | |
| 1894 | ||
| 1895 | makeLightning(LightMod, partt.Position, refpart.Position, 0.17, 4, 30, 1, 10) | |
| 1896 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
| |
| 1897 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
| |
| 1898 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
| |
| 1899 | MagniDamage(refpart, 3, .05, .2, 6, "Normal") | |
| 1900 | swait() | |
| 1901 | end | |
| 1902 | ||
| 1903 | ||
| 1904 | end | |
| 1905 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1906 | end | |
| 1907 | end | |
| 1908 | until num <= 0 | |
| 1909 | end | |
| 1910 | )) | |
| 1911 | end | |
| 1912 | bigLigLaser = function(mouse, partt, SpreadAmount) | |
| 1913 | ||
| 1914 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1915 | local MainPos = partt.Position | |
| 1916 | local MainPos2 = mouse + SpreadVectors | |
| 1917 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1918 | local speed = 1000 | |
| 1919 | local num = 1 | |
| 1920 | coroutine.resume(coroutine.create(function() | |
| 1921 | ||
| 1922 | repeat | |
| 1923 | swait() | |
| 1924 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1925 | local mag = (MainPos - pos).magnitude | |
| 1926 | ||
| 1927 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1928 | num = num - 1 | |
| 1929 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1930 | if hit ~= nil then | |
| 1931 | num = 0 | |
| 1932 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1933 | refpart.Anchored = true | |
| 1934 | refpart.CFrame = CFrame.new(pos) | |
| 1935 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1936 | end | |
| 1937 | ||
| 1938 | do | |
| 1939 | if num <= 0 then | |
| 1940 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1941 | refpart.Anchored = true | |
| 1942 | refpart.CFrame = CFrame.new(pos) | |
| 1943 | if hit ~= nil then | |
| 1944 | for i = 0,1 do | |
| 1945 | ||
| 1946 | makeLightning(LightMod, partt.Position, refpart.Position, 0.3, 4, 20, 1, 10) | |
| 1947 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
| |
| 1948 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
| |
| 1949 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
| |
| 1950 | MagniDamage(refpart, 3, 5, 10, 8, "Snare") | |
| 1951 | swait() | |
| 1952 | end | |
| 1953 | ||
| 1954 | ||
| 1955 | end | |
| 1956 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 1957 | end | |
| 1958 | end | |
| 1959 | until num <= 0 | |
| 1960 | end | |
| 1961 | )) | |
| 1962 | end | |
| 1963 | ||
| 1964 | ||
| 1965 | shoottraildd = function(mouse, partt, SpreadAmount) | |
| 1966 | ||
| 1967 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 1968 | local MainPos = partt.Position | |
| 1969 | local MainPos2 = mouse + SpreadVectors | |
| 1970 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 1971 | local speed = 1000 | |
| 1972 | local num = 1 | |
| 1973 | coroutine.resume(coroutine.create(function() | |
| 1974 | ||
| 1975 | repeat | |
| 1976 | swait() | |
| 1977 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 1978 | local mag = (MainPos - pos).magnitude | |
| 1979 | Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.195, 0, -0.195, 0.15)
| |
| 1980 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 1981 | num = num - 1 | |
| 1982 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 1983 | if hit ~= nil then | |
| 1984 | num = 0 | |
| 1985 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1986 | refpart.Anchored = true | |
| 1987 | refpart.CFrame = CFrame.new(pos) | |
| 1988 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 1989 | end | |
| 1990 | do | |
| 1991 | if num <= 0 then | |
| 1992 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 1993 | refpart.Anchored = true | |
| 1994 | refpart.CFrame = CFrame.new(pos) | |
| 1995 | if hit ~= nil then | |
| 1996 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
| |
| 1997 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
| |
| 1998 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
| |
| 1999 | MagniDamage(refpart, 3, 10, 15, 0, "Normal") | |
| 2000 | end | |
| 2001 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 2002 | end | |
| 2003 | end | |
| 2004 | until num <= 0 | |
| 2005 | end | |
| 2006 | )) | |
| 2007 | end | |
| 2008 | ||
| 2009 | shoottraildd2 = function(mouse, partt, SpreadAmount) | |
| 2010 | ||
| 2011 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
| 2012 | local MainPos = partt.Position | |
| 2013 | local MainPos2 = mouse + SpreadVectors | |
| 2014 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 2015 | local speed = 1000 | |
| 2016 | local num = 1 | |
| 2017 | coroutine.resume(coroutine.create(function() | |
| 2018 | ||
| 2019 | repeat | |
| 2020 | swait() | |
| 2021 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
| 2022 | local mag = (MainPos - pos).magnitude | |
| 2023 | Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.5, 0, -0.5, .5)
| |
| 2024 | MainPos = MainPos + MouseLook.lookVector * speed | |
| 2025 | num = num - 1 | |
| 2026 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
| 2027 | if hit ~= nil then | |
| 2028 | num = 0 | |
| 2029 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 2030 | refpart.Anchored = true | |
| 2031 | refpart.CFrame = CFrame.new(pos) | |
| 2032 | game:GetService("Debris"):AddItem(refpart, 2)
| |
| 2033 | end | |
| 2034 | do | |
| 2035 | if num <= 0 then | |
| 2036 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
| |
| 2037 | refpart.Anchored = true | |
| 2038 | refpart.CFrame = CFrame.new(pos) | |
| 2039 | if hit ~= nil then | |
| 2040 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
| |
| 2041 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
| |
| 2042 | BlockEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
| |
| 2043 | MagniDamage(refpart, 3, 20, 40, 0, "Snare") | |
| 2044 | end | |
| 2045 | game:GetService("Debris"):AddItem(refpart, 0)
| |
| 2046 | end | |
| 2047 | end | |
| 2048 | until num <= 0 | |
| 2049 | end | |
| 2050 | )) | |
| 2051 | end | |
| 2052 | ||
| 2053 | ||
| 2054 | function idleanim2() | |
| 2055 | for i = 0, 1, 0.1 do | |
| 2056 | swait() | |
| 2057 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1) * angles(math.rad(0), math.rad(0), math.rad(10)), .2) | |
| 2058 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0 + 0.7 * math.cos(sine / 25)), math.rad(0), math.rad(-10)), .2) | |
| 2059 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.0) * angles(math.rad(0), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2060 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2) | |
| 2061 | RH.C0 = clerp(RH.C0, cn(1, -.7 - 0.0 * math.cos(sine / 25), -.3) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(50 + 1.1 * math.cos(sine / 25))), .2) | |
| 2062 | LH.C0 = clerp(LH.C0, cn(-1, -.6 - 0.0 * math.cos(sine / 25), -.3) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-40 + 1.1 * math.cos(sine / 25))), .2) | |
| 2063 | GuW.C0 = clerp(GuW.C0, CFrame.new(-1.4,-1.5,0) * angles(math.rad(-0), math.rad(0), math.rad(90)), 0.1) | |
| 2064 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2065 | end | |
| 2066 | end | |
| 2067 | ||
| 2068 | function MinShotAttackAnim1() | |
| 2069 | ||
| 2070 | for i = 0, 1, 0.3 do | |
| 2071 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z)) | |
| 2072 | swait() | |
| 2073 | ||
| 2074 | if Torsovelocity > 1 then | |
| 2075 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0), math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
| 2076 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5))), .2) | |
| 2077 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2078 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2079 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4)+ RootPart.RotVelocity.Y / 10)), .3) | |
| 2080 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4))), .3) | |
| 2081 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2082 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2083 | elseif Torsovelocity < 1 then | |
| 2084 | ||
| 2085 | ||
| 2086 | ||
| 2087 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2088 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2089 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2090 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2091 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2092 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2093 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2094 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2095 | end | |
| 2096 | end | |
| 2097 | ||
| 2098 | ||
| 2099 | ||
| 2100 | ||
| 2101 | ||
| 2102 | ||
| 2103 | ||
| 2104 | ||
| 2105 | end | |
| 2106 | ||
| 2107 | ||
| 2108 | function ShotAttackAnim1() | |
| 2109 | for i = 0, 1, 0.3 do | |
| 2110 | ||
| 2111 | swait() | |
| 2112 | ||
| 2113 | if Torsovelocity > 1 then | |
| 2114 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
| 2115 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2) | |
| 2116 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2117 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2118 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2119 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2120 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2121 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2122 | elseif Torsovelocity < 1 then | |
| 2123 | ||
| 2124 | ||
| 2125 | ||
| 2126 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2127 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2128 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2129 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2130 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2131 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2132 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2133 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2134 | end | |
| 2135 | end | |
| 2136 | ||
| 2137 | ||
| 2138 | ||
| 2139 | ||
| 2140 | ||
| 2141 | ||
| 2142 | ||
| 2143 | ||
| 2144 | end | |
| 2145 | ||
| 2146 | ||
| 2147 | function ShotAttackAnim2() | |
| 2148 | for i = 0, 2, 0.1 do | |
| 2149 | swait() | |
| 2150 | ||
| 2151 | if Torsovelocity > 2 then | |
| 2152 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2) | |
| 2153 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
| 2154 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3) | |
| 2155 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2) | |
| 2156 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2157 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2158 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2159 | DW.C0 = clerp(DW.C0, CFrame.new(4+.1 * math.cos(sine / 5) , 7.05 - .1 * math.cos(sine / 3), 2.5 + .1 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 2160 | elseif Torsovelocity < 1 then | |
| 2161 | ||
| 2162 | ||
| 2163 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
| 2164 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
| 2165 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
| 2166 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1) | |
| 2167 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 2168 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 2169 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1) | |
| 2170 | ||
| 2171 | DW.C0 = clerp(DW.C0, CFrame.new(2 + .1 * math.cos(sine / 5) ,7 + -.2 * math.cos(sine / 20), 0 + .1 * math.cos(sine / 5)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05) | |
| 2172 | end | |
| 2173 | end | |
| 2174 | end | |
| 2175 | ||
| 2176 | function ShotAttackAnim3() | |
| 2177 | for i = 0, 2, 0.1 do | |
| 2178 | swait() | |
| 2179 | ||
| 2180 | if Torsovelocity > 2 then | |
| 2181 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
| 2182 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
| 2183 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2184 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2185 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2186 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2187 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2188 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2189 | elseif Torsovelocity < 1 then | |
| 2190 | ||
| 2191 | ||
| 2192 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2193 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2194 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2195 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2196 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2) | |
| 2197 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2) | |
| 2198 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2199 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2200 | end | |
| 2201 | end | |
| 2202 | ||
| 2203 | ||
| 2204 | ||
| 2205 | for i = 0, 1, 0.4 do | |
| 2206 | swait() | |
| 2207 | ||
| 2208 | if Torsovelocity > 2 then | |
| 2209 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2) | |
| 2210 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
| 2211 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
| 2212 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1) | |
| 2213 | RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2214 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3) | |
| 2215 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2216 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2217 | elseif Torsovelocity < 1 then | |
| 2218 | ||
| 2219 | ||
| 2220 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2221 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2222 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
| 2223 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1) | |
| 2224 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
| 2225 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
| 2226 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2227 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2228 | end | |
| 2229 | end | |
| 2230 | end | |
| 2231 | ||
| 2232 | ||
| 2233 | ||
| 2234 | ||
| 2235 | ||
| 2236 | ||
| 2237 | ||
| 2238 | ||
| 2239 | function holding() | |
| 2240 | ||
| 2241 | ||
| 2242 | ||
| 2243 | ||
| 2244 | while Rapid == true and attack==true and sentrymode == false do | |
| 2245 | ||
| 2246 | attack = true | |
| 2247 | ||
| 2248 | ||
| 2249 | MinShotAttackAnim1() | |
| 2250 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2251 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
| |
| 2252 | shoottraildd(mouse.Hit.p, gun1, .55) | |
| 2253 | ||
| 2254 | MinShotAttackAnim1() | |
| 2255 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2256 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
| |
| 2257 | shoottraildd(mouse.Hit.p, gun2, .55) | |
| 2258 | MinShotAttackAnim1() | |
| 2259 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2260 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
| |
| 2261 | shoottraildd(mouse.Hit.p, gun3, .55) | |
| 2262 | MinShotAttackAnim1() | |
| 2263 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2264 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
| |
| 2265 | shoottraildd(mouse.Hit.p, gun4, .55) | |
| 2266 | end | |
| 2267 | ||
| 2268 | ||
| 2269 | ||
| 2270 | attack = false | |
| 2271 | end | |
| 2272 | ||
| 2273 | mouse.KeyDown:connect(function(k) | |
| 2274 | if k == "t" then | |
| 2275 | CreateSound("171014742", Torso, 10, 1)
| |
| 2276 | end | |
| 2277 | end) | |
| 2278 | ||
| 2279 | mouse.KeyUp:connect(function(k) | |
| 2280 | if k == "z" and Rapid == true then | |
| 2281 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
| |
| 2282 | Rapid = false | |
| 2283 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08)
| |
| 2284 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1)
| |
| 2285 | ||
| 2286 | end | |
| 2287 | end) | |
| 2288 | ||
| 2289 | ||
| 2290 | ||
| 2291 | mouse.KeyDown:connect(function(k) | |
| 2292 | if k == "z" and sentrymode == false and attack == false then | |
| 2293 | attack = true | |
| 2294 | Rapid = true | |
| 2295 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
| |
| 2296 | MinShotAttackAnim1() | |
| 2297 | MinShotAttackAnim1() | |
| 2298 | for i = 0,10 do | |
| 2299 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2300 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2301 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2302 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
| |
| 2303 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07)
| |
| 2304 | MinShotAttackAnim1() | |
| 2305 | end | |
| 2306 | holding() | |
| 2307 | end | |
| 2308 | end) | |
| 2309 | ||
| 2310 | ||
| 2311 | ||
| 2312 | ||
| 2313 | mouse.KeyDown:connect(function(k) | |
| 2314 | ||
| 2315 | ||
| 2316 | if attack == false and k == "x" and sentrymode == false then | |
| 2317 | ||
| 2318 | ||
| 2319 | ||
| 2320 | ||
| 2321 | attack = true | |
| 2322 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
| |
| 2323 | for i=1,5 do | |
| 2324 | ||
| 2325 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2326 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2327 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2328 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2329 | ShotAttackAnim1() | |
| 2330 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2331 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2332 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2333 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2334 | ShotAttackAnim1() | |
| 2335 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2336 | BlockEffect(BrickColor.new("Pastel Blue"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2337 | BlockEffect(BrickColor.new("Pastel Blue"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2338 | BlockEffect(BrickColor.new("Pastel Blue"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2339 | ||
| 2340 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
| |
| 2341 | ShotAttackAnim1() | |
| 2342 | end | |
| 2343 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
| |
| 2344 | for i=1,2 do | |
| 2345 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
| |
| 2346 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
| |
| 2347 | BlockEffect(BrickColor.new("Pastel Blue"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
| |
| 2348 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
| |
| 2349 | end | |
| 2350 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2351 | ||
| 2352 | ||
| 2353 | MagniDamage(gun1, 15, 20, 69, 99, "Normal") | |
| 2354 | ShotAttackAnim3() | |
| 2355 | ||
| 2356 | ||
| 2357 | ||
| 2358 | ||
| 2359 | for i=1,2 do | |
| 2360 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2361 | ShotAttackAnim1() | |
| 2362 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2363 | ShotAttackAnim1() | |
| 2364 | BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
| |
| 2365 | ShotAttackAnim1() | |
| 2366 | end | |
| 2367 | ||
| 2368 | attack = false | |
| 2369 | ||
| 2370 | end | |
| 2371 | ||
| 2372 | ||
| 2373 | ||
| 2374 | if k == "r" and attack == false then | |
| 2375 | attack=true | |
| 2376 | while Torsovelocity < 1 do | |
| 2377 | attack=true | |
| 2378 | idleanim2() | |
| 2379 | ||
| 2380 | ||
| 2381 | ||
| 2382 | end | |
| 2383 | attack=false | |
| 2384 | ||
| 2385 | end | |
| 2386 | ||
| 2387 | ||
| 2388 | ||
| 2389 | ||
| 2390 | ||
| 2391 | ||
| 2392 | ||
| 2393 | ||
| 2394 | if k == "v" and sentrymode == false and attack == false and ultwait==false then | |
| 2395 | ultwait=true | |
| 2396 | attack = true | |
| 2397 | Humanoid.WalkSpeed = 0 | |
| 2398 | local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace})
| |
| 2399 | wait() | |
| 2400 | Sond:play() | |
| 2401 | ||
| 2402 | for i = 0, 1, 0.1 do | |
| 2403 | swait() | |
| 2404 | ||
| 2405 | ||
| 2406 | ||
| 2407 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2408 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2409 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2410 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2411 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2412 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2413 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2414 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2415 | ||
| 2416 | end | |
| 2417 | ||
| 2418 | ||
| 2419 | for i = 0, 2, 0.1 do | |
| 2420 | swait() | |
| 2421 | ||
| 2422 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
| |
| 2423 | ||
| 2424 | ||
| 2425 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2426 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
| 2427 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2428 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2) | |
| 2429 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2) | |
| 2430 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
| 2431 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2432 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2433 | ||
| 2434 | end | |
| 2435 | ||
| 2436 | ||
| 2437 | for i = 0, 58, 0.1 do | |
| 2438 | swait() | |
| 2439 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08)
| |
| 2440 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1)
| |
| 2441 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2)
| |
| 2442 | ||
| 2443 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2444 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
| 2445 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1) | |
| 2446 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1) | |
| 2447 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
| 2448 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
| 2449 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2450 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2451 | ||
| 2452 | end | |
| 2453 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1)
| |
| 2454 | for i = 0, 55, 0.1 do | |
| 2455 | swait() | |
| 2456 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08)
| |
| 2457 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
| |
| 2458 | Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 6, .1, .1)
| |
| 2459 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2)
| |
| 2460 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01) | |
| 2461 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
| 2462 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2463 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2) | |
| 2464 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
| 2465 | LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2466 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2467 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2468 | ||
| 2469 | end | |
| 2470 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1)
| |
| 2471 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7)
| |
| 2472 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
| |
| 2473 | for i = 0, 10, 0.1 do | |
| 2474 | swait() | |
| 2475 | ||
| 2476 | Effects.Wave.Create (BrickColor.new("Pastel Blue"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08)
| |
| 2477 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08)
| |
| 2478 | Effects.Ring.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1)
| |
| 2479 | Effects.Break.Create (BrickColor.new("Pastel Blue"), LeftArm.CFrame, 76, .1, .1)
| |
| 2480 | BlockEffect(BrickColor.new("Pastel Blue"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1)
| |
| 2481 | ||
| 2482 | ||
| 2483 | MagniKILL(Torso, 80,99,99999999, 0, "Normal") | |
| 2484 | ||
| 2485 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2486 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2) | |
| 2487 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2488 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2) | |
| 2489 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1) | |
| 2490 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2) | |
| 2491 | GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 2492 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2493 | ||
| 2494 | end | |
| 2495 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7)
| |
| 2496 | ||
| 2497 | for i = 0, 1, 0.1 do | |
| 2498 | swait() | |
| 2499 | ||
| 2500 | ||
| 2501 | ||
| 2502 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2) | |
| 2503 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2) | |
| 2504 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2) | |
| 2505 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2) | |
| 2506 | RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2507 | LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2) | |
| 2508 | GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1) | |
| 2509 | DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 2510 | ||
| 2511 | end | |
| 2512 | Humanoid.WalkSpeed = 16 | |
| 2513 | Sond:Destroy() | |
| 2514 | ||
| 2515 | attack = false | |
| 2516 | wait(30) | |
| 2517 | ultwait=false | |
| 2518 | end | |
| 2519 | ||
| 2520 | if k == "e" then | |
| 2521 | ||
| 2522 | if sentrymode== false then | |
| 2523 | if attack == false then | |
| 2524 | GlowParticle.Enabled = true | |
| 2525 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
| |
| 2526 | sentrymode= true | |
| 2527 | end | |
| 2528 | else | |
| 2529 | sentrymode=false | |
| 2530 | GlowParticle.Enabled = false | |
| 2531 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
| |
| 2532 | end | |
| 2533 | end | |
| 2534 | ||
| 2535 | end) | |
| 2536 | mouse.Button1Down:connect(function(key) | |
| 2537 | if attack == false and sentrymode == false then | |
| 2538 | attack = true | |
| 2539 | ShotAttackAnim2() | |
| 2540 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
| |
| 2541 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
| |
| 2542 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
| |
| 2543 | bigLigLaser(mouse.Hit.p, LaPart, 0) | |
| 2544 | ShotAttackAnim2() | |
| 2545 | attack = false | |
| 2546 | end | |
| 2547 | end) | |
| 2548 | ||
| 2549 | ||
| 2550 | ||
| 2551 | ||
| 2552 | ------------------------------------------------------------------------------------------------ | |
| 2553 | local HiveMind = {}
| |
| 2554 | ||
| 2555 | function HiveMind:new(owner) | |
| 2556 | self.__index = self | |
| 2557 | local o = {mind = {}, mindState = "FOLLOW", victimObject = nil}
| |
| 2558 | o.owner = owner | |
| 2559 | setmetatable(o, self) | |
| 2560 | return o | |
| 2561 | end | |
| 2562 | ||
| 2563 | function HiveMind:add(model, humanoid, torso) | |
| 2564 | if model and humanoid and torso then | |
| 2565 | table.insert(self.mind, {model = model, humanoid = humanoid,
| |
| 2566 | torso = torso}) | |
| 2567 | local hiv = self | |
| 2568 | local lastJump = 0 | |
| 2569 | torso.Touched:connect(function(object) | |
| 2570 | local hive = false | |
| 2571 | if hiv.owner.Character | |
| 2572 | and object:IsDescendantOf(hiv.owner.Character) == false | |
| 2573 | then | |
| 2574 | for i = 1, #hiv.mind do | |
| 2575 | if object:IsDescendantOf(hiv.mind[i].model) then | |
| 2576 | hive = true | |
| 2577 | break | |
| 2578 | end | |
| 2579 | end | |
| 2580 | if not hive then | |
| 2581 | local hum = object.Parent | |
| 2582 | and object.Parent:FindFirstChild("Humanoid")
| |
| 2583 | if hum then | |
| 2584 | hum:TakeDamage(1) | |
| 2585 | end | |
| 2586 | elseif time() - lastJump > 2 then | |
| 2587 | lastJump = time(0) + math.random()*1 | |
| 2588 | humanoid.Jump = true | |
| 2589 | end | |
| 2590 | end | |
| 2591 | end) | |
| 2592 | end | |
| 2593 | end | |
| 2594 | ||
| 2595 | function HiveMind:cleanupHive() | |
| 2596 | local i = 1 | |
| 2597 | while i <= #self.mind do | |
| 2598 | if self.mind[i].model:IsDescendantOf(game) == false | |
| 2599 | or self.mind[i].humanoid.Health == 0 then | |
| 2600 | table.remove(self.mind, i) | |
| 2601 | else | |
| 2602 | i = i + 1 | |
| 2603 | end | |
| 2604 | end | |
| 2605 | end | |
| 2606 | ||
| 2607 | function HiveMind:getOrbitNumberFromUnitNumber(i) | |
| 2608 | local circleNumber = 0 | |
| 2609 | while self:getUnitsInOrbit(circleNumber) < i do | |
| 2610 | i = i - self:getUnitsInOrbit(circleNumber) | |
| 2611 | circleNumber = circleNumber + 1 | |
| 2612 | end | |
| 2613 | return circleNumber, i | |
| 2614 | end | |
| 2615 | ||
| 2616 | function HiveMind:getOrbitDiameter(orbitNumber) | |
| 2617 | return math.pi*(orbitNumber*14) | |
| 2618 | end | |
| 2619 | ||
| 2620 | function HiveMind:getUnitsInOrbit(orbitNumber) | |
| 2621 | return math.floor(self:getOrbitDiameter(orbitNumber)/5) | |
| 2622 | end | |
| 2623 | ||
| 2624 | function HiveMind:lineup(location) | |
| 2625 | for i = 1, #self.mind do | |
| 2626 | local row = (i - 1) % 3 | |
| 2627 | local column = math.floor((i - 1) / 3) | |
| 2628 | local xOffset, yOffset | |
| 2629 | if row == 0 then | |
| 2630 | xOffset = -7 | |
| 2631 | elseif row == 1 then | |
| 2632 | xOffset = 0 | |
| 2633 | else | |
| 2634 | xOffset = 7 | |
| 2635 | end | |
| 2636 | yOffset = column * 7 | |
| 2637 | local position = location * CFrame.new(xOffset, 0, yOffset) | |
| 2638 | self.mind[i].humanoid:MoveTo(position.p, workspace.Base) | |
| 2639 | end | |
| 2640 | end | |
| 2641 | ||
| 2642 | function HiveMind:ownerTorso() | |
| 2643 | return self.owner.Character | |
| 2644 | and self.owner.Character:FindFirstChild("Torso")
| |
| 2645 | end | |
| 2646 | function HiveMind:update() | |
| 2647 | self:cleanupHive() | |
| 2648 | if self.owner.Character then | |
| 2649 | local ownerTorso = self.owner.Character:FindFirstChild("Torso")
| |
| 2650 | if ownerTorso then | |
| 2651 | if (self.mindState == "FOLLOW") then | |
| 2652 | local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9) | |
| 2653 | self:lineup(hiveSpawn) | |
| 2654 | elseif (self.mindState == "CIRCLE") then | |
| 2655 | self:circle(ownerTorso.Position) | |
| 2656 | elseif (self.mindState == "ATTACK") then | |
| 2657 | self:crowdAttack() | |
| 2658 | elseif (self.mindState == "Deffend") then | |
| 2659 | self:deffend() | |
| 2660 | elseif (self.mindState == "GOTO") then | |
| 2661 | self:pushToTarget() | |
| 2662 | end | |
| 2663 | end | |
| 2664 | end | |
| 2665 | end | |
| 2666 | local me = owner | |
| 2667 | local hiveMind = HiveMind:new(me) | |
| 2668 | - | local me = game:GetService("Players").LocalPlayer
|
| 2668 | + | |
| 2669 | ------------------------------------------------------------------------------------------------ | |
| 2670 | ||
| 2671 | function findNearestTorso(pos,dist2) | |
| 2672 | local list = game.Workspace:children() | |
| 2673 | local torso = nil | |
| 2674 | if dist2 == nil then | |
| 2675 | dist2=50 | |
| 2676 | ||
| 2677 | end | |
| 2678 | local dist = dist2 | |
| 2679 | local temp = nil | |
| 2680 | local human = nil | |
| 2681 | local temp2 = nil | |
| 2682 | for x = 1, #list do | |
| 2683 | temp2 = list[x] | |
| 2684 | if (temp2.className == "Model") and (temp2 ~= Character) then | |
| 2685 | temp = temp2:findFirstChild("HumanoidRootPart")
| |
| 2686 | human = temp2:findFirstChild("Humanoid")
| |
| 2687 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
| 2688 | if (temp.Position - pos).magnitude < dist then | |
| 2689 | torso = temp | |
| 2690 | ||
| 2691 | dist = (temp.Position - pos).magnitude | |
| 2692 | else | |
| 2693 | ||
| 2694 | end | |
| 2695 | ||
| 2696 | ||
| 2697 | ||
| 2698 | ||
| 2699 | end | |
| 2700 | end | |
| 2701 | end | |
| 2702 | return torso | |
| 2703 | end | |
| 2704 | ||
| 2705 | ||
| 2706 | game:GetService("RunService"):BindToRenderStep("ew", 0, function()
| |
| 2707 | ||
| 2708 | ||
| 2709 | ||
| 2710 | ||
| 2711 | ||
| 2712 | if sentrymode == true and sonarwait == false then | |
| 2713 | sonarwait = true | |
| 2714 | ||
| 2715 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
| |
| 2716 | ||
| 2717 | wait(1) | |
| 2718 | sonarwait = false | |
| 2719 | end | |
| 2720 | ||
| 2721 | ||
| 2722 | ||
| 2723 | ||
| 2724 | wait() | |
| 2725 | if sentrymode == true then | |
| 2726 | ||
| 2727 | local target = findNearestTorso(Character.HumanoidRootPart.Position,30) | |
| 2728 | if target ~= nil then | |
| 2729 | ShotAttackAnim2() | |
| 2730 | if sentrywait == false then | |
| 2731 | sentrywait = true | |
| 2732 | attack= true | |
| 2733 | ||
| 2734 | ||
| 2735 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
| |
| 2736 | BlockEffect(BrickColor.new("Pastel Blue"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
| |
| 2737 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8)
| |
| 2738 | LigLaser(target.Position, LaPart, 0) | |
| 2739 | wait() | |
| 2740 | attack= false | |
| 2741 | sentrywait = false | |
| 2742 | end | |
| 2743 | ||
| 2744 | ||
| 2745 | end | |
| 2746 | ||
| 2747 | end | |
| 2748 | end) | |
| 2749 | ||
| 2750 | ||
| 2751 | sonarwait = false | |
| 2752 | ||
| 2753 | ||
| 2754 | ||
| 2755 | ||
| 2756 | ||
| 2757 | ||
| 2758 | ||
| 2759 | ||
| 2760 | ||
| 2761 | ||
| 2762 | FaceIdList = {'117930174'}
| |
| 2763 | FaceId = FaceIdList[math.random(1,#FaceIdList)] | |
| 2764 | ||
| 2765 | ||
| 2766 | ||
| 2767 | ||
| 2768 | ||
| 2769 | local YourName = game.Players.LocalPlayer.Name | |
| 2770 | Character = Player.Character | |
| 2771 | ||
| 2772 | ||
| 2773 | Heartbeat = Instance.new("BindableEvent")
| |
| 2774 | Heartbeat.Name = "Heartbeat" | |
| 2775 | Heartbeat.Parent = script | |
| 2776 | frame = 0.03333333333333333 | |
| 2777 | tf = 0 | |
| 2778 | ||
| 2779 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 2780 | tf = tf + s | |
| 2781 | if tf >= frame then | |
| 2782 | for i = 1, math.floor(tf / frame) do | |
| 2783 | Heartbeat:Fire() | |
| 2784 | end | |
| 2785 | tf = tf - frame * math.floor(tf / frame) | |
| 2786 | end | |
| 2787 | end) | |
| 2788 | local nscale = Instance.new("NumberValue")
| |
| 2789 | nscale.Value = 1 | |
| 2790 | nscale.Parent = nil | |
| 2791 | nscale.Changed:connect(function() | |
| 2792 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2793 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2794 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2795 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2796 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2797 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2798 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2799 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2800 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2801 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2802 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2803 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2804 | end) | |
| 2805 | ||
| 2806 | function makegloo(paren, co, ci, parto, parti, nam) | |
| 2807 | local gloo = Instance.new("Glue")
| |
| 2808 | gloo.Name = nam | |
| 2809 | gloo.C0 = co | |
| 2810 | gloo.C1 = ci | |
| 2811 | gloo.Part0 = parto | |
| 2812 | gloo.Part1 = parti | |
| 2813 | gloo.Parent = paren | |
| 2814 | end | |
| 2815 | function makejoint(paren, co, ci, parto, parti, nam) | |
| 2816 | local gloo = Instance.new("Motor6D")
| |
| 2817 | gloo.Name = nam | |
| 2818 | gloo.C0 = co | |
| 2819 | gloo.C1 = ci | |
| 2820 | gloo.Part0 = parto | |
| 2821 | gloo.Part1 = parti | |
| 2822 | gloo.Parent = paren | |
| 2823 | end | |
| 2824 | function maketouchy(parent, limb, cframe) | |
| 2825 | local pr = Instance.new("Part")
| |
| 2826 | pr.Name = "touchy" | |
| 2827 | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
| 2828 | pr.Transparency = 1 | |
| 2829 | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) | |
| 2830 | pr.CanCollide = true | |
| 2831 | pr.Anchored = false | |
| 2832 | pr.Parent = parent | |
| 2833 | local w = Instance.new("Weld")
| |
| 2834 | w.Part0 = pr | |
| 2835 | w.Part1 = limb | |
| 2836 | w.C0 = cframe | |
| 2837 | w.Parent = pr | |
| 2838 | end | |
| 2839 | --[[ function swait(num) | |
| 2840 | if num == 0 or num == nil then | |
| 2841 | Heartbeat.Event:wait() | |
| 2842 | else | |
| 2843 | for i = 1, num do | |
| 2844 | Heartbeat.Event:wait() | |
| 2845 | end | |
| 2846 | end | |
| 2847 | end | |
| 2848 | --]] | |
| 2849 | modz = Instance.new("Model")
| |
| 2850 | modz.Name = "efx" | |
| 2851 | modz.Parent = Character | |
| 2852 | ||
| 2853 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2854 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2855 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2856 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2857 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2858 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2859 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2860 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2861 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2862 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2863 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2864 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2865 | local nscale = Instance.new("NumberValue")
| |
| 2866 | nscale.Value = 1 | |
| 2867 | nscale.Parent = nil | |
| 2868 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2869 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2870 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2871 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2872 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2873 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2874 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2875 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2876 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2877 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2878 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2879 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2880 | ||
| 2881 | ||
| 2882 | ||
| 2883 | ||
| 2884 | ||
| 2885 | ||
| 2886 | ||
| 2887 | ||
| 2888 | ||
| 2889 | ||
| 2890 | ||
| 2891 | ||
| 2892 | ||
| 2893 | sWaiting=false | |
| 2894 | wait3=false | |
| 2895 | shotval = 0 | |
| 2896 | ||
| 2897 | npcname = ""..Character.Name.."'s Combine" | |
| 2898 | ||
| 2899 | ||
| 2900 | Character.ChildAdded:connect(function(object) | |
| 2901 | if object.Name == npcname then | |
| 2902 | hiveMind:add(object, object:WaitForChild("Humanoid"),
| |
| 2903 | object:WaitForChild("Torso"))
| |
| 2904 | end | |
| 2905 | end) | |
| 2906 | game:GetService("RunService").Stepped:connect(function()
| |
| 2907 | hiveMind:update() | |
| 2908 | end) | |
| 2909 | ||
| 2910 | function makenoob(cfrem, scalo, rags) | |
| 2911 | nscale.Value = scalo | |
| 2912 | local md = Instance.new("Model")
| |
| 2913 | md.Name = ""..Character.Name.."'s Combine" | |
| 2914 | md.Parent = Character | |
| 2915 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
| |
| 2916 | wait(.5) | |
| 2917 | local hu = Instance.new("Humanoid")
| |
| 2918 | hu.RigType = "R6" | |
| 2919 | hu.MaxHealth = 150 * scalo | |
| 2920 | hu.Health = 150 * scalo | |
| 2921 | hu.Parent = md | |
| 2922 | hu.DisplayDistanceType="Viewer" | |
| 2923 | hu.HealthDisplayDistance=100 | |
| 2924 | hu.NameDisplayDistance=100 | |
| 2925 | hu.NameOcclusion="EnemyOcclusion" | |
| 2926 | local anm = Instance.new("Animator")
| |
| 2927 | anm.Parent = hu | |
| 2928 | local forthisnpcanim = npcanim:Clone() | |
| 2929 | forthisnpcanim.Parent = md | |
| 2930 | hu.PlatformStand = true | |
| 2931 | local light = function(part) | |
| 2932 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
| 2933 | end | |
| 2934 | local hd = Instance.new("Part")
| |
| 2935 | hd.Name = "Head" | |
| 2936 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
| 2937 | hd.TopSurface = "Smooth" | |
| 2938 | hd.BottomSurface = "Inlet" | |
| 2939 | hd.Locked = true | |
| 2940 | hd.BrickColor = BrickColor.new("Pastel brown")
| |
| 2941 | hd.CanCollide = true | |
| 2942 | hd.Anchored = false | |
| 2943 | light(hd) | |
| 2944 | hd.Parent = md | |
| 2945 | local hm = Instance.new("SpecialMesh")
| |
| 2946 | hm.MeshType = "Head" | |
| 2947 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
| 2948 | hm.Parent = hd | |
| 2949 | ||
| 2950 | ||
| 2951 | ||
| 2952 | shirt = Instance.new("Shirt", md)
| |
| 2953 | shirt.Name = "Shirt" | |
| 2954 | pants = Instance.new("Pants", md)
| |
| 2955 | pants.Name = "Pants" | |
| 2956 | md.Shirt.ShirtTemplate = "rbxassetid://245656735" | |
| 2957 | md.Pants.PantsTemplate = "rbxassetid://245656766" | |
| 2958 | function loada(anim) | |
| 2959 | local loaded = md.Humanoid:LoadAnimation(anim) | |
| 2960 | return loaded | |
| 2961 | end | |
| 2962 | IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"})
| |
| 2963 | IdleAnim = loada(IdleA) | |
| 2964 | ||
| 2965 | local hf = Instance.new("Decal")
| |
| 2966 | ||
| 2967 | ||
| 2968 | ||
| 2969 | ||
| 2970 | ||
| 2971 | ||
| 2972 | ||
| 2973 | FaceId = FaceIdList[math.random(1,#FaceIdList)] | |
| 2974 | ||
| 2975 | ||
| 2976 | ||
| 2977 | ||
| 2978 | ||
| 2979 | hf.Texture = "rbxassetid://"..FaceId | |
| 2980 | ||
| 2981 | hf.Face = "Front" | |
| 2982 | hf.Parent = hd | |
| 2983 | local hrpa = Instance.new("Part")
| |
| 2984 | hrpa.Name = "HumanoidRootPart" | |
| 2985 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
| 2986 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 2987 | hrpa.Transparency = 1 | |
| 2988 | hrpa.CanCollide = false | |
| 2989 | hrpa.Locked = true | |
| 2990 | light(hrpa) | |
| 2991 | hrpa.Parent = md | |
| 2992 | local tagbomb = Instance.new("BoolValue")
| |
| 2993 | tagbomb.Name = "tagbomb" | |
| 2994 | tagbomb.Value = false | |
| 2995 | tagbomb.Parent = hrpa | |
| 2996 | local learm = Instance.new("Part")
| |
| 2997 | learm.Name = "Left Arm" | |
| 2998 | learm.BrickColor = BrickColor.new("Pastel brown")
| |
| 2999 | learm.CanCollide = false | |
| 3000 | learm.Locked = true | |
| 3001 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 3002 | light(learm) | |
| 3003 | learm.Parent = md | |
| 3004 | local riarm = Instance.new("Part")
| |
| 3005 | riarm.Name = "Right Arm" | |
| 3006 | riarm.BrickColor = BrickColor.new("Pastel brown")
| |
| 3007 | riarm.CanCollide = false | |
| 3008 | riarm.Locked = true | |
| 3009 | light(riarm) | |
| 3010 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 3011 | riarm.Parent = md | |
| 3012 | local leleg = Instance.new("Part")
| |
| 3013 | leleg.Name = "Left Leg" | |
| 3014 | leleg.BrickColor = BrickColor.new("Navy blue")
| |
| 3015 | leleg.CanCollide = false | |
| 3016 | leleg.Locked = true | |
| 3017 | light(leleg) | |
| 3018 | leleg.BottomSurface = 0 | |
| 3019 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 3020 | leleg.Parent = md | |
| 3021 | local rileg = Instance.new("Part")
| |
| 3022 | rileg.Name = "Right Leg" | |
| 3023 | rileg.BrickColor = BrickColor.new("Navy blue")
| |
| 3024 | rileg.CanCollide = false | |
| 3025 | rileg.Locked = true | |
| 3026 | light(rileg) | |
| 3027 | rileg.BottomSurface = 0 | |
| 3028 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 3029 | rileg.Parent = md | |
| 3030 | local tor = Instance.new("Part")
| |
| 3031 | tor.Name = "Torso" | |
| 3032 | tor.BrickColor = BrickColor.new("Pastel Blue")
| |
| 3033 | tor.Locked = true | |
| 3034 | light(tor) | |
| 3035 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
| 3036 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
| 3037 | tor.Parent = md | |
| 3038 | md.PrimaryPart = hrpa | |
| 3039 | md:SetPrimaryPartCFrame(cfrem) | |
| 3040 | md:makeJoints() | |
| 3041 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
| 3042 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
| 3043 | ||
| 3044 | if rags == true then | |
| 3045 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
| 3046 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
| 3047 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
| 3048 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
| 3049 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
| 3050 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
| 3051 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
| 3052 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
| 3053 | elseif rags == false then | |
| 3054 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
| 3055 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
| 3056 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
| 3057 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
| 3058 | hu.PlatformStand = false | |
| 3059 | ||
| 3060 | end | |
| 3061 | ||
| 3062 | ||
| 3063 | local Solhat = Instance.new("Accessory")
| |
| 3064 | Solhat.AttachmentPos = Vector3.new(0, .3, 0) | |
| 3065 | local SHH = Instance.new("Part",Solhat)
| |
| 3066 | SHH.Name = "Handle" | |
| 3067 | SHH.CanCollide=false | |
| 3068 | local SHHMesh = Instance.new("SpecialMesh",SHH)
| |
| 3069 | SHHMesh.Parent = SHH | |
| 3070 | SHHMesh.MeshId = "rbxassetid://31152467" | |
| 3071 | SHHMesh.TextureId = "rbxassetid://32002857" | |
| 3072 | SHHMesh.Scale = Vector3.new(1, 1, 1) | |
| 3073 | SHHMesh.VertexColor = Vector3.new(1, 1, 1) | |
| 3074 | ||
| 3075 | ||
| 3076 | ||
| 3077 | nscale.Value = 1 | |
| 3078 | ||
| 3079 | wait() | |
| 3080 | Solhat.Parent = md | |
| 3081 | Thegun = Instance.new("Part",riarm)
| |
| 3082 | Thegun.CanCollide=false | |
| 3083 | Thegun.Size = Vector3.new(1,1,1) | |
| 3084 | ThegunW = Instance.new("Weld")
| |
| 3085 | ThegunW.Name = "GuW" | |
| 3086 | ThegunW.Part0 = riarm | |
| 3087 | ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2) | |
| 3088 | ThegunW.C1 = cn(0, 0, 0) | |
| 3089 | ThegunW.Part1 = Thegun | |
| 3090 | ThegunW.Parent = riarm | |
| 3091 | local ThegunMesh = Instance.new("SpecialMesh",Thegun)
| |
| 3092 | ThegunMesh.Parent = Thegun | |
| 3093 | ThegunMesh.MeshId = "rbxassetid://477158943" | |
| 3094 | ThegunMesh.TextureId = "rbxassetid://477158949" | |
| 3095 | ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04) | |
| 3096 | ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0) | |
| 3097 | Thegun2 = Instance.new("Part",md)
| |
| 3098 | Thegun2.CanCollide=false | |
| 3099 | Thegun2.Size = Vector3.new(.1,.1,.1) | |
| 3100 | Thegun2.Name = "Shoot" | |
| 3101 | ThegunW2 = Instance.new("Weld")
| |
| 3102 | ThegunW2.Name = "GuW" | |
| 3103 | ThegunW2.Part0 = riarm | |
| 3104 | ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0) | |
| 3105 | ThegunW2.C1 = cn(0, 0, 0) | |
| 3106 | ThegunW2.Part1 = Thegun2 | |
| 3107 | ThegunW2.Parent = riarm | |
| 3108 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
| |
| 3109 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
| |
| 3110 | ||
| 3111 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
| |
| 3112 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
| |
| 3113 | wait(0.5) | |
| 3114 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
| |
| 3115 | IdleAnim:Play() | |
| 3116 | wait(2.5) | |
| 3117 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
| |
| 3118 | game:GetService("RunService"):BindToRenderStep("ew", 0, function()
| |
| 3119 | if md ~= nil and hu.Health > 0 and sentrymode == false then | |
| 3120 | if md ~= nil and hu.Health > 0 and sentrymode == false then | |
| 3121 | ||
| 3122 | if killcom==true or sentrymode == true and sWaiting==false then | |
| 3123 | ||
| 3124 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1)
| |
| 3125 | ||
| 3126 | ||
| 3127 | ||
| 3128 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
| |
| 3129 | BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
| |
| 3130 | ||
| 3131 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
| |
| 3132 | BlockEffect(BrickColor.new("Pastel Blue"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
| |
| 3133 | ||
| 3134 | ||
| 3135 | ||
| 3136 | hu.Health = 0 | |
| 3137 | game:service'Debris':AddItem(md, .0); | |
| 3138 | end | |
| 3139 | ||
| 3140 | ||
| 3141 | ||
| 3142 | ||
| 3143 | ||
| 3144 | hu.WalkSpeed = 16.5 | |
| 3145 | local target2 = findNearestTorso(hrpa.Position,60) | |
| 3146 | if target2 ~= nil then | |
| 3147 | hu:MoveTo(target2.Position, target2) | |
| 3148 | ||
| 3149 | end | |
| 3150 | ||
| 3151 | local target3 = findNearestTorso(hrpa.Position,45) | |
| 3152 | ||
| 3153 | if target3 ~= nil then | |
| 3154 | hu.WalkSpeed = 0 | |
| 3155 | tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s)) | |
| 3156 | end | |
| 3157 | ||
| 3158 | if target3 ~= nil and wait3==false and sentrymode == false then | |
| 3159 | wait3=true | |
| 3160 | ||
| 3161 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7)
| |
| 3162 | shoottraildd2(target3.Position, Thegun2, 1) | |
| 3163 | local PointLight = Instance.new("PointLight", Thegun2);
| |
| 3164 | PointLight.Color = Color3.new(1,0,0) | |
| 3165 | PointLight.Brightness = 50; | |
| 3166 | PointLight.Range = 10 | |
| 3167 | game:service'Debris':AddItem(PointLight, .02); | |
| 3168 | wait(2.2) | |
| 3169 | wait3=false | |
| 3170 | ||
| 3171 | ||
| 3172 | ||
| 3173 | --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s)) | |
| 3174 | ||
| 3175 | ||
| 3176 | end | |
| 3177 | ||
| 3178 | end | |
| 3179 | ||
| 3180 | for i,v in pairs(Character:GetChildren()) do | |
| 3181 | if ""..Character.Name.."'s Combine" then | |
| 3182 | ||
| 3183 | ||
| 3184 | ||
| 3185 | if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then | |
| 3186 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1)
| |
| 3187 | ||
| 3188 | ||
| 3189 | game:service'Debris':AddItem(md, 3); | |
| 3190 | ||
| 3191 | end | |
| 3192 | end | |
| 3193 | return md | |
| 3194 | ||
| 3195 | end | |
| 3196 | end | |
| 3197 | end) | |
| 3198 | ||
| 3199 | ||
| 3200 | ||
| 3201 | end | |
| 3202 | ||
| 3203 | ||
| 3204 | ||
| 3205 | ||
| 3206 | ||
| 3207 | ||
| 3208 | ||
| 3209 | ||
| 3210 | ||
| 3211 | ||
| 3212 | ||
| 3213 | ||
| 3214 | ||
| 3215 | ||
| 3216 | ||
| 3217 | function makecircle(cfrem, scalo) | |
| 3218 | local mcir1 = Instance.new("Part")
| |
| 3219 | mcir1.Anchored = true | |
| 3220 | mcir1.CanCollide = false | |
| 3221 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 3222 | mcir1.Transparency = 1 | |
| 3223 | mcir1.CFrame = cfrem | |
| 3224 | mcir1.Parent = modz | |
| 3225 | game.Debris:AddItem(mcir1, 8) | |
| 3226 | local d1 = Instance.new("Decal")
| |
| 3227 | d1.Texture = "rbxassetid://0" | |
| 3228 | d1.Face = "Front" | |
| 3229 | d1.Parent = mcir1 | |
| 3230 | local d2 = Instance.new("Decal")
| |
| 3231 | d2.Texture = "rbxassetid://0" | |
| 3232 | d2.Face = "Back" | |
| 3233 | d2.Parent = mcir1 | |
| 3234 | local bme = Instance.new("BlockMesh")
| |
| 3235 | bme.Parent = mcir1 | |
| 3236 | for _ = 1, 9 do | |
| 3237 | swait() | |
| 3238 | bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3) | |
| 3239 | end | |
| 3240 | coroutine.resume(coroutine.create(function() | |
| 3241 | swait(15) | |
| 3242 | for _ = 1, 12 do | |
| 3243 | swait() | |
| 3244 | d1.Transparency = d1.Transparency + 0.08 | |
| 3245 | d2.Transparency = d2.Transparency + 0.08 | |
| 3246 | end | |
| 3247 | mcir1:Destroy() | |
| 3248 | end)) | |
| 3249 | return mcir1 | |
| 3250 | end | |
| 3251 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
| 3252 | local aearae = makecircle(circlecf, scalez) | |
| 3253 | local nananb | |
| 3254 | ||
| 3255 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
| 3256 | ||
| 3257 | return nananb | |
| 3258 | end | |
| 3259 | mouse.KeyDown:connect(function(k) | |
| 3260 | if k == "c" and attack == false and sentrymode == false then | |
| 3261 | if killcom==false then | |
| 3262 | killcom=true | |
| 3263 | else | |
| 3264 | killcom=false | |
| 3265 | spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false) | |
| 3266 | ||
| 3267 | end | |
| 3268 | ||
| 3269 | ||
| 3270 | end | |
| 3271 | end) | |
| 3272 | ||
| 3273 | --[[ | |
| 3274 | BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
| |
| 3275 | BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
| |
| 3276 | BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
| |
| 3277 | BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
| |
| 3278 | --]] |