Advertisement
NappieSnappiePappieO

shift 405

Jun 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. repeat wait(0.1) until game.Players.MasterofPieces.Character
  2.  
  3. local Player = game.Players.MasterofPieces
  4. local mouse = Player:GetMouse()
  5. local OrigTitan = script.LocalPlayer
  6. local NewTitan = nil
  7. local Debounce = false
  8. local )ChN = #script:GetChildren()
  9. local enabled = true
  10. local cooldown = true
  11.  
  12. function onKeyDown(Key)
  13. Key = Key:lower()
  14. if Key == "p" and enabled == false and cooldown == false then
  15. enabled = true
  16. cooldown = true
  17. shift = game.Players.MasterofPieces.Character.Humanoid:LoadAnimation(script.Animation)
  18. shift:Play()
  19. bite = Instance.new("Sound")
  20. bite.SoundId = "http://www.roblox.com/asset/?id=257001402"
  21. bite.Volume = 0.2
  22. bite.Pitch = 2
  23. bite.Parent = game.Workspace
  24. bite:play()
  25. game.Debris:AddItem(bite,0.5)
  26.  
  27. b = Instance.new("Sound")
  28. b.SoundId = "http://www.roblox.com/asset/?id=304999618"
  29. b.Volume = 1
  30. b.Pitch = 0.5
  31. b.Parent = game.Workspace
  32. b:play()
  33. game.Debris:AddItem(b,0.5)
  34. wait(1.5)
  35. game.Lighting.ColorShift_Top = Color3.new(255, 255, 0)
  36. a = Instance.new("Sound")
  37. a.SoundId = "http://www.roblox.com/asset/?id=412831137"
  38. a.Volume = 1
  39. a.Pitch = 1
  40. a.Parent = game.Workspace
  41. a.Looped = false
  42. a:play()
  43. spark2 = script.ParticleEmitter2:clone()
  44. spark2.Parent = game.Players.MasterofPieces.Character.Torso
  45. bolt = script.Bolt:Clone()
  46. bolt.Parent = game.Workspace
  47. bolt.CFrame = game.Players.MasterofPieces.Character.HumanoidRootPart.CFrame
  48. bolt.Expand.Disabled = true
  49. bolt2 = script.Bolt2:Clone()
  50. bolt.Parent = game.Workspace
  51. bolt.CFrame = game.Players.MasterofPieces.Character.HumanoidRootPart.CFrame
  52. bolt2.Expand.Disabled = false
  53. -----------------------------------------------------------------------------------
  54. if not (#script:GetChildren()ChN) then
  55. if game.Players.MasterofPieces.Backpack:findFirstChild("3DMG") then
  56. game.Players.MasterofPieces.Backpack:findFirstChild("3DMG").Disabled = false
  57. end
  58. if game.Players.MasterofPieces.Backpack:findFirstChild("Animator") then
  59. game.Players.MasterofPieces.Backpack:findFirstChild("Animator").Disabled = true
  60. end
  61. if game.Players.MasterofPieces.Backpack:findFirstChild("Blades/Flares") then
  62. game.Players.MasterofPieces.Backpack:findFirstChild("Blades/Flares").Disabled = false
  63. end
  64. for n,i in pairs(game.Players.MasterofPieces.Character:GetChildren()) do
  65. if (i:IsA("BasePart") or i:IsA("UnionOperation")) and i.Name ~= "Head" and i.Name ~= "Torso" and i.Name ~= "HumanoidRootPart" and i.Name ~= "Right Leg" and i.Name ~= "Left Leg" and i.Name ~= "Right Arm" and i.Name ~= "Left Arm" then
  66. i:remove()
  67. end
  68. end
  69. end
  70. -----------------------------------------------------------------------------------
  71. wait(6)
  72. shift:Stop()
  73. a:remove()
  74. spark2:remove()
  75. bolt:remove()
  76. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  77. Body = script.Titan.Titan:GetChildren()
  78. for i = 1, #Body do
  79. if Body[i].ClassName == "Part" then
  80. --Body[i].BrickColor = Player.Character.Head.BrickColor
  81. end
  82. end
  83. NewTitan = script.Titan:clone()
  84. NewTitan.Name = "TitanShifter"
  85. NewTitan.Parent = script
  86. NewTitan.Titan.Torso.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-20,0)
  87. NewTitan.Robot.Disabled = false
  88.  
  89.  
  90.  
  91.  
  92. NewTitan.Robot.Disabled = false
  93. elseif Key == "u" and enabled == true and cooldown == true and NewTitan then
  94. enabled = false
  95. NewTitan = nil
  96. print("dam")
  97. T = Player.Character:FindFirstChild("Titan (18 Meters)")
  98. if Player.Character:FindFirstChild("Shifter") then
  99. Player.Character:FindFirstChild("Shifter"):remove()
  100. end
  101. if T ~= nil then
  102. T:BreakJoints()
  103. end
  104. wait(5)
  105. cooldown = false
  106. end
  107. end
  108. mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement