SHOW:
|
|
- or go back to the newest paste.
| 1 | local p = game.Players.LocalPlayer--300899323 | |
| 2 | local char = p.Character | |
| 3 | local mouse = p:GetMouse() | |
| 4 | local larm = char["Left Arm"] | |
| 5 | local rarm = char["Right Arm"] | |
| 6 | local lleg = char["Left Leg"] | |
| 7 | local rleg = char["Right Leg"] | |
| 8 | local hed = char.Head | |
| 9 | local torso = char.Torso | |
| 10 | local hum = char.Humanoid | |
| 11 | local cam = game.Workspace.CurrentCamera | |
| 12 | local root = char.HumanoidRootPart | |
| 13 | local rj = root.RootJoint | |
| 14 | local deb = false | |
| 15 | local shot = 0 | |
| 16 | local stanceToggle = "Idle1" | |
| 17 | local l = game:GetService("Lighting")
| |
| 18 | local rs = game:GetService("RunService").RenderStepped
| |
| 19 | local hb = game:GetService("RunService").Heartbeat
| |
| 20 | local Stepped = game:GetService("RunService").Stepped
| |
| 21 | math.randomseed(os.time()) | |
| 22 | local Transforming = true | |
| 23 | hum.WalkSpeed = 0 | |
| 24 | local fx = Instance.new("Part",torso)
| |
| 25 | wit = Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 215, 0) | |
| 26 | wit2 = Color3.fromRGB(255,215,0) | |
| 27 | local glowz = Instance.new("ParticleEmitter",fx)
| |
| 28 | glowz.LightEmission = 1 | |
| 29 | - | glowz.Texture = "rbxassetid://280516525" |
| 29 | + | glowz.Texture = "rbxassetid://114518563" |
| 30 | - | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255),Color3.fromRGB(255, 215, 0)) |
| 30 | + | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255),Color3.fromRGB(0, 215, 0)) |
| 31 | glowz.Size = NumberSequence.new(5) | |
| 32 | glowz.Speed = NumberRange.new(25,50) | |
| 33 | glowz.LockedToPart = false | |
| 34 | glowz.Transparency = NumberSequence.new(0.75) | |
| 35 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 36 | glowz.Lifetime = NumberRange.new(1) | |
| 37 | glowz.Rate = 5000 | |
| 38 | glowz.VelocitySpread = 9001 | |
| 39 | fx.Anchored = true | |
| 40 | fx.Material = "Glass" | |
| 41 | fx.CanCollide = false | |
| 42 | fx.Locked = true | |
| 43 | fx.Transparency = 1 | |
| 44 | fx.Material = "Glass" | |
| 45 | fx.Size = Vector3.new(1,1,1) | |
| 46 | fx.TopSurface = "SmoothNoOutlines" | |
| 47 | fx.BottomSurface = "SmoothNoOutlines" | |
| 48 | - | fx.BrickColor = BrickColor.new("Gold")
|
| 48 | + | fx.BrickColor = BrickColor.new("Lime green")
|
| 49 | fxm = Instance.new("SpecialMesh",fx)
| |
| 50 | fxm.MeshType = "Sphere" | |
| 51 | local sa2 = Instance.new("Sound",torso)
| |
| 52 | - | sa2.SoundId = "rbxassetid://1028743442" |
| 52 | + | sa2.SoundId = "rbxassetid://236148388" |
| 53 | sa2.Pitch = 0.5 | |
| 54 | - | sa2.Volume = 5 |
| 54 | + | |
| 55 | sa2.Looped = false | |
| 56 | sa2:Play() | |
| 57 | local value = 1 | |
| 58 | fxm.Scale = Vector3.new(1,1,1) | |
| 59 | for i = 1, 20 do rs:wait() | |
| 60 | value = value - 0.05 | |
| 61 | fx.Transparency = fx.Transparency - (1/20) | |
| 62 | fx.CFrame = torso.CFrame | |
| 63 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
| 64 | rs:wait() | |
| 65 | end | |
| 66 | ---------------------------------------------------- | |
| 67 | GroundWave1 = function() | |
| 68 | local Transforming = true | |
| 69 | hum.WalkSpeed = 0 | |
| 70 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 71 | - | local Colors = {"White", "Gold"}
|
| 71 | + | local Colors = {"Forest green", "Lime green"}
|
| 72 | local wave = Instance.new("Part", torso)
| |
| 73 | - | wave.BrickColor = BrickColor.new(Gold) |
| 73 | + | wave.BrickColor = BrickColor.new("Lime green")
|
| 74 | wave.Anchored = true | |
| 75 | wave.CanCollide = false | |
| 76 | wave.Locked = true | |
| 77 | wave.Size = Vector3.new(1, 1, 1) | |
| 78 | wave.TopSurface = "Smooth" | |
| 79 | wave.BottomSurface = "Smooth" | |
| 80 | wave.Transparency = 0.35 | |
| 81 | wave.CFrame = HandCF | |
| 82 | wm = Instance.new("SpecialMesh", wave)
| |
| 83 | wm.MeshId = "rbxassetid://3270017" | |
| 84 | coroutine.wrap(function() | |
| 85 | for i = 1, 30, 1 do | |
| 86 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
| 87 | wave.Size = wm.Scale | |
| 88 | wave.CFrame = HandCF | |
| 89 | wave.Transparency = i/30 | |
| 90 | wait() | |
| 91 | end | |
| 92 | wait() | |
| 93 | wave:Destroy() | |
| 94 | end)() | |
| 95 | end | |
| 96 | ---------------------------------------------------- | |
| 97 | GroundWave = function() | |
| 98 | if Transforming == true then | |
| 99 | local value = 5 | |
| 100 | local value2 = 10 | |
| 101 | local value3 = 20 | |
| 102 | local sa2 = Instance.new("Sound",torso)
| |
| 103 | - | sa2.SoundId = "rbxassetid://413682983" |
| 103 | + | sa2.SoundId = "rbxassetid://1153884873" |
| 104 | sa2.Pitch = 1 | |
| 105 | sa2.Volume = 10 | |
| 106 | sa2.Looped = false | |
| 107 | sa2:Play() | |
| 108 | local wave = Instance.new("Part", torso)
| |
| 109 | local glowz = Instance.new("ParticleEmitter",wave)
| |
| 110 | glowz.LightEmission = 1 | |
| 111 | glowz.Texture = "0" | |
| 112 | glowz.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(255, 215, 0)) | |
| 113 | glowz.Size = NumberSequence.new(30) | |
| 114 | glowz.Speed = NumberRange.new(25,100) | |
| 115 | glowz.LockedToPart = false | |
| 116 | glowz.Transparency = NumberSequence.new(0.75) | |
| 117 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
| 118 | glowz.Lifetime = NumberRange.new(1) | |
| 119 | glowz.Rate = 5000 | |
| 120 | glowz.VelocitySpread = 9001 | |
| 121 | ||
| 122 | - | wave.BrickColor = BrickColor.new("White")
|
| 122 | + | wave.BrickColor = BrickColor.new("Forest green")
|
| 123 | wave.Anchored = true | |
| 124 | wave.CanCollide = false | |
| 125 | wave.Locked = true | |
| 126 | wave.Size = Vector3.new(1, 1, 1) | |
| 127 | wave.TopSurface = "Smooth" | |
| 128 | wave.BottomSurface = "Smooth" | |
| 129 | wave.Transparency = 0.35 | |
| 130 | wave.CFrame = fx.CFrame | |
| 131 | wave.Material = "Glass" | |
| 132 | wm = Instance.new("SpecialMesh", wave)
| |
| 133 | wm.MeshType = "Sphere" | |
| 134 | wm.Scale = Vector3.new(1,1,1) | |
| 135 | local wave2 = Instance.new("Part", torso)
| |
| 136 | - | wave2.BrickColor = BrickColor.new("Gold")
|
| 136 | + | wave2.BrickColor = BrickColor.new("Lime green")
|
| 137 | wave2.Anchored = true | |
| 138 | wave2.CanCollide = false | |
| 139 | wave2.Locked = true | |
| 140 | wave2.Size = Vector3.new(1, 1, 1) | |
| 141 | wave2.TopSurface = "Smooth" | |
| 142 | wave2.BottomSurface = "Smooth" | |
| 143 | wave2.Transparency = 0.35 | |
| 144 | wave2.CFrame = fx.CFrame | |
| 145 | wave2.Material = "Glass" | |
| 146 | wm2 = Instance.new("SpecialMesh", wave2)
| |
| 147 | wm2.MeshType = "FileMesh" | |
| 148 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 149 | wm2.Scale = Vector3.new(1,1,1) | |
| 150 | local wave3 = Instance.new("Part", torso)
| |
| 151 | - | wave3.BrickColor = BrickColor.new("Gold")
|
| 151 | + | wave3.BrickColor = BrickColor.new("Lime green")
|
| 152 | wave3.Anchored = true | |
| 153 | wave3.CanCollide = false | |
| 154 | wave3.Locked = true | |
| 155 | wave3.Size = Vector3.new(1, 1, 1) | |
| 156 | wave3.TopSurface = "Smooth" | |
| 157 | wave3.BottomSurface = "Smooth" | |
| 158 | wave3.Transparency = 0.35 | |
| 159 | wave3.CFrame = fx.CFrame | |
| 160 | wave3.Material = "Glass" | |
| 161 | wm3 = Instance.new("SpecialMesh", wave3)
| |
| 162 | wm3.MeshType = "FileMesh" | |
| 163 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 164 | wm3.Scale = Vector3.new(1,1,1) | |
| 165 | coroutine.wrap(function() | |
| 166 | for i = 1, 18, 1 do | |
| 167 | value = value - 0.5 | |
| 168 | value2 = value2 - 0.75*1.5 | |
| 169 | value3 = value3 - 0.475*1.5 | |
| 170 | - | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) |
| 170 | + | wm.Scale = wm.Scale + Vector3.new(value*5.5,value*5.5,value*5.5) |
| 171 | - | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) |
| 171 | + | wm2.Scale = wm.Scale + Vector3.new(value2*5.5,value2*5.5,0.5) |
| 172 | - | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) |
| 172 | + | wm3.Scale = wm.Scale + Vector3.new(value3*5.5,value3*5.5,0.25) |
| 173 | --wave.Size = wm.Scale | |
| 174 | wave.CFrame = fx.CFrame | |
| 175 | wave.Transparency = i/14 | |
| 176 | --wave2.Size = wm2.Scale | |
| 177 | wave2.CFrame = fx.CFrame | |
| 178 | wave2.Rotation = Vector3.new(90, 0, 0) | |
| 179 | wave2.Transparency = i/14 | |
| 180 | --wave3.Size = wm3.Scale | |
| 181 | wave3.CFrame = fx.CFrame | |
| 182 | wave3.Rotation = Vector3.new(90, 0, 0) | |
| 183 | wave3.Transparency = i/14 | |
| 184 | wait() | |
| 185 | glowz.Rate = 0 | |
| 186 | ||
| 187 | end | |
| 188 | wait() | |
| 189 | wave:Destroy() | |
| 190 | wave2:Destroy() | |
| 191 | wave3:Destroy() | |
| 192 | end)() | |
| 193 | elseif Transforming == false then | |
| 194 | wait() | |
| 195 | end | |
| 196 | end | |
| 197 | ||
| 198 | for i = 1, 100 do rs:wait() | |
| 199 | fx.CFrame = torso.CFrame | |
| 200 | end | |
| 201 | ||
| 202 | Spawn(function() | |
| 203 | while wait(1) do | |
| 204 | GroundWave() | |
| 205 | end | |
| 206 | end) | |
| 207 | ||
| 208 | wait(4) | |
| 209 | ||
| 210 | Transforming = false | |
| 211 | ||
| 212 | local value2 = 1 | |
| 213 | for i = 1, 20 do rs:wait() | |
| 214 | value2 = value2 - 0.05 | |
| 215 | glowz.Rate = 0 | |
| 216 | ||
| 217 | fx.Transparency = fx.Transparency + (1/20) | |
| 218 | fx.CFrame = torso.CFrame | |
| 219 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
| 220 | rs:wait() | |
| 221 | end | |
| 222 | glowz:Destroy() | |
| 223 | ||
| 224 | ||
| 225 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 226 | local valuer = 5 | |
| 227 | local valuer2 = 10 | |
| 228 | local valuer3 = 15 | |
| 229 | local sa2 = Instance.new("Sound",torso)
| |
| 230 | - | sa2.SoundId = "rbxassetid://130972023" |
| 230 | + | sa2.SoundId = "rbxassetid://178452241" |
| 231 | sa2.Pitch = 1 | |
| 232 | - | sa2.Volume = 5 |
| 232 | + | sa2.Volume = 100 |
| 233 | sa2.Looped = false | |
| 234 | sa2:Play() | |
| 235 | local sar2 = Instance.new("Sound",torso)
| |
| 236 | - | sar2.SoundId = "rbxassetid://153274423" |
| 236 | + | sar2.SoundId = "rbxassetid://130774824" |
| 237 | sar2.Pitch = 1 | |
| 238 | - | sar2.Volume = 5 |
| 238 | + | sar2.Volume = 100 |
| 239 | sar2.Looped = false | |
| 240 | sar2:Play() | |
| 241 | local wave = Instance.new("Part", torso)
| |
| 242 | - | wave.BrickColor = BrickColor.new("Gold")
|
| 242 | + | wave.BrickColor = BrickColor.new("Lime green")
|
| 243 | wave.Anchored = true | |
| 244 | wave.CanCollide = false | |
| 245 | wave.Locked = true | |
| 246 | wave.Size = Vector3.new(1, 1, 1) | |
| 247 | wave.TopSurface = "Smooth" | |
| 248 | wave.BottomSurface = "Smooth" | |
| 249 | wave.Transparency = 0.35 | |
| 250 | wave.CFrame = HandCF | |
| 251 | wm = Instance.new("SpecialMesh", wave)
| |
| 252 | wm.MeshId = "rbxassetid://3270017" | |
| 253 | local wave2 = Instance.new("Part", torso)
| |
| 254 | - | wave2.BrickColor = BrickColor.new("White")
|
| 254 | + | wave2.BrickColor = BrickColor.new("Forest green")
|
| 255 | wave2.Anchored = true | |
| 256 | wave2.CanCollide = false | |
| 257 | wave2.Locked = true | |
| 258 | wave2.Size = Vector3.new(1, 1, 1) | |
| 259 | wave2.TopSurface = "Smooth" | |
| 260 | wave2.BottomSurface = "Smooth" | |
| 261 | wave2.Transparency = 0.35 | |
| 262 | wave2.CFrame = HandCF | |
| 263 | wm2 = Instance.new("SpecialMesh", wave2)
| |
| 264 | wm2.MeshId = "rbxassetid://3270017" | |
| 265 | local wave3 = Instance.new("Part", torso)
| |
| 266 | - | wave3.BrickColor = BrickColor.new("Gold")
|
| 266 | + | wave3.BrickColor = BrickColor.new("Lime green")
|
| 267 | wave3.Anchored = true | |
| 268 | wave3.CanCollide = false | |
| 269 | wave3.Locked = true | |
| 270 | wave3.Size = Vector3.new(1, 1, 1) | |
| 271 | wave3.TopSurface = "Smooth" | |
| 272 | wave3.BottomSurface = "Smooth" | |
| 273 | wave3.Transparency = 0.35 | |
| 274 | wave3.CFrame = HandCF | |
| 275 | wm3 = Instance.new("SpecialMesh", wave3)
| |
| 276 | wm3.MeshId = "rbxassetid://3270017" | |
| 277 | coroutine.wrap(function() | |
| 278 | for i = 1, 14, 1 do | |
| 279 | valuer = valuer - 0.35 | |
| 280 | valuer2 = valuer - 0.45 | |
| 281 | valuer3 = valuer3 - 0.475 | |
| 282 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
| 283 | wave.Size = wm.Scale | |
| 284 | wave.CFrame = HandCF | |
| 285 | wave.Transparency = i/14 | |
| 286 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
| 287 | wave2.Size = wm2.Scale | |
| 288 | wave2.CFrame = HandCF | |
| 289 | wave2.Transparency = i/14 | |
| 290 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
| 291 | wave3.Size = wm2.Scale | |
| 292 | wave3.CFrame = HandCF | |
| 293 | wave3.Transparency = i/14 | |
| 294 | wait() | |
| 295 | end | |
| 296 | wait() | |
| 297 | wave:Destroy() | |
| 298 | wave2:Destroy() | |
| 299 | end)() | |
| 300 | hum.WalkSpeed = 16 | |
| 301 | ||
| 302 | CV="White" | |
| 303 | ||
| 304 | p = game.Players.LocalPlayer | |
| 305 | char = p.Character | |
| 306 | local txt = Instance.new("BillboardGui", char)
| |
| 307 | txt.Adornee = char .Head | |
| 308 | txt.Name = "_status" | |
| 309 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 310 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 311 | local text = Instance.new("TextLabel", txt)
| |
| 312 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 313 | text.FontSize = "Size24" | |
| 314 | text.TextScaled = true | |
| 315 | text.TextTransparency = 0 | |
| 316 | text.BackgroundTransparency = 1 | |
| 317 | text.TextTransparency = 0 | |
| 318 | text.TextStrokeTransparency = 1 | |
| 319 | - | text.Font = "Arcade" |
| 319 | + | text.Font = "Cartoon" |
| 320 | text.TextStrokeColor3 = Color3.fromRGB(255,0,255) | |
| 321 | ||
| 322 | v=Instance.new("Part")
| |
| 323 | v.Name = "ColorBrick" | |
| 324 | v.Parent=p.Character | |
| 325 | v.FormFactor="Symmetric" | |
| 326 | v.Anchored=true | |
| 327 | v.CanCollide=false | |
| 328 | v.BottomSurface="Smooth" | |
| 329 | v.TopSurface="Smooth" | |
| 330 | v.Size=Vector3.new(10,5,3) | |
| 331 | v.Transparency=1 | |
| 332 | v.CFrame=char.Torso.CFrame | |
| 333 | v.BrickColor=BrickColor.new(CV) | |
| 334 | v.Transparency=1 | |
| 335 | - | text.TextColor3 = Color3.fromRGB(255, 215, 0) |
| 335 | + | text.TextColor3 = Color3.fromRGB(0, 255, 0) |
| 336 | v.Shape="Block" | |
| 337 | - | text.Text = "Prepare" |
| 337 | + | text.Text = "It's me..." |
| 338 | coroutine.wrap(function() | |
| 339 | while wait() do | |
| 340 | wait(3) | |
| 341 | - | text.Text = "The Holy Vacuum" |
| 341 | + | text.Text = "Mety!" |
| 342 | end | |
| 343 | end)() | |
| 344 | ||
| 345 | --//====================================================\\-- | |
| 346 | --|| CREATED BY SHACKLUSTER | |
| 347 | --\\====================================================//-- | |
| 348 | ||
| 349 | ||
| 350 | ||
| 351 | - | wait(0.2) |
| 351 | + | wait(1.5) |
| 352 | ||
| 353 | ||
| 354 | ||
| 355 | Player = game:GetService("Players").LocalPlayer
| |
| 356 | PlayerGui = Player.PlayerGui | |
| 357 | Cam = workspace.CurrentCamera | |
| 358 | Backpack = Player.Backpack | |
| 359 | Character = Player.Character | |
| 360 | Humanoid = Character.Humanoid | |
| 361 | Mouse = Player:GetMouse() | |
| 362 | RootPart = Character["HumanoidRootPart"] | |
| 363 | Torso = Character["Torso"] | |
| 364 | Head = Character["Head"] | |
| 365 | RightArm = Character["Right Arm"] | |
| 366 | LeftArm = Character["Left Arm"] | |
| 367 | RightLeg = Character["Right Leg"] | |
| 368 | LeftLeg = Character["Left Leg"] | |
| 369 | RootJoint = RootPart["RootJoint"] | |
| 370 | Neck = Torso["Neck"] | |
| 371 | RightShoulder = Torso["Right Shoulder"] | |
| 372 | LeftShoulder = Torso["Left Shoulder"] | |
| 373 | RightHip = Torso["Right Hip"] | |
| 374 | LeftHip = Torso["Left Hip"] | |
| 375 | local sick = Instance.new("Sound",Torso)
| |
| 376 | - | sick.SoundId = "rbxassetid://319444224" |
| 376 | + | sick.SoundId = "rbxassetid://311285306" |
| 377 | sick.Looped = true | |
| 378 | sick.Pitch = 1 | |
| 379 | - | sick.Volume = 1 |
| 379 | + | sick.Volume = 10 |
| 380 | local succing = {}
| |
| 381 | ||
| 382 | IT = Instance.new | |
| 383 | CF = CFrame.new | |
| 384 | VT = Vector3.new | |
| 385 | RAD = math.rad | |
| 386 | C3 = Color3.new | |
| 387 | UD2 = UDim2.new | |
| 388 | BRICKC = BrickColor.new | |
| 389 | ANGLES = CFrame.Angles | |
| 390 | EULER = CFrame.fromEulerAnglesXYZ | |
| 391 | COS = math.cos | |
| 392 | ACOS = math.acos | |
| 393 | SIN = math.sin | |
| 394 | ASIN = math.asin | |
| 395 | ABS = math.abs | |
| 396 | MRANDOM = math.random | |
| 397 | FLOOR = math.floor | |
| 398 | ||
| 399 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 400 | local NEWMESH = IT(MESH) | |
| 401 | if MESH == "SpecialMesh" then | |
| 402 | NEWMESH.MeshType = MESHTYPE | |
| 403 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 404 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 405 | end | |
| 406 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 407 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 408 | end | |
| 409 | end | |
| 410 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 411 | NEWMESH.Scale = SCALE | |
| 412 | NEWMESH.Parent = PARENT | |
| 413 | return NEWMESH | |
| 414 | end | |
| 415 | ||
| 416 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
| 417 | local NEWPART = IT("Part")
| |
| 418 | NEWPART.formFactor = FORMFACTOR | |
| 419 | NEWPART.Reflectance = REFLECTANCE | |
| 420 | NEWPART.Transparency = TRANSPARENCY | |
| 421 | NEWPART.CanCollide = false | |
| 422 | NEWPART.Locked = true | |
| 423 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 424 | NEWPART.Name = NAME | |
| 425 | NEWPART.Size = SIZE | |
| 426 | NEWPART.Position = Torso.Position | |
| 427 | NEWPART.Material = MATERIAL | |
| 428 | NEWPART:BreakJoints() | |
| 429 | NEWPART.Parent = PARENT | |
| 430 | return NEWPART | |
| 431 | end | |
| 432 | ||
| 433 | ||
| 434 | --//=================================\\ | |
| 435 | --|| CUSTOMIZATION | |
| 436 | --\\=================================// | |
| 437 | ||
| 438 | Class_Name = "Template" | |
| 439 | Weapon_Name = "Add-ons" | |
| 440 | ||
| 441 | Custom_Colors = {
| |
| 442 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
| |
| 443 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
| |
| 444 | ||
| 445 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
| |
| 446 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
| |
| 447 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
| |
| 448 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
| |
| 449 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
| |
| 450 | ||
| 451 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
| |
| 452 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
| |
| 453 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
| |
| 454 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
| |
| 455 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
| |
| 456 | } | |
| 457 | ||
| 458 | ||
| 459 | - | Player_Size = 1 --Size of the player. |
| 459 | + | Player_Size = 0.5 --Size of the player. |
| 460 | Animation_Speed = 3 | |
| 461 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 462 | ||
| 463 | local Speed = 16 | |
| 464 | local Effects2 = {}
| |
| 465 | ||
| 466 | --//=================================\\ | |
| 467 | --|| END OF CUSTOMIZATION | |
| 468 | --\\=================================// | |
| 469 | ||
| 470 | local function weldBetween(a, b) | |
| 471 | local weldd = Instance.new("ManualWeld")
| |
| 472 | weldd.Part0 = a | |
| 473 | weldd.Part1 = b | |
| 474 | weldd.C0 = CFrame.new() | |
| 475 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 476 | weldd.Parent = a | |
| 477 | return weldd | |
| 478 | end | |
| 479 | ||
| 480 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
| 481 | local acs = Instance.new("Part")
| |
| 482 | acs.CanCollide = false | |
| 483 | acs.Anchored = false | |
| 484 | acs.Size = Vector3.new(0,0,0) | |
| 485 | acs.CFrame = attachmentpart.CFrame | |
| 486 | acs.Parent = Character | |
| 487 | acs.BrickColor = color | |
| 488 | local meshs = Instance.new("SpecialMesh")
| |
| 489 | meshs.MeshId = mesh | |
| 490 | meshs.TextureId = texture | |
| 491 | meshs.Parent = acs | |
| 492 | meshs.Scale = scale | |
| 493 | meshs.Offset = offset | |
| 494 | weldBetween(attachmentpart,acs) | |
| 495 | end | |
| 496 | ||
| 497 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
| 498 | if TYPE == "Gem" then | |
| 499 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 500 | acs.Anchored = false | |
| 501 | acs.CanCollide = false | |
| 502 | acs.CFrame = PART.CFrame | |
| 503 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
| |
| 504 | weldBetween(PART,acs) | |
| 505 | elseif TYPE == "Skull" then | |
| 506 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 507 | acs.Anchored = false | |
| 508 | acs.CanCollide = false | |
| 509 | acs.CFrame = PART.CFrame | |
| 510 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
| |
| 511 | weldBetween(PART,acs) | |
| 512 | elseif TYPE == "Eye" then | |
| 513 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
| 514 | acs.Anchored = false | |
| 515 | acs.CanCollide = false | |
| 516 | acs.CFrame = PART.CFrame | |
| 517 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
| |
| 518 | weldBetween(PART,acs) | |
| 519 | end | |
| 520 | end | |
| 521 | ||
| 522 | --//=================================\\ | |
| 523 | --|| USEFUL VALUES | |
| 524 | --\\=================================// | |
| 525 | ||
| 526 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 527 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 528 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 529 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 530 | local CO1 = 0 | |
| 531 | local CO2 = 0 | |
| 532 | local CO3 = 0 | |
| 533 | local CO4 = 0 | |
| 534 | local CHANGEDEFENSE = 0 | |
| 535 | local CHANGEDAMAGE = 0 | |
| 536 | local CHANGEMOVEMENT = 0 | |
| 537 | local ANIM = "Idle" | |
| 538 | local ATTACK = false | |
| 539 | local EQUIPPED = false | |
| 540 | local HOLD = false | |
| 541 | local COMBO = 1 | |
| 542 | local LASTPOINT = nil | |
| 543 | local BLCF = nil | |
| 544 | local SCFR = nil | |
| 545 | local STAGGERHITANIM = false | |
| 546 | local STAGGERANIM = false | |
| 547 | local STUNANIM = false | |
| 548 | local CRITCHANCENUMBER = 0 | |
| 549 | local IDLENUMBER = 0 | |
| 550 | local DONUMBER = 0 | |
| 551 | local HANDIDLE = false | |
| 552 | local SINE = 0 | |
| 553 | local CHANGE = 2 / Animation_Speed | |
| 554 | local WALKINGANIM = false | |
| 555 | local WALK = 0 | |
| 556 | local DISABLEJUMPING = false | |
| 557 | local HASBEENBLOCKED = false | |
| 558 | local STUNDELAYNUMBER = 0 | |
| 559 | local MANADELAYNUMBER = 0 | |
| 560 | local SECONDARYMANADELAYNUMBER = 0 | |
| 561 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 562 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 563 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 564 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 565 | local WEAPONGUI = IT("ScreenGui", nil)
| |
| 566 | WEAPONGUI.Name = "Weapon GUI" | |
| 567 | local WEAPONTOOL = IT("HopperBin", nil)
| |
| 568 | WEAPONTOOL.Name = Weapon_Name | |
| 569 | local Weapon = IT("Model")
| |
| 570 | Weapon.Name = Weapon_Name | |
| 571 | local Effects = IT("Folder", Weapon)
| |
| 572 | Effects.Name = "Effects" | |
| 573 | local ANIMATOR = Humanoid.Animator | |
| 574 | local ANIMATE = Character.Animate | |
| 575 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 576 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 577 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 578 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 579 | local UNANCHOR = true | |
| 580 | - | local MAGICPARTICLE = "655109389" |
| 580 | + | local MAGICPARTICLE = "151471493" |
| 581 | ||
| 582 | --//=================================\\ | |
| 583 | --\\=================================// | |
| 584 | ||
| 585 | ||
| 586 | --//=================================\\ | |
| 587 | --|| DEBUFFS / BUFFS | |
| 588 | --\\=================================// | |
| 589 | ||
| 590 | local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
| |
| 591 | DEFENSECHANGE1.Name = "ChangeDefense" | |
| 592 | - | DEFENSECHANGE1.Value = 0 |
| 592 | + | DEFENSECHANGE1.Value = math.Huge |
| 593 | ||
| 594 | local MOVEMENTCHANGE1 = IT("NumberValue", nil)
| |
| 595 | MOVEMENTCHANGE1.Name = "ChangeMovement" | |
| 596 | MOVEMENTCHANGE1.Value = 0 | |
| 597 | ||
| 598 | --//=================================\\ | |
| 599 | --\\=================================// | |
| 600 | ||
| 601 | ||
| 602 | ||
| 603 | ||
| 604 | ||
| 605 | --//=================================\\ | |
| 606 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 607 | --\\=================================// | |
| 608 | ||
| 609 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 610 | ArtificialHB.Name = "ArtificialHB" | |
| 611 | ||
| 612 | script:WaitForChild("ArtificialHB")
| |
| 613 | ||
| 614 | frame = Frame_Speed | |
| 615 | tf = 0 | |
| 616 | allowframeloss = false | |
| 617 | tossremainder = false | |
| 618 | lastframe = tick() | |
| 619 | script.ArtificialHB:Fire() | |
| 620 | ||
| 621 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 622 | tf = tf + s | |
| 623 | if tf >= frame then | |
| 624 | if allowframeloss then | |
| 625 | script.ArtificialHB:Fire() | |
| 626 | lastframe = tick() | |
| 627 | else | |
| 628 | for i = 1, math.floor(tf / frame) do | |
| 629 | script.ArtificialHB:Fire() | |
| 630 | end | |
| 631 | lastframe = tick() | |
| 632 | end | |
| 633 | if tossremainder then | |
| 634 | tf = 0 | |
| 635 | else | |
| 636 | tf = tf - frame * math.floor(tf / frame) | |
| 637 | end | |
| 638 | end | |
| 639 | end) | |
| 640 | ||
| 641 | --//=================================\\ | |
| 642 | --\\=================================// | |
| 643 | ||
| 644 | ||
| 645 | ||
| 646 | ||
| 647 | ||
| 648 | --//=================================\\ | |
| 649 | --|| SOME FUNCTIONS | |
| 650 | --\\=================================// | |
| 651 | ||
| 652 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 653 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 654 | end | |
| 655 | ||
| 656 | function PositiveAngle(NUMBER) | |
| 657 | if NUMBER >= 0 then | |
| 658 | NUMBER = 0 | |
| 659 | end | |
| 660 | return NUMBER | |
| 661 | end | |
| 662 | ||
| 663 | function NegativeAngle(NUMBER) | |
| 664 | if NUMBER <= 0 then | |
| 665 | NUMBER = 0 | |
| 666 | end | |
| 667 | return NUMBER | |
| 668 | end | |
| 669 | ||
| 670 | function Swait(NUMBER) | |
| 671 | if NUMBER == 0 or NUMBER == nil then | |
| 672 | ArtificialHB.Event:wait() | |
| 673 | else | |
| 674 | for i = 1, NUMBER do | |
| 675 | ArtificialHB.Event:wait() | |
| 676 | end | |
| 677 | end | |
| 678 | end | |
| 679 | ||
| 680 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 681 | local label = IT("TextLabel")
| |
| 682 | label.BackgroundTransparency = 1 | |
| 683 | label.Size = UD2(1, 0, 1, 0) | |
| 684 | label.Position = UD2(0, 0, 0, 0) | |
| 685 | label.TextColor3 = C3(255, 255, 255) | |
| 686 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 687 | label.TextTransparency = TRANSPARENCY | |
| 688 | label.FontSize = TEXTFONTSIZE | |
| 689 | label.Font = TEXTFONT | |
| 690 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 691 | label.TextScaled = true | |
| 692 | label.Text = TEXT | |
| 693 | label.Name = NAME | |
| 694 | label.Parent = PARENT | |
| 695 | return label | |
| 696 | end | |
| 697 | ||
| 698 | function NoOutlines(PART) | |
| 699 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 700 | end | |
| 701 | ||
| 702 | ||
| 703 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 704 | local NEWWELD = IT(TYPE) | |
| 705 | NEWWELD.Part0 = PART0 | |
| 706 | NEWWELD.Part1 = PART1 | |
| 707 | NEWWELD.C0 = C0 | |
| 708 | NEWWELD.C1 = C1 | |
| 709 | NEWWELD.Parent = PARENT | |
| 710 | return NEWWELD | |
| 711 | end | |
| 712 | ||
| 713 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 714 | local NEWSOUND = nil | |
| 715 | coroutine.resume(coroutine.create(function() | |
| 716 | NEWSOUND = IT("Sound", PARENT)
| |
| 717 | NEWSOUND.Volume = VOLUME | |
| 718 | NEWSOUND.Pitch = PITCH | |
| 719 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 720 | Swait() | |
| 721 | NEWSOUND:play() | |
| 722 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 723 | end)) | |
| 724 | return NEWSOUND | |
| 725 | end | |
| 726 | ||
| 727 | --//=================================\\ | |
| 728 | --\\=================================// | |
| 729 | ||
| 730 | ||
| 731 | --//=================================\\ | |
| 732 | --|| WEAPON CREATION | |
| 733 | --\\=================================// | |
| 734 | ||
| 735 | if Player_Size ~= 1 then | |
| 736 | for _, v in pairs (Weapon:GetChildren()) do | |
| 737 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
| 738 | local p1 = v.Part1 | |
| 739 | v.Part1 = nil | |
| 740 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
| 741 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
| 742 | v.Part1 = p1 | |
| 743 | elseif v.ClassName == "Part" then | |
| 744 | for _, b in pairs (v:GetChildren()) do | |
| 745 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
| 746 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
| 747 | end | |
| 748 | end | |
| 749 | end | |
| 750 | end | |
| 751 | end | |
| 752 | ||
| 753 | for _, c in pairs(Weapon:GetChildren()) do | |
| 754 | if c.ClassName == "Part" then | |
| 755 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 756 | end | |
| 757 | end | |
| 758 | ||
| 759 | Weapon.Parent = Character | |
| 760 | ||
| 761 | Humanoid.Died:connect(function() | |
| 762 | ATTACK = true | |
| 763 | end) | |
| 764 | ||
| 765 | - | print(Class_Name.." loaded.") |
| 765 | + | print(Class_Name.." leaded.") |
| 766 | ||
| 767 | --//=================================\\ | |
| 768 | --\\=================================// | |
| 769 | ||
| 770 | ||
| 771 | local backpack = IT("Part",Weapon)
| |
| 772 | backpack.Size = VT(0.15,0.15,0.15) | |
| 773 | local mesh = IT("SpecialMesh",backpack)
| |
| 774 | - | mesh.MeshId = "rbxassetid://84313478" |
| 774 | + | mesh.MeshId = "rbxassetid://1072890649" |
| 775 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=84313638" |
| 775 | + | mesh.TextureId = "http://www.roblox.com/asset/?id=1072890993" |
| 776 | backpack.CFrame = Torso.CFrame * CF(0,0.2,1) | |
| 777 | backpack.BrickColor = BRICKC("Black")
| |
| 778 | weldBetween(Torso,backpack) | |
| 779 | ||
| 780 | local hose = IT("Part",Weapon)
| |
| 781 | hose.Size = VT(0.15,0.15,0.15) | |
| 782 | local mesh = IT("SpecialMesh",hose)
| |
| 783 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=84313555" |
| 783 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=" |
| 784 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=84313638" |
| 784 | + | mesh.TextureId = "http://www.roblox.com/asset/?id=" |
| 785 | mesh.Scale = VT(2,2,2) | |
| 786 | mesh.Offset = VT(0, -0.4, -0.7) | |
| 787 | hose.CFrame = Torso.CFrame * CF(1.5,0.5,0.2) * ANGLES(RAD(90),RAD(35),RAD(180)) | |
| 788 | hose.BrickColor = BRICKC("Black")
| |
| 789 | weldBetween(Torso,hose) | |
| 790 | ||
| 791 | local succ = IT("Part",Weapon)
| |
| 792 | succ.Size = VT(2,2,2) | |
| 793 | succ.CanCollide = false | |
| 794 | succ.CFrame = Torso.CFrame * CF(1.5,1.3,-4) * ANGLES(RAD(90),RAD(0),RAD(180)) | |
| 795 | succ.Transparency = 1 | |
| 796 | - | succ.BrickColor = BRICKC("Gold")
|
| 796 | + | succ.BrickColor = BRICKC("Lime green")
|
| 797 | weldBetween(Torso,succ) | |
| 798 | ||
| 799 | for _, c in pairs(Weapon:GetChildren()) do | |
| 800 | if c.ClassName == "Part" then | |
| 801 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 802 | end | |
| 803 | end | |
| 804 | ||
| 805 | local EyeSizes={
| |
| 806 | NumberSequenceKeypoint.new(0,0.5,0), | |
| 807 | NumberSequenceKeypoint.new(1,0.2,0) | |
| 808 | } | |
| 809 | local EyeTrans={
| |
| 810 | NumberSequenceKeypoint.new(0,0,0), | |
| 811 | NumberSequenceKeypoint.new(1,1,0) | |
| 812 | } | |
| 813 | local PE=Instance.new("ParticleEmitter")
| |
| 814 | PE.LightEmission=0.3 | |
| 815 | PE.Size=NumberSequence.new(EyeSizes) | |
| 816 | PE.Transparency=NumberSequence.new(EyeTrans) | |
| 817 | PE.Rotation=NumberRange.new(0,360) | |
| 818 | PE.LockedToPart = false | |
| 819 | PE.Speed = NumberRange.new(0,0,0) | |
| 820 | PE.ZOffset = 0.3 | |
| 821 | PE.Rate = 999 | |
| 822 | PE.VelocitySpread = 25 | |
| 823 | PE.Name = "Particles" | |
| 824 | ||
| 825 | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) | |
| 826 | local particle = nil | |
| 827 | coroutine.resume(coroutine.create(function(PART) | |
| 828 | particle = PE:Clone() | |
| 829 | Swait() | |
| 830 | particle.Rate = 999 | |
| 831 | particle.Parent = art | |
| 832 | particle.Acceleration = accel | |
| 833 | if type == "Fire" then | |
| 834 | local EyeSizes={
| |
| 835 | NumberSequenceKeypoint.new(0,size,size/2), | |
| 836 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
| 837 | } | |
| 838 | particle.Size = NumberSequence.new(EyeSizes) | |
| 839 | elseif type == "Smoke" then | |
| 840 | local EyeSizes={
| |
| 841 | NumberSequenceKeypoint.new(0,size/5,0), | |
| 842 | NumberSequenceKeypoint.new(1,size*2,0.5) | |
| 843 | } | |
| 844 | particle.Size = NumberSequence.new(EyeSizes) | |
| 845 | elseif type == "Solid" then | |
| 846 | local EyeSizes={
| |
| 847 | NumberSequenceKeypoint.new(0,size,0), | |
| 848 | NumberSequenceKeypoint.new(1,size,0) | |
| 849 | } | |
| 850 | particle.Size = NumberSequence.new(EyeSizes) | |
| 851 | end | |
| 852 | particle.Lifetime=NumberRange.new(lifetime) | |
| 853 | particle.Drag = drag | |
| 854 | if locked == true then | |
| 855 | particle.LockedToPart = true | |
| 856 | end | |
| 857 | particle.Speed = NumberRange.new(speed*0.8,speed) | |
| 858 | - | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" |
| 858 | + | particle.Texture = "http://www.roblox.com/asset/?id=151471493" |
| 859 | particle.Enabled = isenabledbydefault | |
| 860 | - | particle.Color = ColorSequence.new(Color3.fromRGB(255, 215, 0)) |
| 860 | + | particle.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0)) |
| 861 | end)) | |
| 862 | return particle | |
| 863 | end | |
| 864 | ||
| 865 | local poop = CreateParticles(succ,VT(0,0,0),5,2,"Smoke",false,false,5,35) | |
| 866 | local poop2 = CreateParticles(succ,VT(0,0,0),5,1,"Smoke",false,false,2,15) | |
| 867 | ||
| 868 | --//=================================\\ | |
| 869 | --|| DAMAGING | |
| 870 | --\\=================================// | |
| 871 | ||
| 872 | function succnearest(position,range) | |
| 873 | for i,v in ipairs(workspace:GetChildren()) do | |
| 874 | local body = v:GetChildren() | |
| 875 | for part = 1, #body do | |
| 876 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 877 | if(body[part].Position - position).Magnitude < range then | |
| 878 | local bv = Instance.new("BodyVelocity")
| |
| 879 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 880 | bv.velocity = CF(body[part].Position,succ.Position).lookVector*80 | |
| 881 | bv.Parent = body[part] | |
| 882 | bv.Name = "SUCC" | |
| 883 | game:GetService("Debris"):AddItem(bv, 0.1)
| |
| 884 | end | |
| 885 | end | |
| 886 | end | |
| 887 | if v.ClassName == "Part" then | |
| 888 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 889 | local bv = Instance.new("BodyVelocity")
| |
| 890 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 891 | bv.velocity = CF(v.Position,succ.Position).lookVector*80 | |
| 892 | bv.Parent = v | |
| 893 | bv.Name = "SUCC" | |
| 894 | game:GetService("Debris"):AddItem(bv, 0.1)
| |
| 895 | end | |
| 896 | end | |
| 897 | end | |
| 898 | end | |
| 899 | ||
| 900 | function cover(position,range) | |
| 901 | for i,v in ipairs(workspace:GetChildren()) do | |
| 902 | local body = v:GetChildren() | |
| 903 | for part = 1, #body do | |
| 904 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 905 | if(body[part].Position - position).Magnitude < range then | |
| 906 | CreateParticles(body[part],VT(0,-2,0),5,1,"Smoke",true,false,0.3,0) | |
| 907 | if v:FindFirstChild("Humanoid") then
| |
| 908 | v.Humanoid.PlatformStand = true | |
| 909 | end | |
| 910 | end | |
| 911 | end | |
| 912 | end | |
| 913 | if v.ClassName == "Part" then | |
| 914 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
| 915 | CreateParticles(v,VT(0,-2,0),5,1,"Smoke",true,false,0.3,0) | |
| 916 | end | |
| 917 | end | |
| 918 | end | |
| 919 | end | |
| 920 | ||
| 921 | function cough() | |
| 922 | - | CreateSound("328460122", succ, 3, 1)
|
| 922 | + | CreateSound("186581757", succ, 3, 1)
|
| 923 | poop.VelocitySpread = 25 | |
| 924 | poop:Emit(150) | |
| 925 | cover(CF(succ.Position)*CF(0,0,-1).p,15) | |
| 926 | end | |
| 927 | ||
| 928 | --//=================================\\ | |
| 929 | --|| ATTACK FUNCTIONS AND STUFF | |
| 930 | --\\=================================// | |
| 931 | ||
| 932 | function CheckTableForString(Table, String) | |
| 933 | for i, v in pairs(Table) do | |
| 934 | if string.find(string.lower(String), string.lower(v)) then | |
| 935 | return true | |
| 936 | end | |
| 937 | end | |
| 938 | return false | |
| 939 | end | |
| 940 | ||
| 941 | function CheckIntangible(Hit) | |
| 942 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 943 | if Hit and Hit.Parent then | |
| 944 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 945 | return true | |
| 946 | end | |
| 947 | end | |
| 948 | return false | |
| 949 | end | |
| 950 | ||
| 951 | Debris = game:GetService("Debris")
| |
| 952 | ||
| 953 | function CastRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 954 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 955 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 956 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 957 | if RayHit and CheckIntangible(RayHit) then | |
| 958 | if DelayIfHit then | |
| 959 | wait() | |
| 960 | end | |
| 961 | RayHit, RayPos, RayNormal = CastRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 962 | end | |
| 963 | return RayHit, RayPos, RayNormal | |
| 964 | end | |
| 965 | ||
| 966 | function turnto(pos,part) | |
| 967 | part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
| 968 | end | |
| 969 | ||
| 970 | function vacuum() | |
| 971 | sick:Play() | |
| 972 | local nado = IT("Part")
| |
| 973 | local mesh = IT("SpecialMesh",nado)
| |
| 974 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" |
| 974 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=" |
| 975 | nado.Transparency = 0.5 | |
| 976 | nado.CanCollide = false | |
| 977 | nado.Anchored = true | |
| 978 | local loop = 0 | |
| 979 | succing = {}
| |
| 980 | local harm = succ.Touched:Connect(function(hit) | |
| 981 | if hit.Anchored == false then | |
| 982 | hit:remove() | |
| 983 | CreateSound("261732529", succ, 3, 1)
| |
| 984 | poop2:Emit(1) | |
| 985 | end | |
| 986 | end) | |
| 987 | repeat | |
| 988 | Swait() | |
| 989 | loop = loop + 75 | |
| 990 | nado.Parent = Effects | |
| 991 | local RayHit,RayPos = CastRay(succ.Position, Mouse.Hit.p, 1000, Character, false) | |
| 992 | local distance = (succ.Position - RayPos).magnitude | |
| 993 | mesh.Scale = VT(distance/12,distance/3.2,distance/12) | |
| 994 | nado.CFrame = CFrame.new(succ.Position, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(-90),RAD(loop),RAD(0)) | |
| 995 | turnto(Mouse.Hit.p,RootPart) | |
| 996 | succnearest(RayPos,distance/2.5) | |
| 997 | if RayHit ~= nil then | |
| 998 | if RayHit.Anchored == false then | |
| 999 | local bv = Instance.new("BodyVelocity")
| |
| 1000 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1001 | bv.velocity = CF(RayHit.Position,succ.Position).lookVector*80 | |
| 1002 | bv.Parent = RayHit | |
| 1003 | bv.Name = "SUCC" | |
| 1004 | game:GetService("Debris"):AddItem(bv, 0.1)
| |
| 1005 | end | |
| 1006 | end | |
| 1007 | local TotalSuccs = math.ceil(distance / 65) | |
| 1008 | local Direction = CFrame.new(RayPos, succ.Position).lookVector | |
| 1009 | for i = 1, TotalSuccs do | |
| 1010 | local NewPos = (RayPos + (Direction * (distance * (i / TotalSuccs)))) | |
| 1011 | succnearest(NewPos,distance/(i*2.5)) | |
| 1012 | end | |
| 1013 | until HOLD == false | |
| 1014 | if #succing>0 then | |
| 1015 | for e=1,#succing do | |
| 1016 | if succing[e]~=nil then | |
| 1017 | local Thing=succing[e] | |
| 1018 | Thing:remove() | |
| 1019 | table.remove(succing,e) | |
| 1020 | end | |
| 1021 | end | |
| 1022 | end | |
| 1023 | succing = {}
| |
| 1024 | harm:disconnect() | |
| 1025 | nado:remove() | |
| 1026 | sick:Stop() | |
| 1027 | end | |
| 1028 | ||
| 1029 | --//=================================\\ | |
| 1030 | --|| ASSIGN THINGS TO KEYS | |
| 1031 | --\\=================================// | |
| 1032 | ||
| 1033 | Humanoid.Changed:connect(function(Jump) | |
| 1034 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
| 1035 | Humanoid.Jump = false | |
| 1036 | end | |
| 1037 | end) | |
| 1038 | ||
| 1039 | function MouseDown(Mouse) | |
| 1040 | HOLD = true | |
| 1041 | vacuum() | |
| 1042 | end | |
| 1043 | ||
| 1044 | function MouseUp(Mouse) | |
| 1045 | HOLD = false | |
| 1046 | end | |
| 1047 | ||
| 1048 | function KeyDown(Key) | |
| 1049 | if Key == "t" and ATTACK == false then | |
| 1050 | CreateSound("743953262", Head, 3, 1)
| |
| 1051 | end | |
| 1052 | if Key == "e" and ATTACK == false then | |
| 1053 | cough() | |
| 1054 | end | |
| 1055 | end | |
| 1056 | ||
| 1057 | function KeyUp(Key) | |
| 1058 | end | |
| 1059 | ||
| 1060 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1061 | MouseDown(NEWKEY) | |
| 1062 | end) | |
| 1063 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1064 | MouseUp(NEWKEY) | |
| 1065 | end) | |
| 1066 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1067 | KeyDown(NEWKEY) | |
| 1068 | end) | |
| 1069 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1070 | KeyUp(NEWKEY) | |
| 1071 | end) | |
| 1072 | ||
| 1073 | --//=================================\\ | |
| 1074 | --\\=================================// | |
| 1075 | ||
| 1076 | ||
| 1077 | function unanchor() | |
| 1078 | if UNANCHOR == true then | |
| 1079 | g = Character:GetChildren() | |
| 1080 | for i = 1, #g do | |
| 1081 | if g[i].ClassName == "Part" then | |
| 1082 | g[i].Anchored = false | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end | |
| 1086 | end | |
| 1087 | ||
| 1088 | ||
| 1089 | --//=================================\\ | |
| 1090 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1091 | --\\=================================// | |
| 1092 | local Music = Instance.new("Sound")
| |
| 1093 | ||
| 1094 | Music.Name = "Sound" | |
| 1095 | - | Music.SoundId = "http://roblox.com/asset/?id=200829826" |
| 1095 | + | Music.SoundId = "http://roblox.com/asset/?id=144940679" |
| 1096 | Music.Volume = 10 | |
| 1097 | Music.Looped = true | |
| 1098 | Music.Parent = Torso | |
| 1099 | Music:play() | |
| 1100 | ||
| 1101 | ||
| 1102 | Humanoid.Changed:connect(function(Jump) | |
| 1103 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
| 1104 | Humanoid.Jump = false | |
| 1105 | end | |
| 1106 | end) | |
| 1107 | ||
| 1108 | while true do | |
| 1109 | Swait() | |
| 1110 | if #Effects2>0 then | |
| 1111 | for e=1,#Effects2 do | |
| 1112 | if Effects2[e]~=nil then | |
| 1113 | local Thing=Effects2[e] | |
| 1114 | if Thing~=nil then | |
| 1115 | local Part=Thing[1] | |
| 1116 | local Mode=Thing[2] | |
| 1117 | local Delay=Thing[3] | |
| 1118 | local IncX=Thing[4] | |
| 1119 | local IncY=Thing[5] | |
| 1120 | local IncZ=Thing[6] | |
| 1121 | local Part2=Thing[8] | |
| 1122 | if Thing[1].Transparency<=1 then | |
| 1123 | if Thing[2]=="Block1" then | |
| 1124 | Thing[1].CFrame=Thing[1].CFrame | |
| 1125 | Mesh=Thing[1].Mesh | |
| 1126 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1127 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1128 | elseif Thing[2]=="Cylinder" then | |
| 1129 | Mesh=Thing[1].Mesh | |
| 1130 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1131 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1132 | elseif Thing[2]=="Blood" then | |
| 1133 | Mesh=Thing[7] | |
| 1134 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
| 1135 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
| 1136 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1137 | elseif Thing[2]=="Elec" then | |
| 1138 | Mesh=Thing[1].Mesh | |
| 1139 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
| 1140 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1141 | elseif Thing[2]=="Disappear" then | |
| 1142 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
| 1143 | end | |
| 1144 | else | |
| 1145 | Part.Parent=nil | |
| 1146 | table.remove(Effects2,e) | |
| 1147 | end | |
| 1148 | end | |
| 1149 | end | |
| 1150 | end | |
| 1151 | end | |
| 1152 | unanchor() | |
| 1153 | Humanoid.MaxHealth = "inf" | |
| 1154 | Humanoid.Health = "inf" | |
| 1155 | if Rooted == false then | |
| 1156 | Disable_Jump = false | |
| 1157 | Humanoid.WalkSpeed = Speed | |
| 1158 | elseif Rooted == true then | |
| 1159 | Disable_Jump = true | |
| 1160 | Humanoid.WalkSpeed = 0 | |
| 1161 | end | |
| 1162 | if sick == nil then | |
| 1163 | sick = Instance.new("Sound",Torso)
| |
| 1164 | sick.SoundId = "rbxassetid://319444224" | |
| 1165 | sick.Looped = true | |
| 1166 | sick.Pitch = 1 | |
| 1167 | sick.Volume = 1 | |
| 1168 | end | |
| 1169 | if #succing>0 then | |
| 1170 | for e=1,#succing do | |
| 1171 | if succing[e]~=nil then | |
| 1172 | local Thing=succing[e] | |
| 1173 | Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*80 | |
| 1174 | if HOLD == false then | |
| 1175 | Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*0 | |
| 1176 | Thing:remove() | |
| 1177 | table.remove(succing,e) | |
| 1178 | end | |
| 1179 | end | |
| 1180 | end | |
| 1181 | end | |
| 1182 | end | |
| 1183 | ||
| 1184 | --//=================================\\ | |
| 1185 | --\\=================================// | |
| 1186 | ||
| 1187 | ||
| 1188 | ||
| 1189 | ||
| 1190 | ||
| 1191 | --//====================================================\\-- | |
| 1192 | --|| END OF SCRIPT | |
| 1193 | --\\==================================================== |