Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. local players = {
  2. "UniversalGravity",
  3. }
  4.  
  5. local plr = game.Players.LocalPlayer
  6.  
  7. for _,v in pairs(players) do
  8. if plr.Name==v then
  9. able=true
  10. break
  11. end
  12. end
  13.  
  14. wait(3)
  15.  
  16. animation = Instance.new("Animation", game.Players.UniversalGravity.Character)
  17. animation.AnimationId = "http://www.roblox.com/Asset?ID=454535529"
  18. animTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(animation)
  19.  
  20. urs = game:GetService("UserInputService")
  21. titon = game.Lighting["Titan (18m Meter)"]
  22. titan = titon:Clone()
  23. titan.Parent = game.Workspace
  24. wait()
  25. titan.Parent = game.Lighting
  26.  
  27. debounce2 = true
  28.  
  29. x = 0
  30. y = 0
  31. z = 0
  32.  
  33. alt = true
  34.  
  35. animation4 = Instance.new("Animation", titan)
  36. animation4.Name = "RP"
  37. animation4.AnimationId = "http://www.roblox.com/Asset?ID=454669571"
  38. animTrack4 = titan.Humanoid:LoadAnimation(animation4)
  39.  
  40. animation3 = Instance.new("Animation", titan)
  41. animation3.Name = "LP"
  42. animation3.AnimationId = "http://www.roblox.com/Asset?ID=454655143"
  43. animTrack3 = titan.Humanoid:LoadAnimation(animation3)
  44.  
  45. fire = game.Lighting.fire:Clone()
  46. fire.Parent = game.Players.LocalPlayer.Character.Torso
  47. debounce = true
  48. controls = false
  49. enabled = true
  50. x2 = false
  51.  
  52. limbs = {
  53. titan.Head,
  54. titan["Left Arm"],
  55. titan["Left Leg"],
  56. titan["Right Arm"],
  57. titan["Right Leg"],
  58. titan.Torso
  59. }
  60.  
  61. animation2 = titan.walking
  62. animTrack2 = titan.Humanoid:LoadAnimation(animation2)
  63.  
  64.  
  65.  
  66. game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  67. script:Remove()
  68. titan:Remove()
  69. end)
  70.  
  71. titan.Humanoid.Died:connect(function()
  72. script:Remove()
  73. titan:Remove()
  74. game.Players.LocalPlayer.Character.Humanoid.Health = 20
  75. end)
  76.  
  77. urs.InputBegan:connect(function(i,enter)
  78. if i.KeyCode == Enum.KeyCode.C and enter == false then
  79. if controls == true then
  80. if debounce2 == true then
  81. debounce2 = false
  82. if alt == true then
  83. print("LEFT")
  84. titan.Humanoid.WalkSpeed = 16
  85. animTrack3:Play()
  86. wait(1)
  87. animTrack3:Stop()
  88. titan.Humanoid.WalkSpeed = 16
  89. alt = false
  90. debounce2 = true
  91. return nil
  92. elseif alt == false then
  93. print("RIGHT")
  94. titan.Humanoid.WalkSpeed = 16
  95. animTrack4:Play()
  96. wait(1)
  97. animTrack4:Stop()
  98. titan.Humanoid.WalkSpeed = 16
  99. alt = true
  100. debounce2 = true
  101. return nil
  102. end
  103. end
  104. end
  105. end
  106. end)
  107.  
  108. urs.InputBegan:connect(function(i,enter)
  109. if i.KeyCode == Enum.KeyCode.V and enter == false then
  110. if x2 == false then
  111. x2 = true
  112. fire.Enabled = true
  113. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health + 15
  114. wait(1.6)
  115. x2 = false
  116. fire.Enabled = false
  117. end
  118. end
  119. end)
  120.  
  121.  
  122.  
  123. urs.InputBegan:connect(function(i,enter)
  124. if i.KeyCode == Enum.KeyCode.P and enter == false then
  125. if debounce == true then
  126. debounce = false
  127. if enabled == true then
  128. titan.Humanoid.MaxHealth = 1000
  129. titan.Humanoid.Health = 1000
  130. animTrack:Play()
  131. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 4
  132. local prtcl = game.Lighting.Shifting:Clone()
  133. wait(1.2)
  134. game.Lighting.Ambient = game.Lighting.TitanS.Value
  135. prtcl.Parent = game.Workspace
  136. prtcl.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  137. wait(5)
  138. prtcl:Remove()
  139. game.Lighting.Ambient = game.Lighting.Norm.Value
  140. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  141. controls = true
  142. titan.Parent = game.Workspace
  143. titan["Right Leg"].CFrame = game.Players.LocalPlayer.Character.Head.CFrame
  144. local cam = game.Workspace.CurrentCamera
  145. cam.CameraSubject = titan.Head
  146. enabled = false
  147. game.Players.LocalPlayer.Character.Head.CFrame = CFrame.new(0, 1000000, 0)
  148. game.Players.LocalPlayer.Character.Torso.Anchored = true
  149. for i,v in ipairs(limbs) do
  150. v.fire.Enabled = true
  151. end
  152. wait(5)
  153. for i,v in ipairs(limbs) do
  154. v.fire.Enabled = false
  155. end
  156. debounce = true
  157. elseif enabled == false then
  158. controls = false
  159. x = 0
  160. y = 0
  161. z = 0
  162. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  163. local cam = game.Workspace.CurrentCamera
  164. enabled = true
  165. game.Players.LocalPlayer.Character.Torso.Anchored = false
  166. cam.CameraSubject = game.Players.LocalPlayer.Character.Head
  167. game.Players.LocalPlayer.Character.Head.CFrame = titan.Head.CFrame * CFrame.new(0, 0, 5)
  168. for i,v in ipairs(limbs) do
  169. v.fire.Enabled = true
  170. end
  171. wait(1)
  172. for i,v in ipairs(limbs) do
  173. v.BrickColor = BrickColor.new("Really black")
  174. end
  175. wait(5)
  176. for i,v in ipairs(limbs) do
  177. v.fire.Enabled = false
  178. v.BrickColor = BrickColor.new("Pastel brown")
  179. end
  180. titan.Parent = game.Lighting
  181. debounce = true
  182. end
  183. end
  184. end
  185. end)
  186.  
  187. urs.InputBegan:connect(function(i,enter)
  188. if controls == true then
  189. if i.KeyCode == Enum.KeyCode.A and enter == false then
  190. x = -100
  191. animTrack2:Play()
  192. end
  193. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  194. end
  195. end)
  196.  
  197. urs.InputBegan:connect(function(i,enter)
  198. if controls == true then
  199. if i.KeyCode == Enum.KeyCode.W and enter == false then
  200. z = -100
  201. animTrack2:Play()
  202. end
  203. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  204. end
  205. end)
  206.  
  207. urs.InputBegan:connect(function(i,enter)
  208. if controls == true then
  209. if i.KeyCode == Enum.KeyCode.D and enter == false then
  210. x = 100
  211. animTrack2:Play()
  212. end
  213. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  214. end
  215. end)
  216.  
  217. urs.InputBegan:connect(function(i,enter)
  218. if controls == true then
  219. if i.KeyCode == Enum.KeyCode.S and enter == false then
  220. z = 100
  221. animTrack2:Play()
  222. end
  223. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  224. end
  225. end)
  226.  
  227. --urs.InputBegan:connect(function(i,enter) -- NOTE: REMOVE THE --'s IN ORDER TO HAVE TITAN JUMPING: CONTROL IS SPACEBAR
  228. -- if controls == true then
  229. -- if i.KeyCode == Enum.KeyCode.Space and enter == false then
  230. -- titan.Humanoid.Jump = true
  231. -- end
  232. -- titan.Humanoid:Move(Vector3.new(x, y, z), true)
  233. -- end
  234. --end)
  235.  
  236. urs.InputEnded:connect(function(i,enter)
  237. if controls == true then
  238. if i.KeyCode == Enum.KeyCode.D and enter == false then
  239. if x == -100 then
  240. print("Nope")
  241. else
  242. x = 0
  243. end
  244. end
  245. if i.KeyCode == Enum.KeyCode.A and enter == false then
  246. if x == 100 then
  247. print("Nope")
  248. else
  249. x = 0
  250. end
  251. end
  252. if i.KeyCode == Enum.KeyCode.W and enter == false then
  253. if z == 100 then
  254. print("Nope")
  255. else
  256. animTrack2:Stop()
  257. z = 0
  258. end
  259. end
  260. if i.KeyCode == Enum.KeyCode.S and enter == false then
  261. if z == -100 then
  262. print("Nope")
  263. else
  264. animTrack2:Stop()
  265. z = 0
  266. end
  267. end
  268. titan.Humanoid:Move(Vector3.new(x, y, z), true)
  269. end
  270. end)
  271.  
  272. debounce4 = true
  273.  
  274.  
  275. --titan["Left Arm"].Touched:connect(function(part)
  276. --if debounce4 == true then
  277. --debounce4 = false
  278. --print("TOUCHED")
  279. --if part.Parent.Name == game.Players.LocalPlayer.Name then
  280. --print("No")
  281. --else
  282. --if part.Parent:FindFirstChild("Humanoid") then
  283. --print("TAKE THIS SCRUB")
  284. --part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 0
  285. --wait(1)
  286. --debounce4 = true
  287. --end
  288. --end
  289. --end
  290. --end)
  291. --debounce5 = true
  292.  
  293. --titan["Right Arm"].Touched:connect(function(part)
  294. --if debounce5 == true then
  295. --debounce5 = false
  296. --print("TOUCHED")
  297. --if part.Parent.Name == game.Players.LocalPlayer.Name then
  298. --print("No")
  299. --else
  300. --if part.Parent:FindFirstChild("Humanoid") then
  301. --print("TAKE THIS SCRUB")
  302. --part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 10
  303. --wait(1)
  304. --debounce5 = true
  305. --end
  306. --end
  307. --end
  308. --end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement