SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Player declarations | |
| 2 | - | local player = game.Players.Kronola |
| 2 | + | local player = game.Players.megatron2006 |
| 3 | local char = player.Character | |
| 4 | ||
| 5 | -- Body parts | |
| 6 | local torso = char.Torso | |
| 7 | ||
| 8 | -- Tool declarations | |
| 9 | local mouseDown = false | |
| 10 | local keysDown = {}
| |
| 11 | ||
| 12 | -- Earth bending declarations | |
| 13 | local raisingEarth = false | |
| 14 | local raisingTower = false | |
| 15 | local wall = false | |
| 16 | local groundAttack = false | |
| 17 | local lastTower = nil | |
| 18 | local disabled = {}
| |
| 19 | local frames = {}
| |
| 20 | local parts = {}
| |
| 21 | - | local Taunts = {"Die already!", "DIE, DIE, DIE!", "HRRAAAA!", "I told you it's useless!", "You will not be the first to die by my hand!", "You will suffer!", "Don't try to evade the inevitable!", "I will tear you apart!","You are pathetic!","You will never defeat me!","I AM GOD!"}
|
| 21 | + | local Taunts = {"You aren't dead yet?", "Just die!", "Take these, I insist!", "I told you it's useless!", "You will not be the first to die by my hand!", "You will suffer!", "Don't try to evade the inevitable!", "I will tear you apart!","You are pathetic!","You will never defeat me!","I AM GOD!"}
|
| 22 | local raisechats = {"I will make you realize the depth of my power, even if I have to grind your body into dust!","I suggest you run.", "Now you're just pissing me off.", "Hmph.", "It's useless.",".....", "Your life ends here!","Foolish!","Do you know who I am?","What stupidity.","Hmm.","Hmph. Your confidence is annoying.","You cannot kill a god."}
| |
| 23 | ||
| 24 | -- Main | |
| 25 | function main(mouse) | |
| 26 | while true do wait(1/30) | |
| 27 | local look = CFrame.new(torso.Position, torso.Position + mouse.Hit.lookVector) | |
| 28 | ||
| 29 | -- Reset parts | |
| 30 | parts = {}
| |
| 31 | ||
| 32 | -- Get parts | |
| 33 | for x = -20, 20, 10 do | |
| 34 | for y = -20, 20, 10 do | |
| 35 | for z = -30, -10, 10 do | |
| 36 | local pos = look * Vector3.new(x, y, z) | |
| 37 | getPartsInRegion3( | |
| 38 | Region3.new( | |
| 39 | pos + Vector3.new(1,1,1)*-9, | |
| 40 | pos + Vector3.new(1,1,1)* 9 | |
| 41 | ), | |
| 42 | parts | |
| 43 | ) | |
| 44 | end | |
| 45 | end | |
| 46 | end | |
| 47 | ||
| 48 | -- Mouse down | |
| 49 | if mouseDown then | |
| 50 | -- Create dif and bodies | |
| 51 | for _, part in pairs(parts) do | |
| 52 | if part.Name == "Earth" and not disabled[part] then | |
| 53 | if not frames[part] and part ~= lastTower then | |
| 54 | frames[part] = look:toObjectSpace(part.CFrame) | |
| 55 | ||
| 56 | part:ClearAllChildren() | |
| 57 | part.Anchored = false | |
| 58 | ||
| 59 | -- Create bodies | |
| 60 | createBody("Position", part)
| |
| 61 | createBody("Gyro", part)
| |
| 62 | end | |
| 63 | end | |
| 64 | end | |
| 65 | ||
| 66 | -- Move bodies | |
| 67 | for part in pairs(frames) do | |
| 68 | local bodyPos = part:FindFirstChild("BodyPosition")
| |
| 69 | local bodyGyr = part:FindFirstChild("BodyGyro")
| |
| 70 | ||
| 71 | -- Bodies exist | |
| 72 | if bodyPos and bodyGyr then | |
| 73 | local dif = look * frames[part] | |
| 74 | ||
| 75 | bodyPos.position = dif.p | |
| 76 | bodyGyr.cframe = dif | |
| 77 | else | |
| 78 | frames[part] = nil | |
| 79 | end | |
| 80 | end | |
| 81 | else | |
| 82 | for part in pairs(frames) do | |
| 83 | if part.Name == "Earth" then | |
| 84 | frames[part] = nil | |
| 85 | ||
| 86 | part:ClearAllChildren() | |
| 87 | end | |
| 88 | end | |
| 89 | end | |
| 90 | end | |
| 91 | end | |
| 92 | ||
| 93 | -- On key change | |
| 94 | function onKeyChange(mouse, key, state) | |
| 95 | -- Raise earth | |
| 96 | - | if key == "e" and state and not raisingEarth then |
| 96 | + | if key == "m" and state and not raisingEarth then |
| 97 | game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
| |
| 98 | raisingEarth = true | |
| 99 | while keysDown[key] do | |
| 100 | local torsoY = torso.Position.y + 3 | |
| 101 | local pos = planeY(torso.Position, 0.4 - 4/2) | |
| 102 | local dir = planeY(mouse.Hit.lookVector).unit | |
| 103 | local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5)) | |
| 104 | ||
| 105 | -- Create earth part | |
| 106 | local part = createEarth(workspace) | |
| 107 | part.Anchored = true | |
| 108 | part.Size = Vector3.new(4, 4, 4) | |
| 109 | disabled[part] = true | |
| 110 | ||
| 111 | -- Raise earth | |
| 112 | for i = 1, 4 do i = i/4 | |
| 113 | part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0) | |
| 114 | wait(1/10000000) | |
| 115 | if not part.Anchored then | |
| 116 | break | |
| 117 | end | |
| 118 | end | |
| 119 | ||
| 120 | disabled[part] = nil | |
| 121 | part.Anchored = false | |
| 122 | ||
| 123 | wait(1/100) | |
| 124 | end | |
| 125 | raisingEarth = false | |
| 126 | ||
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | ||
| 131 | elseif key == "c" and state and not raisingEarth then | |
| 132 | game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
| |
| 133 | raisingEarth = true | |
| 134 | while keysDown[key] do | |
| 135 | local torsoY = torso.Position.y + 3 | |
| 136 | local pos = planeY(torso.Position, 0.4 - 4/2) | |
| 137 | local dir = planeY(mouse.Hit.lookVector).unit | |
| 138 | local frame = CFrame.new(pos, pos + dir) * CFrame.new(r(-10, 10), 0, r(-20, -5)) | |
| 139 | ||
| 140 | -- Create earth part | |
| 141 | local part = createEarth(workspace) | |
| 142 | part.Anchored = true | |
| 143 | part.Size = Vector3.new(2, 2, 2) | |
| 144 | disabled[part] = true | |
| 145 | ||
| 146 | -- Raise earth | |
| 147 | for i = 1, 4 do i = i/4 | |
| 148 | part.CFrame = frame * CFrame.new(0, (torsoY - frame.y)*i, 0) | |
| 149 | wait(1/10000000) | |
| 150 | if not part.Anchored then | |
| 151 | break | |
| 152 | end | |
| 153 | end | |
| 154 | ||
| 155 | disabled[part] = nil | |
| 156 | part.Anchored = false | |
| 157 | ||
| 158 | wait(1/100) | |
| 159 | end | |
| 160 | raisingEarth = false | |
| 161 | ||
| 162 | ||
| 163 | ||
| 164 | -- Push earth | |
| 165 | elseif key == "f" and state then | |
| 166 | game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
| |
| 167 | for _, part in pairs(parts) do | |
| 168 | if part.Name == "Earth" and part ~= lastTower then | |
| 169 | part:ClearAllChildren() | |
| 170 | part.Anchored = false | |
| 171 | ||
| 172 | -- Add force | |
| 173 | local bodyForce = createBody("Force", part)
| |
| 174 | bodyForce.force = mouse.Hit.lookVector*1.5e4 * part:GetMass() | |
| 175 | ||
| 176 | game.Debris:AddItem(bodyForce, 1/30) | |
| 177 | ||
| 178 | -- Disable part | |
| 179 | disabled[part] = true | |
| 180 | delay(1, function() | |
| 181 | disabled[part] = nil | |
| 182 | end) | |
| 183 | end | |
| 184 | end | |
| 185 | ||
| 186 | -- Monster Ability | |
| 187 | - | elseif key == "m" and state then |
| 187 | + | |
| 188 | wait(.1) | |
| 189 | f = Instance.new("Fire")
| |
| 190 | f.Parent = char.Head | |
| 191 | - | f.Color = Color3.new(0.7,0.5,0.9) |
| 191 | + | f.Color = Color3.new(0,0,0) |
| 192 | f.Size = 5 | |
| 193 | f.Heat = 5 | |
| 194 | wait(.1) | |
| 195 | g = Instance.new("Fire")
| |
| 196 | g.Parent = char["Right Arm"] | |
| 197 | - | g.Color = Color3.new(0.7,0.5,0.9) |
| 197 | + | g.Color = Color3.new(0,0.8,0.9) |
| 198 | g.Size = 5 | |
| 199 | - | g.Heat = 5 |
| 199 | + | g.Heat = 10 |
| 200 | wait(.1) | |
| 201 | h = Instance.new("Fire")
| |
| 202 | h.Parent = char["Left Arm"] | |
| 203 | - | h.Color = Color3.new(0.7,0.5,0.9) |
| 203 | + | h.Color = Color3.new(0.7,0,0) |
| 204 | h.Size = 5 | |
| 205 | - | h.Heat = 5 |
| 205 | + | h.Heat = 10 |
| 206 | wait(.1) | |
| 207 | z = Instance.new("Sound")
| |
| 208 | z.Parent = game.Workspace | |
| 209 | - | z.SoundId = "http://www.roblox.com/asset/?id=159365911" |
| 209 | + | z.SoundId = "http://www.roblox.com/asset/?id=" |
| 210 | z.Looped = false | |
| 211 | - | z.Volume = 1 |
| 211 | + | z.Volume = 8 |
| 212 | - | z.Pitch = 0.65 |
| 212 | + | z.Pitch = 0.8 |
| 213 | wait(1.8) | |
| 214 | game:GetService("Chat"):Chat(char.Head, "Hmph.", Enum.ChatColor.Red)
| |
| 215 | wait(3.4) | |
| 216 | game:GetService("Chat"):Chat(char.Head, "This has become a pointless battle.", Enum.ChatColor.Red)
| |
| 217 | wait(2.4) | |
| 218 | game:GetService("Chat"):Chat(char.Head, "I will end this quickly", Enum.ChatColor.Red)
| |
| 219 | wait(.1) | |
| 220 | z:Play() | |
| 221 | char.Humanoid.MaxHealth = 900000000 | |
| 222 | wait(1) | |
| 223 | char.Humanoid.Health = 900000000 | |
| 224 | wait(182) | |
| 225 | char.Humanoid.MaxHealth = 600 | |
| 226 | z:Remove() | |
| 227 | f:Remove() | |
| 228 | g:Remove() | |
| 229 | h:Remove() | |
| 230 | ||
| 231 | -- N-Rage | |
| 232 | elseif key == "n" and state then | |
| 233 | c = Instance.new("Sound")
| |
| 234 | c.Parent = game.Workspace | |
| 235 | c.SoundId = "http://www.roblox.com/asset/?id=157747165" | |
| 236 | c.Looped = false | |
| 237 | c.Volume = 1 | |
| 238 | c.Pitch = .7 | |
| 239 | wait(1.8) | |
| 240 | game:GetService("Chat"):Chat(char.Head, "What the hell was that?", Enum.ChatColor.Red)
| |
| 241 | wait(2) | |
| 242 | game:GetService("Chat"):Chat(char.Head, "Did you actually believe you could harm me?", Enum.ChatColor.Red)
| |
| 243 | wait(2.4) | |
| 244 | game:GetService("Chat"):Chat(char.Head, "If you would simply let yourself die, you would not have to go through this pointless suffering.", Enum.ChatColor.Red)
| |
| 245 | wait(3.5) | |
| 246 | game:GetService("Chat"):Chat(char.Head, "All you have done is waste my time.", Enum.ChatColor.Red)
| |
| 247 | wait(.1) | |
| 248 | c:Play() | |
| 249 | char.Humanoid.MaxHealth = math.huge | |
| 250 | wait(160) | |
| 251 | char.Humanoid.MaxHealth = 10000 | |
| 252 | c:Remove() | |
| 253 | ||
| 254 | -- Break earth | |
| 255 | elseif key == "b" and state then | |
| 256 | game:GetService("Chat"):Char(char.Head, "Hmph.", Enum.ChatColor.Red)
| |
| 257 | wait(.01) | |
| 258 | for part in pairs(frames) do | |
| 259 | if part.Size == Vector3.new(4, 4, 4) then | |
| 260 | for x = -1, 2, 2 do | |
| 261 | for y = -1, 2, 2 do | |
| 262 | for z = -1, 1, 2 do | |
| 263 | local oPart = createEarth(workspace) | |
| 264 | oPart.Size = Vector3.new(2, 2, 2) | |
| 265 | oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1) | |
| 266 | end | |
| 267 | end | |
| 268 | end | |
| 269 | part:Destroy() | |
| 270 | end | |
| 271 | ||
| 272 | end | |
| 273 | ||
| 274 | for part in pairs(frames) do | |
| 275 | if part.Size == Vector3.new(25, 15, 25) then | |
| 276 | for x = -3, 2, 2 do | |
| 277 | for y = -3, 2, 2 do | |
| 278 | for z = -3, 1, 2 do | |
| 279 | local oPart = createEarth(workspace) | |
| 280 | oPart.Size = Vector3.new(2, 2, 2) | |
| 281 | oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1) | |
| 282 | end | |
| 283 | end | |
| 284 | end | |
| 285 | part:Destroy() | |
| 286 | end | |
| 287 | ||
| 288 | end | |
| 289 | ||
| 290 | for part in pairs(frames) do | |
| 291 | if part.Size == Vector3.new(2, 2, 2) then | |
| 292 | for x = -0.5, 2, 2 do | |
| 293 | for y = -0.5, 2, 2 do | |
| 294 | for z = -0.5, 1, 2 do | |
| 295 | local oPart = createEarth(workspace) | |
| 296 | oPart.Size = Vector3.new(1, 1, 1) | |
| 297 | oPart.CFrame = part.CFrame * CFrame.new(x*1.1, y*1.1, z*1.1) | |
| 298 | end | |
| 299 | end | |
| 300 | end | |
| 301 | part:Destroy() | |
| 302 | end | |
| 303 | ||
| 304 | end | |
| 305 | ||
| 306 | ||
| 307 | ||
| 308 | ||
| 309 | -- Raise tower | |
| 310 | elseif key == "r" and state and not raisingTower then | |
| 311 | game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
| |
| 312 | raisingTower = true | |
| 313 | lastTower = nil | |
| 314 | if torso.Position.y - 5/2 < 20.4 then | |
| 315 | local part = createEarth(workspace) | |
| 316 | part.Anchored = true | |
| 317 | disabled[part] = true | |
| 318 | ||
| 319 | for i = 0, 20, 4 do | |
| 320 | part.Size = Vector3.new(5, i, 5) | |
| 321 | part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z) | |
| 322 | torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z) | |
| 323 | wait(1/30) | |
| 324 | end | |
| 325 | ||
| 326 | lastTower = part | |
| 327 | ||
| 328 | disabled[part] = nil | |
| 329 | part.Anchored = false | |
| 330 | end | |
| 331 | raisingTower = false | |
| 332 | ||
| 333 | ||
| 334 | -- Raise wall | |
| 335 | elseif key == "t" and state and not wall then | |
| 336 | game:GetService("Chat"):Chat(char.Head, raisechats[math.random(1,#raisechats)], Enum.ChatColor.Red)
| |
| 337 | wall = true | |
| 338 | lastWall = nil | |
| 339 | if torso.Position.y - 5/2 < 20.4 then | |
| 340 | local part = createEarth(workspace) | |
| 341 | part.Anchored = true | |
| 342 | disabled[part] = true | |
| 343 | ||
| 344 | for i = 0, 1, 20 do | |
| 345 | part.Size = Vector3.new(25, 15, 25) | |
| 346 | part.CFrame = CFrame.new(torso.Position.x, 0.4 + part.Size.y/2, torso.Position.z) | |
| 347 | torso.CFrame = (torso.CFrame - torso.CFrame.p) + Vector3.new(torso.Position.x, part.Position.y + part.Size.y/2 + 5/2, torso.Position.z) | |
| 348 | wait(1/30) | |
| 349 | end | |
| 350 | ||
| 351 | lastWall = part | |
| 352 | ||
| 353 | disabled[part] = nil | |
| 354 | part.Anchored = false | |
| 355 | end | |
| 356 | wall = false | |
| 357 | ||
| 358 | -- Ground attack | |
| 359 | elseif key == "g" and state and not groundAttack then | |
| 360 | game:GetService("Chat"):Chat(char.Head, Taunts[math.random(1,#Taunts)], Enum.ChatColor.Red)
| |
| 361 | groundAttack = true | |
| 362 | delay(1, function() | |
| 363 | groundAttack = false | |
| 364 | end) | |
| 365 | ||
| 366 | local dir = planeY(mouse.Hit.p - torso.Position).unit | |
| 367 | local pos = planeY(torso.Position, 0.4 + 1) + dir*5 | |
| 368 | ||
| 369 | local ground = {}
| |
| 370 | ||
| 371 | delay(5, function() | |
| 372 | for i = 1, 20 do | |
| 373 | for _, part in pairs(ground) do | |
| 374 | if part.Anchored then | |
| 375 | part.CFrame = part.CFrame + Vector3.new(0, -1/7, 0) | |
| 376 | end | |
| 377 | end | |
| 378 | wait(1/30) | |
| 379 | end | |
| 380 | for _, part in pairs(ground) do | |
| 381 | if part.Anchored then | |
| 382 | part:Destroy() | |
| 383 | end | |
| 384 | end | |
| 385 | end) | |
| 386 | ||
| 387 | for i = 1, 10 do | |
| 388 | local hit, pos2 = rayCast(pos, dir*5, {char})
| |
| 389 | ||
| 390 | local part = createEarth(workspace) | |
| 391 | part.Anchored = true | |
| 392 | part.Size = Vector3.new(4, 4, 4) | |
| 393 | part.CFrame = CFrame.new(pos2, pos2 + dir) * CFrame.Angles(math.rad(-50), 0, 0) + Vector3.new(0, -0, 0) | |
| 394 | ||
| 395 | ground[#ground + 1] = part | |
| 396 | ||
| 397 | -- Add force | |
| 398 | if hit then | |
| 399 | local mass = hit:GetMass() | |
| 400 | ||
| 401 | -- Hit player | |
| 402 | for _, oPlayer in pairs(game.Players:GetPlayers()) do | |
| 403 | if oPlayer.Character and oPlayer.Character:FindFirstChild("Torso") and hit:IsDescendantOf(oPlayer.Character) then
| |
| 404 | hit = oPlayer.Character.Torso | |
| 405 | mass = 20 | |
| 406 | end | |
| 407 | end | |
| 408 | ||
| 409 | if hit.Name ~= "Torso" then | |
| 410 | hit:ClearAllChildren() | |
| 411 | end | |
| 412 | hit.Anchored = false | |
| 413 | ||
| 414 | -- Add force | |
| 415 | local bodyForce = createBody("Force", hit)
| |
| 416 | bodyForce.force = (dir + Vector3.new(0, 0.2, 0)).unit*1e4 * mass | |
| 417 | ||
| 418 | game.Debris:AddItem(bodyForce, 1/30) | |
| 419 | break | |
| 420 | end | |
| 421 | ||
| 422 | pos = pos2 | |
| 423 | wait(1/20) | |
| 424 | end | |
| 425 | end | |
| 426 | end | |
| 427 | ||
| 428 | --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW --- | |
| 429 | --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW --- | |
| 430 | --- CORE CODE BELOW --- CORE CODE BELOW --- CORE CODE BELOW --- | |
| 431 | ||
| 432 | -- Clear old tool | |
| 433 | player.Backpack:ClearAllChildren() | |
| 434 | ||
| 435 | -- Create tool | |
| 436 | local tool = Instance.new("HopperBin")
| |
| 437 | tool.Parent = player.Backpack | |
| 438 | - | tool.Name = "Kronola's Custom" |
| 438 | + | tool.Name = "Doom" |
| 439 | ||
| 440 | -- Tool selected | |
| 441 | tool.Selected:connect(function(mouse) | |
| 442 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
| 443 | ||
| 444 | -- Mouse events | |
| 445 | mouse.Button1Down:connect(function() | |
| 446 | mouseDown = true | |
| 447 | end) | |
| 448 | mouse.Button1Up:connect(function() | |
| 449 | mouseDown = false | |
| 450 | end) | |
| 451 | mouse.KeyDown:connect(function(key) | |
| 452 | keysDown[key:lower()] = true | |
| 453 | onKeyChange(mouse, key:lower(), true) | |
| 454 | end) | |
| 455 | mouse.KeyUp:connect(function(key) | |
| 456 | keysDown[key:lower()] = false | |
| 457 | onKeyChange(mouse, key:lower(), false) | |
| 458 | end) | |
| 459 | ||
| 460 | -- Call main | |
| 461 | main(mouse) | |
| 462 | end) | |
| 463 | ||
| 464 | --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW --- | |
| 465 | --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW --- | |
| 466 | --- LIBRARY BELOW --- LIBRARY BELOW --- LIBRARY BELOW --- | |
| 467 | ||
| 468 | -- Ray cast | |
| 469 | function rayCast(pos, dir, ignore) | |
| 470 | return workspace:FindPartOnRayWithIgnoreList(Ray.new(pos, dir), ignore) | |
| 471 | end | |
| 472 | ||
| 473 | -- Create body | |
| 474 | function createBody(type, path) | |
| 475 | local body = Instance.new("Body" .. type)
| |
| 476 | if type == "Gyro" then | |
| 477 | body.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 478 | elseif type ~= "Force" then | |
| 479 | body.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 480 | end | |
| 481 | body.Parent = path | |
| 482 | return body | |
| 483 | end | |
| 484 | ||
| 485 | -- Get parts in region 3 | |
| 486 | function getPartsInRegion3(region, parts) | |
| 487 | repeat | |
| 488 | local regParts = workspace:FindPartsInRegion3WithIgnoreList(region, parts, 100) | |
| 489 | for i, part in pairs(regParts) do | |
| 490 | parts[#parts + 1] = part | |
| 491 | end | |
| 492 | until #regParts < 100 | |
| 493 | end | |
| 494 | ||
| 495 | -- Random | |
| 496 | function r(min, max) | |
| 497 | return math.random()*(max - min) + min | |
| 498 | end | |
| 499 | ||
| 500 | -- Plane y | |
| 501 | function planeY(v, y) | |
| 502 | return Vector3.new(v.x, y or 0, v.z) | |
| 503 | end | |
| 504 | ||
| 505 | -- Create earth | |
| 506 | function createEarth(path) | |
| 507 | local part = createPart("Earth", path)
| |
| 508 | - | part.BrickColor = BrickColor.new("Really black")
|
| 508 | + | part.BrickColor = BrickColor.new("Really red")
|
| 509 | - | part.Material = "Slate" |
| 509 | + | part.Material = "Neon" |
| 510 | m = Instance.new("Fire",part)
| |
| 511 | - | m.Heat = 10 |
| 511 | + | m.Heat = 100 |
| 512 | m.size = 100 | |
| 513 | m.Color = Color3.new(0,0.8,0.9) | |
| 514 | part.Parent = path | |
| 515 | return part | |
| 516 | end | |
| 517 | ||
| 518 | -- Create part | |
| 519 | function createPart(name, path) | |
| 520 | local part = Instance.new("Part")
| |
| 521 | part.FormFactor = "Symmetric" | |
| 522 | part.BottomSurface = "Smooth" | |
| 523 | part.TopSurface = "Smooth" | |
| 524 | part.Size = Vector3.new(1, 1, 1) | |
| 525 | part.Name = name | |
| 526 | - | end |
| 526 | + | |
| 527 | return part | |
| 528 | end | |
| 529 | ||
| 530 | lp=game.Players.LocalPlayer | |
| 531 | chr=lp.Character | |
| 532 | attacking=false | |
| 533 | mouse = game.Players.LocalPlayer:GetMouse() | |
| 534 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
| 535 | p0.Position = p1.Position | |
| 536 | local w = Instance.new('Motor',par or p0)
| |
| 537 | w.Part0 = p0 | |
| 538 | w.Part1 = p1 | |
| 539 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
| 540 | return w | |
| 541 | end | |
| 542 | z=Instance.new("Part",chr)
| |
| 543 | z.Size=chr.Torso.Size | |
| 544 | cloud=Instance.new("SpecialMesh",z)
| |
| 545 | cloud.MeshId="rbxassetid://1095708" | |
| 546 | cloud.Scale=Vector3.new(2,2,2) | |
| 547 | z.Transparency=1 | |
| 548 | Weld(z,chr.Torso,0,15,0,0,0,0,z) | |
| 549 | Song = function(Volume,SoundId,Looped,Object) | |
| 550 | sound=Instance.new("Sound")
| |
| 551 | sound.Parent=Object | |
| 552 | sound.Volume=Volume | |
| 553 | sound.SoundId="rbxassetid://"..SoundId | |
| 554 | sound.Looped=Looped | |
| 555 | sound:Play() | |
| 556 | end | |
| 557 | Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency) | |
| 558 | local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
| |
| 559 | for i=1,Times do | |
| 560 | local li = Instance.new("Part",workspace)
| |
| 561 | li.TopSurface =0 | |
| 562 | li.BottomSurface = 0 | |
| 563 | li.Anchored = true | |
| 564 | li.Material = 288 | |
| 565 | li.Transparency = Transparency or 0.4 | |
| 566 | li.BrickColor = BrickColor.new("Cyan")
| |
| 567 | li.formFactor = "Custom" | |
| 568 | li.CanCollide = false | |
| 569 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 570 | local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz | |
| 571 | if Times == i then | |
| 572 | local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 573 | li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2) | |
| 574 | else | |
| 575 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 576 | end | |
| 577 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25) | |
| 578 | end | |
| 579 | end | |
| 580 | mouse.KeyDown:connect(function(key) | |
| 581 | key:lower() | |
| 582 | if key == "q" and attacking == false then | |
| 583 | attacking= true | |
| 584 | for i=1,4 do | |
| 585 | Lightning(chr.Head.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3) | |
| 586 | explode=Instance.new("Explosion",Workspace)
| |
| 587 | explode.Position=mouse.Hit.p | |
| 588 | end | |
| 589 | attacking=false | |
| 590 | end | |
| 591 | end) | |
| 592 | mouse.KeyDown:connect(function(key) | |
| 593 | key:lower() | |
| 594 | if key == "." and attacking == false then | |
| 595 | attacking = true | |
| 596 | Instance.new("ForceField",chr)
| |
| 597 | chr.Torso.Anchored=true | |
| 598 | z.Transparency=0 | |
| 599 | z.Material = 288 | |
| 600 | for i=1,20 do | |
| 601 | Wait() | |
| 602 | Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3) | |
| 603 | explode=Instance.new("Explosion",chr)
| |
| 604 | explode.Position=chr.Torso.Position | |
| 605 | end | |
| 606 | wait(2) | |
| 607 | chr.ForceField:Destroy() | |
| 608 | chr.Torso.Anchored=false | |
| 609 | z.Transparency=1 | |
| 610 | z.Material = 288 | |
| 611 | attacking=false | |
| 612 | end | |
| 613 | end) | |
| 614 | mouse.KeyDown:connect(function(key) | |
| 615 | key:lower() | |
| 616 | if key == "." and attacking == false then | |
| 617 | Song(math.huge,172949886,true,chr.Head) | |
| 618 | end | |
| 619 | end) | |
| 620 | mouse.KeyDown:connect(function(key) | |
| 621 | key:lower() | |
| 622 | if key == "e" and attacking == false then | |
| 623 | wait() | |
| 624 | for i=1,5 do | |
| 625 | Lightning(chr.Torso.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3) | |
| 626 | end | |
| 627 | Wait() | |
| 628 | x=Instance.new("Part",chr)
| |
| 629 | x.Transparency=1 | |
| 630 | x.Material = 288 | |
| 631 | x.Position=mouse.Hit.p | |
| 632 | chr.Torso.CFrame=x.CFrame*CFrame.new(0,5,0) | |
| 633 | x:Destroy() | |
| 634 | end | |
| 635 | end) | |
| 636 | mouse.KeyDown:connect(function(key) | |
| 637 | key:lower() | |
| 638 | if key == "y" and attacking == false then | |
| 639 | for i,v in pairs(chr.Head:GetChildren()) do | |
| 640 | if v:IsA("Sound") then
| |
| 641 | v:Destroy() | |
| 642 | end | |
| 643 | end | |
| 644 | end | |
| 645 | end) | |
| 646 | mouse.KeyDown:connect(function(key) | |
| 647 | key:lower() | |
| 648 | if key == "j" and attacking == false then | |
| 649 | for i=1,10 do | |
| 650 | wait() | |
| 651 | Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3) | |
| 652 | explode=Instance.new("Explosion",chr)
| |
| 653 | explode.Position=chr.Torso.Position | |
| 654 | explode.BlastPressure=0 | |
| 655 | chr.Humanoid.Health=chr.Humanoid.Health+10 | |
| 656 | end | |
| 657 | end | |
| 658 | end) | |
| 659 | mouse.KeyDown:connect(function(key) | |
| 660 | key:lower() | |
| 661 | if key == "r" and attacking == false then | |
| 662 | attacking=true | |
| 663 | z.Transparency=0 | |
| 664 | Lightning(z.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3) | |
| 665 | explode=Instance.new("Explosion",chr)
| |
| 666 | explode.Position=mouse.Hit.p | |
| 667 | z.Transparency=1 | |
| 668 | attacking=false | |
| 669 | end | |
| 670 | end) | |
| 671 | ||
| 672 | --==//==-- | |
| 673 | local Player = game:service("Players").LocalPlayer
| |
| 674 | local Char = Player.Character | |
| 675 | local mouse = Player:GetMouse() | |
| 676 | local Humanoid = Char:findFirstChild("Humanoid")
| |
| 677 | local Torso = Char:findFirstChild("Torso")
| |
| 678 | ---------------------------------------------------------- | |
| 679 | z = Instance.new("Sound", Torso)
| |
| 680 | z.SoundId = "rbxassetid://200514784" -- Put Music ID Here. | |
| 681 | z.Looped = true | |
| 682 | z.Volume = 7 | |
| 683 | z.Pitch = 0.8 | |
| 684 | wait(.1) | |
| 685 | z:Play() | |
| 686 | ------------------------ | |
| 687 | local Head = Char.Head | |
| 688 | local ra = Char:findFirstChild("Right Arm")
| |
| 689 | local la = Char:findFirstChild("Left Arm")
| |
| 690 | local rl = Char:findFirstChild("Right Leg")
| |
| 691 | local ll = Char:findFirstChild("Left Leg")
| |
| 692 | local rs = Torso:findFirstChild("Right Shoulder")
| |
| 693 | local ls = Torso:findFirstChild("Left Shoulder")
| |
| 694 | local rh = Torso:findFirstChild("Right Hip")
| |
| 695 | local lh = Torso:findFirstChild("Left Hip")
| |
| 696 | local neck = Torso:findFirstChild("Neck")
| |
| 697 | local rp = Char:findFirstChild("HumanoidRootPart")
| |
| 698 | rp.Archivable = true | |
| 699 | local rj = rp:findFirstChild("RootJoint")
| |
| 700 | rj.Archivable = true | |
| 701 | local animate = Char:findFirstChild("Animate")
| |
| 702 | local rootpart = Char:findFirstChild("HumanoidRootPart")
| |
| 703 | local Camera = workspace.CurrentCamera | |
| 704 | local CF = CFrame.new | |
| 705 | local components = CF().components | |
| 706 | local magicclrs = {"Cyan", "Cyan", "Cyan"}
| |
| 707 | --local magicclrs = {"Really red", "Cyan", "Red", "Cyan", "Really blue", "Red", "Blue"}
| |
| 708 | rootpart.CanCollide = false | |
| 709 | Humanoid:findFirstChild("Animator"):Destroy()
| |
| 710 | Humanoid.CameraOffset = Vector3.new(0, 2, 0) | |
| 711 | Humanoid.JumpPower = 60 | |
| 712 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
| 713 | if jump == "Jump" then | |
| 714 | Humanoid.Jump = false | |
| 715 | end | |
| 716 | end) | |
| 717 | ||
| 718 | ||
| 719 | ||
| 720 | Lerp = function(a,b,c) | |
| 721 | return a+(b-a)*c | |
| 722 | end | |
| 723 | ||
| 724 | function phaseclone() | |
| 725 | Char.Archivable = true | |
| 726 | local Clone1 = Char:Clone() | |
| 727 | Clone1.Parent = game.Workspace | |
| 728 | for i,v in pairs (Clone1:GetChildren()) do | |
| 729 | if v.ClassName == "BodyColors" then | |
| 730 | B = "Red" | |
| 731 | v.HeadColor = BrickColor.new(B) | |
| 732 | v.LeftArmColor = BrickColor.new(B) | |
| 733 | v.RightArmColor = BrickColor.new(B) | |
| 734 | v.TorsoColor = BrickColor.new(B) | |
| 735 | v.LeftLegColor = BrickColor.new(B) | |
| 736 | v.RightLegColor = BrickColor.new(B) | |
| 737 | elseif not v:IsA("Part") then
| |
| 738 | v:Destroy() | |
| 739 | end | |
| 740 | if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then | |
| 741 | v:Destroy() | |
| 742 | end | |
| 743 | if v:IsA("Part") then
| |
| 744 | v.Transparency = 0.5 | |
| 745 | v.TopSurface = "Smooth" | |
| 746 | v.BottomSurface = "Smooth" | |
| 747 | v.LeftSurface = "Smooth" | |
| 748 | v.RightSurface = "Smooth" | |
| 749 | Bl = "Really black" | |
| 750 | v.BrickColor = BrickColor.new(Bl) | |
| 751 | v.Anchored = true | |
| 752 | v.CanCollide = false | |
| 753 | end | |
| 754 | end | |
| 755 | for i,v in pairs (Clone1:GetChildren()) do | |
| 756 | if v:FindFirstChild("roblox") then
| |
| 757 | v.roblox:Destroy() | |
| 758 | end | |
| 759 | if v:FindFirstChild("face") then
| |
| 760 | v.face:Destroy() | |
| 761 | end | |
| 762 | if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then | |
| 763 | v:Remove() | |
| 764 | end | |
| 765 | end | |
| 766 | wait(0.3) | |
| 767 | for i = 1,5 do | |
| 768 | for _,v in pairs(Clone1:GetChildren()) do | |
| 769 | if v:IsA("Part") then
| |
| 770 | v.Transparency = 0.5+i/5 | |
| 771 | wait() | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | Clone1:Destroy() | |
| 776 | end | |
| 777 | ||
| 778 | ||
| 779 | function ctlerp(c1,c2,al) | |
| 780 | local com1 = {c1:components()}
| |
| 781 | local com2 = {c2:components()}
| |
| 782 | for i,v in pairs(com1) do | |
| 783 | com1[i] = Lerp(v,com2[i],al) | |
| 784 | end | |
| 785 | return CF(unpack(com1)) | |
| 786 | end | |
| 787 | ||
| 788 | do | |
| 789 | local function QuaternionFromCFrame(cf) | |
| 790 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 791 | local trace = m00 + m11 + m22 | |
| 792 | if trace > 0 then | |
| 793 | local s = math.sqrt(1 + trace) | |
| 794 | local recip = 0.5/s | |
| 795 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 796 | else | |
| 797 | local i = 0 | |
| 798 | if m11 > m00 then | |
| 799 | i = 1 | |
| 800 | end | |
| 801 | if m22 > (i == 0 and m00 or m11) then | |
| 802 | i = 2 | |
| 803 | end | |
| 804 | if i == 0 then | |
| 805 | local s = math.sqrt(m00-m11-m22+1) | |
| 806 | local recip = 0.5/s | |
| 807 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 808 | elseif i == 1 then | |
| 809 | local s = math.sqrt(m11-m22-m00+1) | |
| 810 | local recip = 0.5/s | |
| 811 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 812 | elseif i == 2 then | |
| 813 | local s = math.sqrt(m22-m00-m11+1) | |
| 814 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 815 | end | |
| 816 | end | |
| 817 | end | |
| 818 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 819 | local xs, ys, zs = x + x, y + y, z + z | |
| 820 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 821 | local xx = x*xs | |
| 822 | local xy = x*ys | |
| 823 | local xz = x*zs | |
| 824 | local yy = y*ys | |
| 825 | local yz = y*zs | |
| 826 | local zz = z*zs | |
| 827 | return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 828 | end | |
| 829 | local function QuaternionSlerp(a, b, t) | |
| 830 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 831 | local startInterp, finishInterp; | |
| 832 | if cosTheta >= 0.0001 then | |
| 833 | if (1 - cosTheta) > 0.0001 then | |
| 834 | local theta = math.acos(cosTheta) | |
| 835 | local invSinTheta = 1/math.sin(theta) | |
| 836 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 837 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 838 | else | |
| 839 | startInterp = 1-t | |
| 840 | finishInterp = t | |
| 841 | end | |
| 842 | else | |
| 843 | if (1+cosTheta) > 0.0001 then | |
| 844 | local theta = math.acos(-cosTheta) | |
| 845 | local invSinTheta = 1/math.sin(theta) | |
| 846 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 847 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 848 | else | |
| 849 | startInterp = t-1 | |
| 850 | finishInterp = t | |
| 851 | end | |
| 852 | end | |
| 853 | 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 | |
| 854 | end | |
| 855 | function clerp(a,b,t) | |
| 856 | local qa = {QuaternionFromCFrame(a)}
| |
| 857 | local qb = {QuaternionFromCFrame(b)}
| |
| 858 | local ax, ay, az = a.x, a.y, a.z | |
| 859 | local bx, by, bz = b.x, b.y, b.z | |
| 860 | local _t = 1-t | |
| 861 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 862 | end | |
| 863 | end | |
| 864 | ||
| 865 | --==/BASE/DEFAULT WELDS/==-- | |
| 866 | rm = Instance.new("Weld", Torso)
| |
| 867 | rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
| 868 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 869 | rm.Part0 = Torso | |
| 870 | rm.Part1 = ra | |
| 871 | lm = Instance.new("Weld", Torso)
| |
| 872 | lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
| 873 | lm.C1 = CFrame.new(0, 0.5, 0) | |
| 874 | lm.Part0 = Torso | |
| 875 | lm.Part1 = la | |
| 876 | rlegm = Instance.new("Weld", Torso)
| |
| 877 | rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
| 878 | rlegm.C1 = CFrame.new(0, 1, 0) | |
| 879 | rlegm.Part0 = Torso | |
| 880 | rlegm.Part1 = rl | |
| 881 | llegm = Instance.new("Weld", Torso)
| |
| 882 | llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
| 883 | llegm.C1 = CFrame.new(0, 1, 0) | |
| 884 | llegm.Part0 = Torso | |
| 885 | llegm.Part1 = ll | |
| 886 | neck.C0 = CFrame.new(0,1,0) | |
| 887 | neck.C1 = CFrame.new(0,-0.5,0) | |
| 888 | ||
| 889 | --==/Mage's gauntlet/==-- | |
| 890 | gauntlet = Instance.new("Model", Char)
| |
| 891 | gauntParts = Instance.new("Model", gauntlet)
| |
| 892 | ||
| 893 | local rrng = Instance.new("Part", gauntParts)
| |
| 894 | rrng.Anchored = false | |
| 895 | rrng.CanCollide = false | |
| 896 | rrng.FormFactor = "Custom" | |
| 897 | rrng.TopSurface = "Smooth" | |
| 898 | rrng.BottomSurface = "Smooth" | |
| 899 | rrng.BrickColor = BrickColor.new("Really black")
| |
| 900 | rrng.Transparency = 0 | |
| 901 | local rrngM = Instance.new("FileMesh", rrng)
| |
| 902 | rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 903 | rrngM.Scale = Vector3.new(0.8, 0.8, 0.8) | |
| 904 | local rrngW = Instance.new("Weld", rrng)
| |
| 905 | rrngW.Part1 = rrng | |
| 906 | rrngW.Part0 = ra | |
| 907 | rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 908 | ||
| 909 | local rbg = Instance.new("Part", gauntParts)
| |
| 910 | rbg.Anchored, rbg.CanCollide = false, false | |
| 911 | rbg.FormFactor = "Custom" | |
| 912 | rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth" | |
| 913 | rbg.Color = Color3.new(0, 0, 0) | |
| 914 | rbg.Transparency = 0 | |
| 915 | local rbgM = Instance.new("SpecialMesh", rbg)
| |
| 916 | rbgM.MeshType = "Cylinder" | |
| 917 | rbgM.Scale = Vector3.new(0.01, 0.7, 0.7) | |
| 918 | local rbgW = Instance.new("Weld", rbg)
| |
| 919 | rbgW.Part1 = rbg | |
| 920 | rbgW.Part0 = rrng | |
| 921 | rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 922 | ||
| 923 | local chak = Instance.new("Part", gauntParts)
| |
| 924 | chak.Anchored, chak.CanCollide = false, false | |
| 925 | chak.FormFactor = "Custom" | |
| 926 | chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth" | |
| 927 | chak.Color = Color3.new(1, 1, 1) | |
| 928 | chak.Transparency = 0 | |
| 929 | local chakM = Instance.new("FileMesh", chak)
| |
| 930 | chakM.MeshId = "http://www.roblox.com/asset/?id=47260990" | |
| 931 | chakM.Scale = Vector3.new(0.85, 0.85, 0.85) | |
| 932 | local chakW = Instance.new("Motor", chak)
| |
| 933 | chakW.DesiredAngle = 100000000000 | |
| 934 | chakW.MaxVelocity = 0.1 | |
| 935 | chakW.Part1 = chak | |
| 936 | chakW.Part0 = rrng | |
| 937 | chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0) | |
| 938 | ||
| 939 | --=/Spikes for Gauntlet [top]/=-- | |
| 940 | ||
| 941 | local cone = Instance.new("Part", gauntParts)
| |
| 942 | cone.Anchored, cone.CanCollide = false, false | |
| 943 | cone.FormFactor = "Custom" | |
| 944 | cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
| 945 | cone.Color = Color3.new(0, 0, 0) | |
| 946 | cone.Transparency = 0 | |
| 947 | local coneM = Instance.new("FileMesh", cone)
| |
| 948 | coneM.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 949 | coneM.Scale = Vector3.new(0.1, 0.85, 0.06) | |
| 950 | local coneW = Instance.new("Motor", cone)
| |
| 951 | coneW.Part1 = cone | |
| 952 | coneW.Part0 = rrng | |
| 953 | coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0) | |
| 954 | ||
| 955 | local cone2 = Instance.new("Part", gauntParts)
| |
| 956 | cone2.Anchored, cone2.CanCollide = false, false | |
| 957 | cone2.FormFactor = "Custom" | |
| 958 | cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth" | |
| 959 | cone2.Color = Color3.new(0, 0, 0) | |
| 960 | cone2.Transparency = 0 | |
| 961 | local cone2M = Instance.new("FileMesh", cone2)
| |
| 962 | cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 963 | cone2M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
| 964 | local cone2W = Instance.new("Motor", cone2)
| |
| 965 | cone2W.Part1 = cone2 | |
| 966 | cone2W.Part0 = rrng | |
| 967 | cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40)) | |
| 968 | ||
| 969 | local cone3 = Instance.new("Part", gauntParts)
| |
| 970 | cone3.Anchored, cone3.CanCollide = false, false | |
| 971 | cone3.FormFactor = "Custom" | |
| 972 | cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth" | |
| 973 | cone3.Color = Color3.new(0, 0, 0) | |
| 974 | cone3.Transparency = 0 | |
| 975 | local cone3M = Instance.new("FileMesh", cone3)
| |
| 976 | cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 977 | cone3M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
| 978 | local cone3W = Instance.new("Motor", cone3)
| |
| 979 | cone3W.Part1 = cone3 | |
| 980 | cone3W.Part0 = rrng | |
| 981 | cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40)) | |
| 982 | ||
| 983 | --=/Spikes for Gauntlet [bottom]/=-- | |
| 984 | ||
| 985 | local cone4 = Instance.new("Part", gauntParts)
| |
| 986 | cone4.Anchored, cone4.CanCollide = false, false | |
| 987 | cone4.FormFactor = "Custom" | |
| 988 | cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
| 989 | cone4.Color = Color3.new(0, 0, 0) | |
| 990 | cone4.Transparency = 0 | |
| 991 | local cone4M = Instance.new("FileMesh", cone4)
| |
| 992 | cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 993 | cone4M.Scale = Vector3.new(0.1, 1, 0.06) | |
| 994 | local cone4W = Instance.new("Motor", cone4)
| |
| 995 | cone4W.Part1 = cone4 | |
| 996 | cone4W.Part0 = rrng | |
| 997 | cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180)) | |
| 998 | ||
| 999 | local cone5 = Instance.new("Part", gauntParts)
| |
| 1000 | cone5.Anchored, cone5.CanCollide = false, false | |
| 1001 | cone5.FormFactor = "Custom" | |
| 1002 | cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth" | |
| 1003 | cone5.Color = Color3.new(0, 0, 0) | |
| 1004 | cone5.Transparency = 0 | |
| 1005 | local cone5M = Instance.new("FileMesh", cone5)
| |
| 1006 | cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 1007 | cone5M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
| 1008 | local cone5W = Instance.new("Motor", cone5)
| |
| 1009 | cone5W.Part1 = cone5 | |
| 1010 | cone5W.Part0 = rrng | |
| 1011 | cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150)) | |
| 1012 | ||
| 1013 | local cone6 = Instance.new("Part", gauntParts)
| |
| 1014 | cone6.Anchored, cone6.CanCollide = false, false | |
| 1015 | cone6.FormFactor = "Custom" | |
| 1016 | cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth" | |
| 1017 | cone6.Color = Color3.new(0, 0, 0) | |
| 1018 | cone6.Transparency = 0 | |
| 1019 | local cone6M = Instance.new("FileMesh", cone6)
| |
| 1020 | cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 1021 | cone6M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
| 1022 | local cone6W = Instance.new("Motor", cone6)
| |
| 1023 | cone6W.Part1 = cone6 | |
| 1024 | cone6W.Part0 = rrng | |
| 1025 | cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150)) | |
| 1026 | ||
| 1027 | --=/Armband/=-- | |
| 1028 | ||
| 1029 | local armbnd = Instance.new("Part", gauntParts)
| |
| 1030 | armbnd.Anchored, armbnd.CanCollide = false, false | |
| 1031 | armbnd.FormFactor = "Custom" | |
| 1032 | armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth" | |
| 1033 | armbnd.Color = Color3.new(0, 0, 0) | |
| 1034 | armbnd.Transparency = 0 | |
| 1035 | armbnd.Size = Vector3.new(1.005, 0.3, 1.005) | |
| 1036 | local armbndW = Instance.new("Motor", armbnd)
| |
| 1037 | armbndW.Part1 = armbnd | |
| 1038 | armbndW.Part0 = ra | |
| 1039 | armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1040 | ||
| 1041 | local armbnd2 = Instance.new("Part", gauntParts)
| |
| 1042 | armbnd2.Anchored, armbnd2.CanCollide = false, false | |
| 1043 | armbnd2.FormFactor = "Custom" | |
| 1044 | armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth" | |
| 1045 | armbnd2.Color = Color3.new(0, 0, 0) | |
| 1046 | armbnd2.Transparency = 0 | |
| 1047 | armbnd2.Size = Vector3.new(1.005, 0.01, 1.005) | |
| 1048 | local armbnd2W = Instance.new("Motor", armbnd2)
| |
| 1049 | armbnd2W.Part1 = armbnd2 | |
| 1050 | armbnd2W.Part0 = armbnd | |
| 1051 | armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0) | |
| 1052 | ||
| 1053 | local armbnd3 = Instance.new("Part", gauntParts)
| |
| 1054 | armbnd3.Anchored, armbnd3.CanCollide = false, false | |
| 1055 | armbnd3.FormFactor = "Custom" | |
| 1056 | armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth" | |
| 1057 | armbnd3.Color = Color3.new(0, 0, 0) | |
| 1058 | armbnd3.Transparency = 0 | |
| 1059 | armbnd3.Size = Vector3.new(1.005, 0.01, 1.005) | |
| 1060 | local armbnd3W = Instance.new("Motor", armbnd3)
| |
| 1061 | armbnd3W.Part1 = armbnd3 | |
| 1062 | armbnd3W.Part0 = armbnd | |
| 1063 | armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0) | |
| 1064 | ||
| 1065 | --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]-- | |
| 1066 | ||
| 1067 | --==/BASE VARIABLES/==-- | |
| 1068 | sine = 1 | |
| 1069 | angle = 0 | |
| 1070 | anglespeed = 1 | |
| 1071 | local anim = false | |
| 1072 | local walking = false | |
| 1073 | local sprinting = false | |
| 1074 | local magix = false | |
| 1075 | local debounce = false | |
| 1076 | local magixball = false | |
| 1077 | ||
| 1078 | mouse.Button1Down:connect(function() | |
| 1079 | magixball = true | |
| 1080 | if debounce == false and magix == true then | |
| 1081 | debounce = true | |
| 1082 | coroutine.resume(coroutine.create(function() | |
| 1083 | wait(0.3) | |
| 1084 | debounce = false | |
| 1085 | end)) | |
| 1086 | local PorplBall = Instance.new("Part", Char)
| |
| 1087 | PorplBall.Archivable = true | |
| 1088 | PorplBall.TopSurface = 10 | |
| 1089 | PorplBall.BottomSurface = 10 | |
| 1090 | PorplBall.CFrame = rrng.CFrame | |
| 1091 | PorplBall.Anchored = false | |
| 1092 | PorplBall.CanCollide = false | |
| 1093 | PorplBall.Size = Vector3.new(1, 1, 1) | |
| 1094 | PorplBall.BrickColor = BrickColor.new("Really black")
| |
| 1095 | PorplBall.Transparency = 0 | |
| 1096 | local PorplBallM = Instance.new("SpecialMesh", PorplBall)
| |
| 1097 | PorplBallM.MeshType = "Sphere" | |
| 1098 | PorplBallM.Scale = Vector3.new(1, 1, 1) | |
| 1099 | local function explode() | |
| 1100 | wait() | |
| 1101 | PorplBall:Destroy() | |
| 1102 | end | |
| 1103 | coroutine.resume(coroutine.create(function() | |
| 1104 | for i = 1, 125 do wait(0.000000000000001) | |
| 1105 | local pmagic = Instance.new("Part", PorplBall)
| |
| 1106 | pmagic.FormFactor = "Custom" | |
| 1107 | pmagic.Anchored = true | |
| 1108 | pmagic.CanCollide = false | |
| 1109 | pmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 1110 | pmagic.TopSurface = 10 | |
| 1111 | pmagic.BottomSurface = 10 | |
| 1112 | pmagic.LeftSurface = 10 | |
| 1113 | pmagic.RightSurface = 10 | |
| 1114 | pmagic.FrontSurface = 10 | |
| 1115 | pmagic.BackSurface = 10 | |
| 1116 | pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 1117 | pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1118 | local lt = Instance.new("PointLight", pmagic)
| |
| 1119 | lt.Brightness = 100 | |
| 1120 | lt.Range = 5 | |
| 1121 | lt.Color = Color3.new(0, 0, 65/100) | |
| 1122 | local pmagicM = Instance.new("BlockMesh", pmagic)
| |
| 1123 | game:GetService("Debris"):AddItem(pmagic, 0.5)
| |
| 1124 | coroutine.wrap(function() | |
| 1125 | for i = 1, 10 do | |
| 1126 | pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 1127 | pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 1128 | wait() | |
| 1129 | end | |
| 1130 | end)() | |
| 1131 | end | |
| 1132 | end)) | |
| 1133 | local Velocity = Instance.new("BodyVelocity", PorplBall)
| |
| 1134 | Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge | |
| 1135 | Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80 | |
| 1136 | local ready = false | |
| 1137 | PorplBall.Touched:connect(function(part) | |
| 1138 | if not part:IsDescendantOf(Char) and ready == false then | |
| 1139 | ready = true | |
| 1140 | local found = false | |
| 1141 | for i,v in pairs (part.Parent:GetChildren()) do | |
| 1142 | if v:IsA("Humanoid") or v == Torso or v == Head then
| |
| 1143 | found = true | |
| 1144 | v.MaxHealth = v.MaxHealth - math.huge | |
| 1145 | v.Health = v.Health - math.huge | |
| 1146 | end | |
| 1147 | end | |
| 1148 | Velocity:Destroy() | |
| 1149 | PorplBall.Anchored = true | |
| 1150 | for i = 0, 1, 0.06 do | |
| 1151 | local start = 1 | |
| 1152 | local stop = 7 | |
| 1153 | PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start)) | |
| 1154 | PorplBall.Transparency = i | |
| 1155 | wait() | |
| 1156 | end | |
| 1157 | explode() | |
| 1158 | end | |
| 1159 | end) | |
| 1160 | wait(6.5) | |
| 1161 | explode() | |
| 1162 | end | |
| 1163 | end) | |
| 1164 | ||
| 1165 | coroutine.resume(coroutine.create(function() | |
| 1166 | while wait(0.0000000001) do if magix == true then | |
| 1167 | --[[ --==/Lightning Magic/==-- | |
| 1168 | lastCF = Torso.Position | |
| 1169 | x1 = Instance.new("Part", workspace)
| |
| 1170 | x1.Size = Vector3.new(1, 1, 1) | |
| 1171 | x1.CanCollide = false | |
| 1172 | x1.Anchored = true | |
| 1173 | x1.Transparency = 1 | |
| 1174 | spawn(function() | |
| 1175 | while true do | |
| 1176 | wait(-1) | |
| 1177 | x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6) | |
| 1178 | end | |
| 1179 | end) | |
| 1180 | for i = 1, math.huge do | |
| 1181 | local dist2 = (lastCF-x1.Position).magnitude | |
| 1182 | x2 = Instance.new("Part", workspace)
| |
| 1183 | x2.Size = Vector3.new(1, 1, 1) | |
| 1184 | x2.Material = "Neon" | |
| 1185 | x2.BrickColor = BrickColor.new("Really black")
| |
| 1186 | x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2) | |
| 1187 | x2.CanCollide = false | |
| 1188 | x2.Anchored = true | |
| 1189 | local m = Instance.new("BlockMesh", x2)
| |
| 1190 | m.Scale = Vector3.new(0.5, 0.5, dist2) | |
| 1191 | lastCF = x1.Position | |
| 1192 | spawn(function() | |
| 1193 | for i = 1, 100 do | |
| 1194 | x = m.Scale.x/10 | |
| 1195 | y = m.Scale.x/10 | |
| 1196 | m.Scale = m.Scale-Vector3.new(x, y, 0) | |
| 1197 | wait() | |
| 1198 | end | |
| 1199 | end) | |
| 1200 | game.Debris:AddItem(x2, 0.35) | |
| 1201 | wait() | |
| 1202 | end | |
| 1203 | x1:Destroy() | |
| 1204 | ]]-- | |
| 1205 | --=/Right Arm Magic/=-- | |
| 1206 | local ramagic = Instance.new("Part", Char)
| |
| 1207 | ramagic.FormFactor = "Custom" | |
| 1208 | ramagic.Anchored = true | |
| 1209 | ramagic.CanCollide = false | |
| 1210 | ramagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 1211 | ramagic.TopSurface = 10 | |
| 1212 | ramagic.BottomSurface = 10 | |
| 1213 | ramagic.LeftSurface = 10 | |
| 1214 | ramagic.RightSurface = 10 | |
| 1215 | ramagic.FrontSurface=10 | |
| 1216 | ramagic.BackSurface=10 | |
| 1217 | ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 1218 | ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1219 | local lt = Instance.new("PointLight", ramagic)
| |
| 1220 | lt.Brightness = 100 | |
| 1221 | lt.Range = 5 | |
| 1222 | lt.Color = Color3.new(0, 0, 65/100) | |
| 1223 | local ramagicM = Instance.new("BlockMesh", ramagic)
| |
| 1224 | ||
| 1225 | --=/Left Arm Magic/=-- | |
| 1226 | local lamagic = Instance.new("Part", Char)
| |
| 1227 | lamagic.FormFactor = "Custom" | |
| 1228 | lamagic.Anchored = true | |
| 1229 | lamagic.CanCollide = false | |
| 1230 | lamagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 1231 | lamagic.TopSurface = 10 | |
| 1232 | lamagic.BottomSurface = 10 | |
| 1233 | lamagic.LeftSurface = 10 | |
| 1234 | lamagic.RightSurface = 10 | |
| 1235 | lamagic.FrontSurface=10 | |
| 1236 | lamagic.BackSurface=10 | |
| 1237 | lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)]) | |
| 1238 | lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1239 | local lt2 = Instance.new("PointLight", lamagic)
| |
| 1240 | lt2.Brightness = 100 | |
| 1241 | lt2.Range = 6 | |
| 1242 | lt2.Color = Color3.new(0, 0, 65/100) | |
| 1243 | local lamagicM = Instance.new("BlockMesh", lamagic)
| |
| 1244 | --[[optional | |
| 1245 | --=/Right Leg Magic/=-- | |
| 1246 | local rlmagic = Instance.new("Part", Char)
| |
| 1247 | rlmagic.FormFactor = "Custom" | |
| 1248 | rlmagic.Anchored = true | |
| 1249 | rlmagic.CanCollide = false | |
| 1250 | rlmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 1251 | rlmagic.TopSurface = 10 | |
| 1252 | rlmagic.BottomSurface = 10 | |
| 1253 | rlmagic.LeftSurface = 10 | |
| 1254 | rlmagic.RightSurface = 10 | |
| 1255 | rlmagic.FrontSurface=10 | |
| 1256 | rlmagic.BackSurface=10 | |
| 1257 | rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 1258 | rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1259 | local lt3 = Instance.new("PointLight", rlmagic)
| |
| 1260 | lt3.Brightness = 123123 | |
| 1261 | lt3.Range = 6 | |
| 1262 | lt3.Color = Color3.new(1, 0, 1) | |
| 1263 | local rlmagicM = Instance.new("BlockMesh", rlmagic)
| |
| 1264 | ||
| 1265 | --=/Left Leg Magic/=-- | |
| 1266 | local llmagic = Instance.new("Part", Char)
| |
| 1267 | llmagic.FormFactor = "Custom" | |
| 1268 | llmagic.Anchored = true | |
| 1269 | llmagic.CanCollide = false | |
| 1270 | llmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 1271 | llmagic.TopSurface = 10 | |
| 1272 | llmagic.BottomSurface = 10 | |
| 1273 | llmagic.LeftSurface = 10 | |
| 1274 | llmagic.RightSurface = 10 | |
| 1275 | llmagic.FrontSurface=10 | |
| 1276 | llmagic.BackSurface=10 | |
| 1277 | llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 1278 | llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1279 | local lt4 = Instance.new("PointLight", llmagic)
| |
| 1280 | lt4.Brightness = 123123 | |
| 1281 | lt4.Range = 6 | |
| 1282 | lt4.Color = Color3.new(1, 0, 1) | |
| 1283 | local llmagicM = Instance.new("BlockMesh", llmagic)
| |
| 1284 | ]] | |
| 1285 | game:GetService("Debris"):AddItem(lamagic, 0.85)
| |
| 1286 | game:GetService("Debris"):AddItem(ramagic, 0.85)
| |
| 1287 | --[[ | |
| 1288 | game:GetService("Debris"):AddItem(rlmagic, 0.85)
| |
| 1289 | game:GetService("Debris"):AddItem(llmagic, 0.85)
| |
| 1290 | ]]-- | |
| 1291 | coroutine.wrap(function() | |
| 1292 | for i = 1, 10 do | |
| 1293 | ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 1294 | ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 1295 | lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 1296 | lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 1297 | --[[ | |
| 1298 | rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 1299 | rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 1300 | llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 1301 | llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 1302 | ]]-- | |
| 1303 | wait() | |
| 1304 | end | |
| 1305 | end)() | |
| 1306 | end | |
| 1307 | end | |
| 1308 | end)) | |
| 1309 | ||
| 1310 | --[[local bodyg = Instance.new("BodyGyro", Torso)
| |
| 1311 | bodyg.MaxTorque = Vector3.new(0, math.huge, 0) | |
| 1312 | while true do game:GetService("RunService").RenderStepped:wait()
| |
| 1313 | bodyg.CFrame = Camera.CoordinateFrame | |
| 1314 | end]]-- | |
| 1315 | ||
| 1316 | ||
| 1317 | mouse.KeyDown:connect(function(key) | |
| 1318 | if key == "0" and sprinting == false then | |
| 1319 | sprinting = true | |
| 1320 | Humanoid.WalkSpeed = 60 | |
| 1321 | elseif key == "x" and magix == true then | |
| 1322 | magix = false | |
| 1323 | for i = 65/255, 1, -0.1 do wait() | |
| 1324 | chak.Color = Color3.new(i, i, i) | |
| 1325 | end | |
| 1326 | elseif key == "x" and magix == false then | |
| 1327 | magix = true | |
| 1328 | for i = 0, 65/255, 0.1 do wait() | |
| 1329 | chak.Color = Color3.new(0, 0, i) | |
| 1330 | end | |
| 1331 | end | |
| 1332 | end) | |
| 1333 | ||
| 1334 | mouse.KeyUp:connect(function(key) | |
| 1335 | if key == "0" and sprinting == true then | |
| 1336 | sprinting = false | |
| 1337 | Humanoid.WalkSpeed = 10 | |
| 1338 | end | |
| 1339 | end) | |
| 1340 | ||
| 1341 | --==/GAMEPAD CONTROLS/==-- | |
| 1342 | ||
| 1343 | game:GetService("UserInputService").InputBegan:connect(function(input)
| |
| 1344 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
| 1345 | if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then | |
| 1346 | magix = true | |
| 1347 | elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then | |
| 1348 | magix = false | |
| 1349 | elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then | |
| 1350 | sprinting = true | |
| 1351 | end | |
| 1352 | end | |
| 1353 | end) | |
| 1354 | ||
| 1355 | game:GetService("UserInputService").InputEnded:connect(function(input)
| |
| 1356 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
| 1357 | if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then | |
| 1358 | sprinting = false | |
| 1359 | end | |
| 1360 | end | |
| 1361 | end) | |
| 1362 | ||
| 1363 | ||
| 1364 | ||
| 1365 | game:GetService("RunService").Stepped:connect(function()
| |
| 1366 | angle = (angle % 100) + anglespeed/10 | |
| 1367 | rootpart.CanCollide = false | |
| 1368 | local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude | |
| 1369 | if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then | |
| 1370 | animpose = "Jump" | |
| 1371 | ||
| 1372 | elseif speed < 2 then -- idle | |
| 1373 | animpose = "Idle" | |
| 1374 | ||
| 1375 | elseif sprinting == true then -- sprinting | |
| 1376 | animpose = "Sprinting" | |
| 1377 | ||
| 1378 | elseif speed > 2 then -- walking | |
| 1379 | walking = true | |
| 1380 | animpose = "Moving" | |
| 1381 | end | |
| 1382 | --==/ANIMATION FUNCTIONS/==-- | |
| 1383 | if animpose == "Idle" and anim == false then -- idle | |
| 1384 | anglespeed = 0.5 | |
| 1385 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1) | |
| 1386 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1) | |
| 1387 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1) | |
| 1388 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1) | |
| 1389 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1) | |
| 1390 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1) | |
| 1391 | ||
| 1392 | elseif animpose == "Moving" and anim == false and walking == true then -- walk | |
| 1393 | anglespeed = 0.5 | |
| 1394 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
| 1395 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
| 1396 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
| 1397 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1) | |
| 1398 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1) | |
| 1399 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1) | |
| 1400 | Humanoid.WalkSpeed = 6 | |
| 1401 | ||
| 1402 | elseif animpose == "Sprinting" and anim == false then -- sprint | |
| 1403 | anglespeed = 0.5 | |
| 1404 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
| 1405 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
| 1406 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
| 1407 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1) | |
| 1408 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1) | |
| 1409 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1) | |
| 1410 | Humanoid.WalkSpeed = 40 | |
| 1411 | end | |
| 1412 | end) | |
| 1413 | ||
| 1414 | wait(1) | |
| 1415 | ------------------------------------------------------------------------------------ | |
| 1416 | local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142 | |
| 1417 | ||
| 1418 | ||
| 1419 | ------------------------------------------------------------------------------------- | |
| 1420 | ------------------------------------------------------------------------------------- | |
| 1421 | ||
| 1422 | local Color = 0,0,0 | |
| 1423 | ||
| 1424 | local Num = 0.5 | |
| 1425 | ||
| 1426 | local Num2 = 4 -------------Mods:1,4,8,10,15,20------------------------------------- | |
| 1427 | local Size = 0.8 | |
| 1428 | local Rate = 300 | |
| 1429 | ------------------------------------------------------------------------------------- | |
| 1430 | local Player = game:service'Players'.LocalPlayer | |
| 1431 | local Character = Player.Character | |
| 1432 | Torso = Character:WaitForChild'Torso' | |
| 1433 | ||
| 1434 | local Wing1 = Instance.new("Part",Character)
| |
| 1435 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1436 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1437 | Wing1.Name = "WIng_1" | |
| 1438 | ||
| 1439 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1440 | fire.VelocitySpread = 0 | |
| 1441 | fire.Lifetime = NumberRange.new(2) | |
| 1442 | fire.Acceleration = Vector3.new(0, 2, 2) | |
| 1443 | fire.RotSpeed = NumberRange.new(10) | |
| 1444 | fire.Rate = Rate | |
| 1445 | fire.Rotation = NumberRange.new(151515) | |
| 1446 | fire.Name = "Fire" | |
| 1447 | fire.LightEmission = 0.78 | |
| 1448 | fire.LockedToPart = true | |
| 1449 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1450 | fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0)) | |
| 1451 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1452 | ||
| 1453 | local Wing2 = Instance.new("Part",Character)
| |
| 1454 | Wing2.Parent = Torso | |
| 1455 | local x,y,z = 0,-1,-6 | |
| 1456 | Wing2.FormFactor = Enum.FormFactor.Custom | |
| 1457 | Wing2.Size = Vector3.new(.2, .2, .2) | |
| 1458 | Wing2.Name = "WIng_1" | |
| 1459 | ||
| 1460 | local fire = Instance.new("ParticleEmitter", Wing2)
| |
| 1461 | fire.VelocitySpread = 0 | |
| 1462 | fire.Lifetime = NumberRange.new(2) | |
| 1463 | fire.Acceleration = Vector3.new(0, 2, 2) | |
| 1464 | fire.RotSpeed = NumberRange.new(10) | |
| 1465 | fire.Rate = Rate | |
| 1466 | fire.Rotation = NumberRange.new(151515) | |
| 1467 | fire.Name = "Fire" | |
| 1468 | fire.LightEmission = 0.78 | |
| 1469 | fire.LockedToPart = true | |
| 1470 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1471 | fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9)) | |
| 1472 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1473 | ||
| 1474 | Wld = function(a,b,cf) | |
| 1475 | local Weld = Instance.new('Weld',a)
| |
| 1476 | Weld.Part0 = a | |
| 1477 | Weld.Part1 = b | |
| 1478 | Weld.C1 = cf | |
| 1479 | return Weld | |
| 1480 | end | |
| 1481 | ||
| 1482 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
| 1483 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
| 1484 | ||
| 1485 | ||
| 1486 | game:service'RunService'.Stepped:connect(function() | |
| 1487 | --z = 6+math.sin(tick()*2) | |
| 1488 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1489 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1490 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1491 | end) | |
| 1492 | ------------------------------------------------------------------------------------------------ | |
| 1493 | local Player = game:service'Players'.LocalPlayer | |
| 1494 | local Character = Player.Character | |
| 1495 | Torso = Character:WaitForChild'Torso' | |
| 1496 | ||
| 1497 | local Wing1 = Instance.new("Part",Character)
| |
| 1498 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1499 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1500 | Wing1.Name = "WIng_1" | |
| 1501 | ||
| 1502 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1503 | fire.VelocitySpread = 0 | |
| 1504 | fire.Lifetime = NumberRange.new(2.5) | |
| 1505 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1506 | fire.RotSpeed = NumberRange.new(10) | |
| 1507 | fire.Rate = Rate | |
| 1508 | fire.Rotation = NumberRange.new(151515) | |
| 1509 | fire.Name = "Fire" | |
| 1510 | fire.LightEmission = 0.78 | |
| 1511 | fire.LockedToPart = true | |
| 1512 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1513 | fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0)) | |
| 1514 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1515 | ||
| 1516 | local Player = game:service'Players'.LocalPlayer | |
| 1517 | local Character = Player.Character | |
| 1518 | Torso = Character:WaitForChild'Torso' | |
| 1519 | ||
| 1520 | local Wing2 = Instance.new("Part",Character)
| |
| 1521 | Wing2.FormFactor = Enum.FormFactor.Custom | |
| 1522 | Wing2.Size = Vector3.new(.2, .2, .2) | |
| 1523 | Wing2.Name = "WIng_2" | |
| 1524 | ||
| 1525 | local fire = Instance.new("ParticleEmitter", Wing2)
| |
| 1526 | fire.VelocitySpread = 0 | |
| 1527 | fire.Lifetime = NumberRange.new(2.5) | |
| 1528 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1529 | fire.RotSpeed = NumberRange.new(10) | |
| 1530 | fire.Rate = Rate | |
| 1531 | fire.Rotation = NumberRange.new(151515) | |
| 1532 | fire.Name = "Fire" | |
| 1533 | fire.LightEmission = 0.78 | |
| 1534 | fire.LockedToPart = true | |
| 1535 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1536 | fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9)) | |
| 1537 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1538 | ||
| 1539 | Wld = function(a,b,cf) | |
| 1540 | local Weld = Instance.new('Weld',a)
| |
| 1541 | Weld.Part0 = a | |
| 1542 | Weld.Part1 = b | |
| 1543 | Weld.C1 = cf | |
| 1544 | return Weld | |
| 1545 | end | |
| 1546 | ||
| 1547 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
| 1548 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
| 1549 | ||
| 1550 | print'Loaded' | |
| 1551 | ||
| 1552 | game:service'RunService'.Stepped:connect(function() | |
| 1553 | --z = 6+math.sin(tick()*2) | |
| 1554 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1555 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1556 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1557 | end) | |
| 1558 | ||
| 1559 | ------------------------------------------------------------------------------------------------ | |
| 1560 | local Player = game:service'Players'.LocalPlayer | |
| 1561 | local Character = Player.Character | |
| 1562 | Torso = Character:WaitForChild'Torso' | |
| 1563 | ||
| 1564 | local Wing1 = Instance.new("Part",Character)
| |
| 1565 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1566 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1567 | Wing1.Name = "WIng_1" | |
| 1568 | ||
| 1569 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1570 | fire.VelocitySpread = 0 | |
| 1571 | fire.Lifetime = NumberRange.new(2.8) | |
| 1572 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1573 | fire.RotSpeed = NumberRange.new(10) | |
| 1574 | fire.Rate = Rate | |
| 1575 | fire.Rotation = NumberRange.new(151515) | |
| 1576 | fire.Name = "Fire" | |
| 1577 | fire.LightEmission = 0.78 | |
| 1578 | fire.LockedToPart = true | |
| 1579 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1580 | fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0)) | |
| 1581 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1582 | ||
| 1583 | local Player = game:service'Players'.LocalPlayer | |
| 1584 | local Character = Player.Character | |
| 1585 | Torso = Character:WaitForChild'Torso' | |
| 1586 | ||
| 1587 | local Wing2 = Instance.new("Part",Character)
| |
| 1588 | Wing2.FormFactor = Enum.FormFactor.Custom | |
| 1589 | Wing2.Size = Vector3.new(.2, .2, .2) | |
| 1590 | Wing2.Name = "WIng_2" | |
| 1591 | ||
| 1592 | local fire = Instance.new("ParticleEmitter", Wing2)
| |
| 1593 | fire.VelocitySpread = 0 | |
| 1594 | fire.Lifetime = NumberRange.new(2.8) | |
| 1595 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1596 | fire.RotSpeed = NumberRange.new(10) | |
| 1597 | fire.Rate = Rate | |
| 1598 | fire.Rotation = NumberRange.new(151515) | |
| 1599 | fire.Name = "Fire" | |
| 1600 | fire.LightEmission = 0.78 | |
| 1601 | fire.LockedToPart = true | |
| 1602 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1603 | fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9)) | |
| 1604 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1605 | ||
| 1606 | Wld = function(a,b,cf) | |
| 1607 | local Weld = Instance.new('Weld',a)
| |
| 1608 | Weld.Part0 = a | |
| 1609 | Weld.Part1 = b | |
| 1610 | Weld.C1 = cf | |
| 1611 | return Weld | |
| 1612 | end | |
| 1613 | ||
| 1614 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
| 1615 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
| 1616 | ||
| 1617 | print'Loaded' | |
| 1618 | ||
| 1619 | game:service'RunService'.Stepped:connect(function() | |
| 1620 | --z = 6+math.sin(tick()*2) | |
| 1621 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1622 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1623 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1624 | end) | |
| 1625 | ||
| 1626 | ------------------------------------------------------------------------------------------------ | |
| 1627 | local Player = game:service'Players'.LocalPlayer | |
| 1628 | local Character = Player.Character | |
| 1629 | Torso = Character:WaitForChild'Torso' | |
| 1630 | ||
| 1631 | local Wing1 = Instance.new("Part",Character)
| |
| 1632 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1633 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1634 | Wing1.Name = "WIng_2" | |
| 1635 | ||
| 1636 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1637 | fire.VelocitySpread = 0 | |
| 1638 | fire.Lifetime = NumberRange.new(3) | |
| 1639 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1640 | fire.RotSpeed = NumberRange.new(10) | |
| 1641 | fire.Rate = Rate | |
| 1642 | fire.Rotation = NumberRange.new(151515) | |
| 1643 | fire.Name = "Fire" | |
| 1644 | fire.LightEmission = 0.78 | |
| 1645 | fire.LockedToPart = true | |
| 1646 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1647 | fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0)) | |
| 1648 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1649 | ||
| 1650 | local Player = game:service'Players'.LocalPlayer | |
| 1651 | local Character = Player.Character | |
| 1652 | Torso = Character:WaitForChild'Torso' | |
| 1653 | ||
| 1654 | local Wing2 = Instance.new("Part",Character)
| |
| 1655 | Wing2.FormFactor = Enum.FormFactor.Custom | |
| 1656 | Wing2.Size = Vector3.new(.2, .2, .2) | |
| 1657 | Wing2.Name = "WIng_2" | |
| 1658 | ||
| 1659 | local fire = Instance.new("ParticleEmitter", Wing2)
| |
| 1660 | fire.VelocitySpread = 0 | |
| 1661 | fire.Lifetime = NumberRange.new(3) | |
| 1662 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1663 | fire.RotSpeed = NumberRange.new(10) | |
| 1664 | fire.Rate = Rate | |
| 1665 | fire.Rotation = NumberRange.new(151515) | |
| 1666 | fire.Name = "Fire" | |
| 1667 | fire.LightEmission = 0.78 | |
| 1668 | fire.LockedToPart = true | |
| 1669 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1670 | fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9)) | |
| 1671 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1672 | ||
| 1673 | Wld = function(a,b,cf) | |
| 1674 | local Weld = Instance.new('Weld',a)
| |
| 1675 | Weld.Part0 = a | |
| 1676 | Weld.Part1 = b | |
| 1677 | Weld.C1 = cf | |
| 1678 | return Weld | |
| 1679 | end | |
| 1680 | ||
| 1681 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
| 1682 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
| 1683 | ||
| 1684 | print'Loaded' | |
| 1685 | ||
| 1686 | game:service'RunService'.Stepped:connect(function() | |
| 1687 | --z = 6+math.sin(tick()*2) | |
| 1688 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1689 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1690 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1691 | end) | |
| 1692 | ||
| 1693 | ------------------------------------------------------------------------------------------------ | |
| 1694 | local Player = game:service'Players'.LocalPlayer | |
| 1695 | local Character = Player.Character | |
| 1696 | Torso = Character:WaitForChild'Torso' | |
| 1697 | ||
| 1698 | local Wing1 = Instance.new("Part",Character)
| |
| 1699 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1700 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1701 | Wing1.Name = "WIng_2" | |
| 1702 | ||
| 1703 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1704 | fire.VelocitySpread = 0 | |
| 1705 | fire.Lifetime = NumberRange.new(3.1) | |
| 1706 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1707 | fire.RotSpeed = NumberRange.new(10) | |
| 1708 | fire.Rate = Rate | |
| 1709 | fire.Rotation = NumberRange.new(151515) | |
| 1710 | fire.Name = "Fire" | |
| 1711 | fire.LightEmission = 0.78 | |
| 1712 | fire.LockedToPart = true | |
| 1713 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1714 | fire.Color = ColorSequence.new(Color3.new(0.7,0,0), Color3.new(0.7,0,0)) | |
| 1715 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1716 | ||
| 1717 | local Player = game:service'Players'.LocalPlayer | |
| 1718 | local Character = Player.Character | |
| 1719 | Torso = Character:WaitForChild'Torso' | |
| 1720 | ||
| 1721 | local Wing2 = Instance.new("Part",Character)
| |
| 1722 | Wing2.FormFactor = Enum.FormFactor.Custom | |
| 1723 | Wing2.Size = Vector3.new(.2, .2, .2) | |
| 1724 | Wing2.Name = "WIng_2" | |
| 1725 | ||
| 1726 | local fire = Instance.new("ParticleEmitter", Wing2)
| |
| 1727 | fire.VelocitySpread = 0 | |
| 1728 | fire.Lifetime = NumberRange.new(3.1) | |
| 1729 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1730 | fire.RotSpeed = NumberRange.new(10) | |
| 1731 | fire.Rate = Rate | |
| 1732 | fire.Rotation = NumberRange.new(151515) | |
| 1733 | fire.Name = "Fire" | |
| 1734 | fire.LightEmission = 0.78 | |
| 1735 | fire.LockedToPart = true | |
| 1736 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1737 | fire.Color = ColorSequence.new(Color3.new(0,0.8,0.9), Color3.new(0,0.8,0.9)) | |
| 1738 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1739 | ||
| 1740 | Wld = function(a,b,cf) | |
| 1741 | local Weld = Instance.new('Weld',a)
| |
| 1742 | Weld.Part0 = a | |
| 1743 | Weld.Part1 = b | |
| 1744 | Weld.C1 = cf | |
| 1745 | return Weld | |
| 1746 | end | |
| 1747 | ||
| 1748 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
| 1749 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
| 1750 | ||
| 1751 | print'Loaded' | |
| 1752 | ||
| 1753 | game:service'RunService'.Stepped:connect(function() | |
| 1754 | --z = 6+math.sin(tick()*2) | |
| 1755 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1756 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1757 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1758 | end) | |
| 1759 | ||
| 1760 | p = game.Players.LocalPlayer | |
| 1761 | char = p.Character | |
| 1762 | local char = p.Character | |
| 1763 | torso = char.Torso | |
| 1764 | neck = char.Torso.Neck | |
| 1765 | hum = char.Humanoid | |
| 1766 | ||
| 1767 | CV="Really red" | |
| 1768 | ||
| 1769 | local txt = Instance.new("BillboardGui", char)
| |
| 1770 | txt.Adornee = char .Head | |
| 1771 | txt.Name = "_status" | |
| 1772 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1773 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 1774 | local text = Instance.new("TextLabel", txt)
| |
| 1775 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 1776 | text.FontSize = "Size24" | |
| 1777 | text.TextScaled = true | |
| 1778 | text.TextTransparency = 0 | |
| 1779 | text.BackgroundTransparency = 1 | |
| 1780 | text.TextTransparency = 0 | |
| 1781 | text.TextStrokeTransparency = 0 | |
| 1782 | text.Font = "Arcade" | |
| 1783 | text.TextStrokeColor3 = Color3.new(0.7,0,0) | |
| 1784 | ||
| 1785 | v=Instance.new("Part")
| |
| 1786 | v.Name = "ColorBrick" | |
| 1787 | v.Parent=p.Character | |
| 1788 | v.FormFactor="Symmetric" | |
| 1789 | v.Anchored=true | |
| 1790 | v.CanCollide=false | |
| 1791 | v.BottomSurface="Smooth" | |
| 1792 | v.TopSurface="Smooth" | |
| 1793 | v.Size=Vector3.new(10,5,3) | |
| 1794 | v.Transparency=1 | |
| 1795 | v.CFrame=char.Torso.CFrame | |
| 1796 | v.BrickColor=BrickColor.new(CV) | |
| 1797 | v.Transparency=1 | |
| 1798 | text.TextColor3 = Color3.new(0,0.8,0.9) | |
| 1799 | v.Shape="Block" | |
| 1800 | text.Text = "The Guardian" |