Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. repeat wait(0.1) until game.Players.LocalPlayer.Character
  2.  
  3. local Player = game.Players.LocalPlayer
  4. local mouse = Player:GetMouse()
  5. local OrigTitan = script.Titan
  6. local NewTitan = nil
  7. local Debounce = false
  8. local ChN = #script:GetChildren()
  9. local enabled = false
  10. local cooldown = false
  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.LocalPlayer.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.LocalPlayer.Character.Torso
  45. bolt = script.Bolt:Clone()
  46. bolt.Parent = game.Workspace
  47. bolt.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  48. bolt.Expand.Disabled = true
  49. bolt2 = script.Bolt2:Clone()
  50. bolt2.Parent = game.Workspace
  51. bolt2.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  52. bolt2.Expand.Disabled = false
  53. -----------------------------------------------------------------------------------
  54. if not (#script:GetChildren() > ChN) then
  55. if game.Players.LocalPlayer.Backpack:findFirstChild("3DMG") then
  56. game.Players.LocalPlayer.Backpack:findFirstChild("3DMG").Disabled = false
  57. end
  58. if game.Players.LocalPlayer.Backpack:findFirstChild("Animator") then
  59. game.Players.LocalPlayer.Backpack:findFirstChild("Animator").Disabled = true
  60. end
  61. if game.Players.LocalPlayer.Backpack:findFirstChild("Blades/Flares") then
  62. game.Players.LocalPlayer.Backpack:findFirstChild("Blades/Flares").Disabled = false
  63. end
  64. for n,i in pairs(game.Players.LocalPlayer.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(4)
  72. shift:Stop()
  73. a:remove()
  74. spark2:remove()
  75. bolt:remove()
  76. bolt2:remove()
  77.  
  78. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  79. Body = script.Titan:GetChildren()
  80. for i = 1, #Body do
  81. if Body[i].ClassName == "Part" then
  82. Body[i].BrickColor = Player.Character.Head.BrickColor
  83. end
  84. end
  85. NewTitan = script.Titan:clone()
  86. NewTitan.Name = "TitanShifter"
  87. NewTitan.Parent = script
  88. NewTitan.Titan.Torso.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-20,0)
  89. NewTitan.Robot.Disabled = false
  90.  
  91. NewTitan.Robot.Disabled = false
  92. elseif Key == "u" and enabled == true and cooldown == true and NewTitan then
  93. enabled = false
  94. NewTitan = nil
  95. print("dam")
  96. T = Player.Character:FindFirstChild("Titan (15 Meters)")
  97. if Player.Character:FindFirstChild("Shifter") then
  98. Player.Character:FindFirstChild("Shifter"):remove()
  99. end
  100. if T ~= nil then
  101. T:BreakJoints()
  102. end
  103. wait(5)
  104. cooldown = false
  105. end
  106. end
  107. mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement