Advertisement
iiWolfie

noob titan (a part taken out of it)

Jun 22nd, 2016
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1.  
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local deb = false
  15. local shot = 0
  16. local l = game:GetService("Lighting")
  17. local rs = game:GetService("RunService").RenderStepped
  18. local stanceToggle = "Normal"
  19. math.randomseed(os.time())
  20. hum.WalkSpeed = 7
  21. char.Health:Destroy()
  22. hum.MaxHealth = 50000
  23. wait(0.1)
  24. hum.Health = 50000
  25. ----------------------------------------------------
  26. pcall(function()char.Shirt:Destroy()
  27. char.Pants:Destroy()
  28. end)
  29. shirt = Instance.new("Shirt", char)
  30. shirt.Name = "Shirt"
  31. pants = Instance.new("Pants", char)
  32. pants.Name = "Pants"
  33. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=224461438"
  34. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=245425647"
  35. ----------------------------------------------------
  36. Debounces = {
  37. on = false;
  38. ks = false;
  39. CanAttack = true;
  40. CanJoke = true;
  41. NoIdl = false;
  42. Slashing = false;
  43. Slashed = false;
  44. Grabbing = false;
  45. Grabbed = false;
  46. }
  47. local Touche = {char.Name, }
  48. ----------------------------------------------------
  49. function lerp(a, b, t) -- Linear interpolation
  50. return a + (b - a)*t
  51. end
  52.  
  53. function slerp(a, b, t) --Spherical interpolation
  54. dot = a:Dot(b)
  55. if dot > 0.99999 or dot < -0.99999 then
  56. return t <= 0.5 and a or b
  57. else
  58. r = math.acos(dot)
  59. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  60. end
  61. end
  62.  
  63. function matrixInterpolate(a, b, t)
  64. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  65. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  66. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  67. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  68. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  69. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  70. local t = v1:Dot(v2)
  71. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  72. return CFrame.new()
  73. end
  74. return CFrame.new(
  75. v0.x, v0.y, v0.z,
  76. v1.x, v1.y, v1.z,
  77. v2.x, v2.y, v2.z,
  78. v3.x, v3.y, v3.z)
  79. end
  80. ----------------------------------------------------
  81. function genWeld(a,b)
  82. local w = Instance.new("Weld",a)
  83. w.Part0 = a
  84. w.Part1 = b
  85. return w
  86. end
  87. function weld(a, b)
  88. local weld = Instance.new("Weld")
  89. weld.Name = "W"
  90. weld.Part0 = a
  91. weld.Part1 = b
  92. weld.C0 = a.CFrame:inverse() * b.CFrame
  93. weld.Parent = a
  94. return weld;
  95. end
  96. ----------------------------------------------------
  97. function Lerp(c1,c2,al)
  98. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  99. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  100. for i,v in pairs(com1) do
  101. com1[i] = v+(com2[i]-v)*al
  102. end
  103. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  104. end
  105. ----------------------------------------------------
  106. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  107. local wld = Instance.new("Weld", wp1)
  108. wld.Part0 = wp0
  109. wld.Part1 = wp1
  110. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  111. end
  112. ----------------------------------------------------
  113. for i,v in pairs(char:children()) do
  114. if v:IsA("Hat") then
  115. v:Destroy()
  116. end
  117. end
  118. for i,v in pairs(hed:children()) do
  119. if v:IsA("Sound") then
  120. v:Destroy()
  121. end
  122. end
  123. ----------------------------------------------------
  124. function HasntTouched(plrname)
  125. local ret = true
  126. for _, v in pairs(Touche) do
  127. if v == plrname then
  128. ret = false
  129. end
  130. end
  131. return ret
  132. end
  133. ----------------------------------------------------
  134. larm.Size = larm.Size * 2
  135. rarm.Size = rarm.Size * 2
  136. lleg.Size = lleg.Size * 2
  137. rleg.Size = rleg.Size * 2
  138. torso.Size = torso.Size * 2
  139. hed.Size = hed.Size * 2
  140. root.Size = root.Size * 2
  141. ----------------------------------------------------
  142. newWeld(torso, larm, -1.5, 0.5, 0)
  143. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  144. newWeld(torso, rarm, 1.5, 0.5, 0)
  145. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  146. newWeld(torso, hed, 0, 1.5, 0)
  147. newWeld(torso, lleg, -0.5, -1, 0)
  148. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  149. newWeld(torso, rleg, 0.5, -1, 0)
  150. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  151. newWeld(root, torso, 0, -1, 0)
  152. torso.Weld.C1 = CFrame.new(0, -1, 0)
  153. ----------------------------------------------------
  154. game:service'InsertService':LoadAsset(23301681):children()[1].Parent=char
  155. char["JJ5x5's White Top Hat"].Handle.Mesh.Scale = char["JJ5x5's White Top Hat"].Handle.Mesh.Scale * 3.2
  156. char["JJ5x5's White Top Hat"].Handle.Mesh.VertexColor = Vector3.new(1,1,1)
  157. hed.face.Texture = "rbxassetid://127498555"
  158. z=Instance.new('Decal',hed)
  159. z.Face = 'Front'
  160. z.Texture='rbxassetid://125408060'
  161. hed.BrickColor = BrickColor.new("Really black")
  162. lite = Instance.new("PointLight", torso)
  163. lite.Brightness = 14
  164. lite.Range = 10
  165. lite.Color = Color3.new(1, 0, 0)
  166. --[[local hed2 = hed:Clone()
  167. hed2.CanCollide = false
  168. hed2.Parent = char
  169. hed2:ClearAllChildren()
  170. hed2.Transparency = 1
  171. hed2.Name = "DARP"
  172. local w = Instance.new("Weld",hed2)
  173. w.Part0 = hed
  174. w.Part1 = hed2
  175. w.C0 = CFrame.new(0,0,-0.175)
  176. z=Instance.new("SurfaceGui",hed2)
  177. z.Enabled = true
  178. z.Face = "Front"
  179. z.Adornee = hed2
  180. z.CanvasSize = Vector2.new(100,100)
  181. local face = Instance.new("ImageLabel",z)
  182. face.Size = UDim2.new(1,-30,1,0)
  183. face.Position = UDim2.new(0,15,0,0)
  184. face.BackgroundTransparency = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement