Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.05 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local cam = game.Workspace.CurrentCamera
  12. local root = char.HumanoidRootPart
  13. local deb = false
  14. local shot = 0
  15. local l = game:GetService("Lighting")
  16. local rs = game:GetService("RunService").RenderStepped
  17. local stanceToggle = "Normal"
  18. math.randomseed(os.time())
  19. hum.WalkSpeed = 35
  20. char.Health:Destroy()
  21. hum.MaxHealth = 5000000
  22. wait(0.1)
  23. hum.Health = 5000000
  24. ----------------------------------------------------
  25. char.Shirt:Destroy()
  26. char.Pants:Destroy()
  27. shirt = Instance.new("Shirt", char)
  28. shirt.Name = "Shirt"
  29. pants = Instance.new("Pants", char)
  30. pants.Name = "Pants"
  31. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507"
  32. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
  33. ----------------------------------------------------
  34. Debounces = {
  35. on = false;
  36. ks = false;
  37. CanAttack = true;
  38. CanJoke = true;
  39. NoIdl = false;
  40. Slashing = false;
  41. Slashed = false;
  42. Grabbing = false;
  43. Grabbed = false;
  44. }
  45. local Touche = {char.Name, }
  46. ----------------------------------------------------
  47. function lerp(a, b, t) -- Linear interpolation
  48. return a + (b - a)*t
  49. end
  50.  
  51. function slerp(a, b, t) --Spherical interpolation
  52. dot = a:Dot(b)
  53. if dot > 0.99999 or dot < -0.99999 then
  54. return t <= 0.5 and a or b
  55. else
  56. r = math.acos(dot)
  57. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  58. end
  59. end
  60.  
  61. function matrixInterpolate(a, b, t)
  62. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  63. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  64. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  65. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  66. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  67. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  68. local t = v1:Dot(v2)
  69. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  70. return CFrame.new()
  71. end
  72. return CFrame.new(
  73. v0.x, v0.y, v0.z,
  74. v1.x, v1.y, v1.z,
  75. v2.x, v2.y, v2.z,
  76. v3.x, v3.y, v3.z)
  77. end
  78. ----------------------------------------------------
  79. function genWeld(a,b)
  80. local w = Instance.new("Weld",a)
  81. w.Part0 = a
  82. w.Part1 = b
  83. return w
  84. end
  85. function weld(a, b)
  86. local weld = Instance.new("Weld")
  87. weld.Name = "W"
  88. weld.Part0 = a
  89. weld.Part1 = b
  90. weld.C0 = a.CFrame:inverse() * b.CFrame
  91. weld.Parent = a
  92. return weld;
  93. end
  94. ----------------------------------------------------
  95. function Lerp(c1,c2,al)
  96. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  97. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  98. for i,v in pairs(com1) do
  99. com1[i] = v+(com2[i]-v)*al
  100. end
  101. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  102. end
  103. ----------------------------------------------------
  104. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  105. local wld = Instance.new("Weld", wp1)
  106. wld.Part0 = wp0
  107. wld.Part1 = wp1
  108. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  109. end
  110. ----------------------------------------------------
  111. for i,v in pairs(char:children()) do
  112. if v:IsA("Hat") then
  113. v:Destroy()
  114. end
  115. end
  116. for i,v in pairs(hed:children()) do
  117. if v:IsA("Sound") then
  118. v:Destroy()
  119. end
  120. end
  121. ----------------------------------------------------
  122. function HasntTouched(plrname)
  123. local ret = true
  124. for _, v in pairs(Touche) do
  125. if v == plrname then
  126. ret = false
  127. end
  128. end
  129. return ret
  130. end
  131. ----------------------------------------------------
  132. larm.Size = larm.Size * 2
  133. rarm.Size = rarm.Size * 2
  134. lleg.Size = lleg.Size * 2
  135. rleg.Size = rleg.Size * 2
  136. torso.Size = torso.Size * 2
  137. hed.Size = hed.Size * 2
  138. root.Size = root.Size * 2
  139. ----------------------------------------------------
  140. newWeld(torso, larm, -1.5, 0.5, 0)
  141. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  142. newWeld(torso, rarm, 1.5, 0.5, 0)
  143. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  144. newWeld(torso, hed, 0, 1.5, 0)
  145. newWeld(torso, lleg, -0.5, -1, 0)
  146. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  147. newWeld(torso, rleg, 0.5, -1, 0)
  148. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  149. newWeld(root, torso, 0, -1, 0)
  150. torso.Weld.C1 = CFrame.new(0, -1, 0)
  151. ----------------------------------------------------
  152. game:service'InsertService':LoadAsset(63993845):children()[1].Parent=char
  153. char.LavendarPlasmaHood.Handle.Mesh.Scale = char.LavendarPlasmaHood.Handle.Mesh.Scale * 1.8
  154. char.LavendarPlasmaHood.Handle.Mesh.VertexColor = Vector3.new(0.1,0.1,0.1)
  155. hed.face.Texture = "rbxassetid://46282672"
  156. z=Instance.new('Decal',hed)
  157. z.Face = 'Front'
  158. z.Texture='rbxassetid://99174106'
  159. hed.BrickColor = BrickColor.new("Really black")
  160. lite = Instance.new("PointLight", torso)
  161. lite.Brightness = 14
  162. lite.Range = 10
  163. lite.Color = Color3.new(1, 0, 1)
  164. --[[local hed2 = hed:Clone()
  165. hed2.CanCollide = false
  166. hed2.Parent = char
  167. hed2:ClearAllChildren()
  168. hed2.Transparency = 1
  169. hed2.Name = "DARP"
  170. local w = Instance.new("Weld",hed2)
  171. w.Part0 = hed
  172. w.Part1 = hed2
  173. w.C0 = CFrame.new(0,0,-0.175)
  174. z=Instance.new("SurfaceGui",hed2)
  175. z.Enabled = true
  176. z.Face = "Front"
  177. z.Adornee = hed2
  178. z.CanvasSize = Vector2.new(100,100)
  179. local face = Instance.new("ImageLabel",z)
  180. face.Size = UDim2.new(1,-30,1,0)
  181. face.Position = UDim2.new(0,15,0,0)
  182. face.BackgroundTransparency = 1
  183. face.Image='rbxassetid://46282672']]--
  184. ----------------------------------------------------
  185. z = Instance.new("Sound", char)
  186. z.SoundId = "rbxassetid://142486046"--242463565
  187. z.Looped = true
  188. z.Pitch = .58
  189. z.Volume = 1
  190. wait(.01)
  191. z:Play()
  192. ----------------------------------------------------
  193. local m = Instance.new("Model")
  194. m.Name = "Absolution"
  195. p1 = Instance.new("Part", m)
  196. p1.BrickColor = BrickColor.new("Lime green")
  197. p1.FormFactor = Enum.FormFactor.Custom
  198. p1.Size = Vector3.new(1, 0.600000024, 1.5)
  199. p1.CFrame = CFrame.new(67.4994888, 12.1560526, 73.0205841, 0.999972522, -3.59117985e-005, -8.00192356e-006, -1.39250187e-005, 0.358383715, -0.933530986, 5.28097153e-005, 0.933500648, 0.358406395)
  200. p1.CanCollide = false
  201. p1.Locked = true
  202. p1.Elasticity = 0
  203. p1.BottomSurface = Enum.SurfaceType.Smooth
  204. p1.TopSurface = Enum.SurfaceType.Smooth
  205. b1 = Instance.new("SpecialMesh", p1)
  206. b1.MeshType = Enum.MeshType.Wedge
  207. b1.Name = "Mesh"
  208. b1.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  209. p2 = Instance.new("Part", m)
  210. p2.BrickColor = BrickColor.new("Really black")
  211. p2.FormFactor = Enum.FormFactor.Custom
  212. p2.Size = Vector3.new(1, 2.9000001, 1)
  213. p2.CFrame = CFrame.new(67.4995728, 11.7633543, 74.2129135, -1.30959779e-005, 2.79811252e-006, 0.999972522, 0.961226642, 0.275612593, -7.50799518e-006, -0.275637805, 0.96119839, 1.01176247e-005)
  214. p2.CanCollide = false
  215. p2.Locked = true
  216. p2.Elasticity = 0
  217. p2.BottomSurface = Enum.SurfaceType.Smooth
  218. p2.TopSurface = Enum.SurfaceType.Smooth
  219. b2 = Instance.new("BlockMesh", p2)
  220. b2.Name = "Mesh"
  221. b2.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  222. p3 = Instance.new("Part", m)
  223. p3.BrickColor = BrickColor.new("Lime green")
  224. p3.FormFactor = Enum.FormFactor.Custom
  225. p3.Size = Vector3.new(1, 1.20000005, 2.0999999)
  226. p3.CFrame = CFrame.new(67.4994965, 12.6401453, 73.9670334, 0.999972522, -3.52207899e-005, -8.10639358e-006, -1.61500211e-005, 0.309035271, -0.951007903, 5.24176576e-005, 0.950978875, 0.309059501)
  227. p3.CanCollide = false
  228. p3.Locked = true
  229. p3.Elasticity = 0
  230. p3.BottomSurface = Enum.SurfaceType.Smooth
  231. p3.TopSurface = Enum.SurfaceType.Smooth
  232. b3 = Instance.new("SpecialMesh", p3)
  233. b3.MeshType = Enum.MeshType.Wedge
  234. b3.Name = "Mesh"
  235. b3.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  236. p4 = Instance.new("Part", m)
  237. p4.BrickColor = BrickColor.new("Lime green")
  238. p4.FormFactor = Enum.FormFactor.Custom
  239. p4.Size = Vector3.new(1, 1.43999994, 2.05000019)
  240. p4.CFrame = CFrame.new(67.4995575, 11.8683414, 76.1565704, 0.999972522, -2.5085672e-005, -1.53700166e-005, -4.86194367e-005, -0.800831437, -0.598821938, 1.9131101e-005, 0.598835468, -0.800796151)
  241. p4.CanCollide = false
  242. p4.Locked = true
  243. p4.Elasticity = 0
  244. p4.BottomSurface = Enum.SurfaceType.Smooth
  245. p4.TopSurface = Enum.SurfaceType.Smooth
  246. b4 = Instance.new("SpecialMesh", p4)
  247. b4.MeshType = Enum.MeshType.Wedge
  248. b4.Name = "Mesh"
  249. b4.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988)
  250. p5 = Instance.new("Part", m)
  251. p5.BrickColor = BrickColor.new("Lime green")
  252. p5.FormFactor = Enum.FormFactor.Custom
  253. p5.Size = Vector3.new(1, 1.20000005, 3.20000005)
  254. p5.CFrame = CFrame.new(67.4995193, 13.241991, 74.8357468, 0.999972522, -3.59118021e-005, -8.00191992e-006, -1.39250224e-005, 0.358383656, -0.933530807, 5.2809708e-005, 0.933500469, 0.358406246)
  255. p5.CanCollide = false
  256. p5.Locked = true
  257. p5.Elasticity = 0
  258. p5.BottomSurface = Enum.SurfaceType.Smooth
  259. p5.TopSurface = Enum.SurfaceType.Smooth
  260. b5 = Instance.new("SpecialMesh", p5)
  261. b5.MeshType = Enum.MeshType.Wedge
  262. b5.Name = "Mesh"
  263. b5.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928)
  264. p6 = Instance.new("Part", m)
  265. p6.Name = "Handle"
  266. p6.BrickColor = BrickColor.new("Really black")
  267. p6.FormFactor = Enum.FormFactor.Custom
  268. p6.Size = Vector3.new(1.5999999, 13.6000004, 1)
  269. p6.CFrame = CFrame.new(67.5017471, 11.2780685, 66.1421967, -1.18190947e-005, 6.28741009e-006, 0.999972522, 0.99995929, -1.39772892e-005, -7.50630716e-006, -1.79708004e-005, 0.999939024, 1.01296728e-005)
  270. p6.CanCollide = false
  271. p6.Locked = true
  272. p6.Elasticity = 0
  273. p6.BottomSurface = Enum.SurfaceType.Smooth
  274. p6.TopSurface = Enum.SurfaceType.Smooth
  275. b6 = Instance.new("BlockMesh", p6)
  276. b6.Name = "Mesh"
  277. b6.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  278. p7 = Instance.new("Part", m)
  279. p7.BrickColor = BrickColor.new("Lime green")
  280. p7.FormFactor = Enum.FormFactor.Custom
  281. p7.Size = Vector3.new(1, 1.00999999, 1.05000019)
  282. p7.CFrame = CFrame.new(67.5174179, 10.5228004, 76.3114471, 0.999972522, -2.76626724e-005, -6.72184569e-006, -4.7347472e-005, -0.91489929, -0.403581172, 2.14323372e-005, 0.403602213, -0.914867…
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement