Advertisement
coolgoldboy166

ting litzer

Jan 2nd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.50 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. cn=CFrame.new
  24. euler=CFrame.fromEulerAnglesXYZ
  25. angles=CFrame.Angles
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. trispeed=.2
  38. attackmode='none'
  39. local idle=0
  40. local Anim="Idle"
  41. stance = false
  42. local ff = 2
  43. noleg = false
  44. evadecooldown = false
  45. Grabbed = false
  46. grab = nil
  47. ok = xdddd
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music. You may wanna leave this at torso tho...
  58. music.Volume = 1.5
  59. music.SoundId = "rbxassetid://1227345409"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938
  60. music.Looped = true
  61. music:Play()
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. local handee = Instance.new("Part")
  70. handee.Parent = Character
  71. handee.Size = Vector3.new(0.2,0.2,0.2)
  72. handee.Archivable = true
  73. handee.Transparency = 1
  74. handee.CanCollide = true
  75. handee.BrickColor = BrickColor.new("White")
  76. handee.Material = "Neon"
  77. handee.Anchored = false
  78. local handeemesh = Instance.new("BlockMesh",handee)
  79. handeemesh.Scale = Vector3.new(1,1,1)
  80. local handeeweld = Instance.new("Weld")
  81. handeeweld.Parent = handee
  82. handeeweld.Part0 = RightArm
  83. handeeweld.Part1 = handee
  84. handeeweld.C1 = CFrame.new(0, 0.95, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  85. handeeweld.Part0 = RightArm
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. so = function(id,par,vol,pit)
  94. coroutine.resume(coroutine.create(function()
  95. local sou = Instance.new("Sound",par or workspace)
  96. sou.Volume=vol
  97. sou.Pitch=pit or 1
  98. sou.SoundId=id
  99. swait()
  100. sou:play()
  101. game:GetService("Debris"):AddItem(sou,6)
  102. end))
  103. end
  104.  
  105. --save shoulders
  106. RSH, LSH=nil, nil
  107. --welds
  108. RW= Instance.new("Weld")
  109. RW.Name="Right Shoulder"
  110. LH=Torso["Left Hip"]
  111. RH=Torso["Right Hip"]
  112. TorsoColor=Torso.BrickColor
  113. function NoOutline(Part)
  114. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  115. end
  116. player=Player
  117. ch=Character
  118. RSH=ch.Torso["Right Shoulder"]
  119. --
  120. RSH.Parent=nil
  121.  
  122. --
  123. RW.Name="Right Shoulder"
  124. RW.Part0=ch.Torso
  125. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  126. RW.C1=cf(0, 0.5, 0)
  127. RW.Part1=ch["Right Arm"]
  128. RW.Parent=ch.Torso
  129.  
  130.  
  131.  
  132.  
  133.  
  134. Player=game:GetService('Players').LocalPlayer
  135. Character=Player.Character
  136. mouse=Player:GetMouse()
  137. m=Instance.new('Model',Character)
  138.  
  139.  
  140. local function weldBetween(a, b)
  141. local weldd = Instance.new("ManualWeld")
  142. weldd.Part0 = a
  143. weldd.Part1 = b
  144. weldd.C0 = CFrame.new()
  145. weldd.C1 = b.CFrame:inverse() * a.CFrame
  146. weldd.Parent = a
  147. return weldd
  148. end
  149.  
  150. ArtificialHB = Instance.new("BindableEvent", script)
  151. ArtificialHB.Name = "Heartbeat"
  152.  
  153. script:WaitForChild("Heartbeat")
  154.  
  155. frame = 1 / 60
  156. tf = 0
  157. allowframeloss = false
  158. tossremainder = false
  159. lastframe = tick()
  160. script.Heartbeat:Fire()
  161.  
  162. game:GetService("RunService").Heartbeat:connect(function(s, p)
  163. tf = tf + s
  164. if tf >= frame then
  165. if allowframeloss then
  166. script.Heartbeat:Fire()
  167. lastframe = tick()
  168. else
  169. for i = 1, math.floor(tf / frame) do
  170. script.Heartbeat:Fire()
  171. end
  172. lastframe = tick()
  173. end
  174. if tossremainder then
  175. tf = 0
  176. else
  177. tf = tf - frame * math.floor(tf / frame)
  178. end
  179. end
  180. end)
  181.  
  182. function swait(num)
  183. if num == 0 or num == nil then
  184. ArtificialHB.Event:wait()
  185. else
  186. for i = 0, num do
  187. ArtificialHB.Event:wait()
  188. end
  189. end
  190. end
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. function clerp(a,b,t)
  200. local qa = {QuaternionFromCFrame(a)}
  201. local qb = {QuaternionFromCFrame(b)}
  202. local ax, ay, az = a.x, a.y, a.z
  203. local bx, by, bz = b.x, b.y, b.z
  204. local _t = 1-t
  205. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  206. end
  207.  
  208. function QuaternionFromCFrame(cf)
  209. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  210. local trace = m00 + m11 + m22
  211. if trace > 0 then
  212. local s = math.sqrt(1 + trace)
  213. local recip = 0.5/s
  214. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  215. else
  216. local i = 0
  217. if m11 > m00 then
  218. i = 1
  219. end
  220. if m22 > (i == 0 and m00 or m11) then
  221. i = 2
  222. end
  223. if i == 0 then
  224. local s = math.sqrt(m00-m11-m22+1)
  225. local recip = 0.5/s
  226. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  227. elseif i == 1 then
  228. local s = math.sqrt(m11-m22-m00+1)
  229. local recip = 0.5/s
  230. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  231. elseif i == 2 then
  232. local s = math.sqrt(m22-m00-m11+1)
  233. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  234. end
  235. end
  236. end
  237.  
  238. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  239. local xs, ys, zs = x + x, y + y, z + z
  240. local wx, wy, wz = w*xs, w*ys, w*zs
  241. local xx = x*xs
  242. local xy = x*ys
  243. local xz = x*zs
  244. local yy = y*ys
  245. local yz = y*zs
  246. local zz = z*zs
  247. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  248. end
  249.  
  250. function QuaternionSlerp(a, b, t)
  251. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  252. local startInterp, finishInterp;
  253. if cosTheta >= 0.0001 then
  254. if (1 - cosTheta) > 0.0001 then
  255. local theta = math.acos(cosTheta)
  256. local invSinTheta = 1/math.sin(theta)
  257. startInterp = math.sin((1-t)*theta)*invSinTheta
  258. finishInterp = math.sin(t*theta)*invSinTheta
  259. else
  260. startInterp = 1-t
  261. finishInterp = t
  262. end
  263. else
  264. if (1+cosTheta) > 0.0001 then
  265. local theta = math.acos(-cosTheta)
  266. local invSinTheta = 1/math.sin(theta)
  267. startInterp = math.sin((t-1)*theta)*invSinTheta
  268. finishInterp = math.sin(t*theta)*invSinTheta
  269. else
  270. startInterp = t-1
  271. finishInterp = t
  272. end
  273. end
  274. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  275. end
  276.  
  277. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  278.  
  279. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  280. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  281. end
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293. mouse.Button1Down:connect(function()
  294. niglet = true
  295. while niglet == true do
  296. swait()
  297. if attack == false then
  298. attack = true
  299. for i = 0,1,0.07 do
  300. swait()
  301. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),.2)
  302. end
  303. local ray = Ray.new(handee.CFrame.p, (mouse.Hit.p - handee.CFrame.p).unit * 600)
  304. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  305.  
  306. local beam = Instance.new("Part", workspace)
  307. beam.BrickColor = BrickColor.new("Cyan")
  308. beam.FormFactor = "Custom"
  309. beam.Material = "Neon"
  310. beam.Transparency = 0
  311. beam.Anchored = true
  312. beam.Locked = true
  313. beam.CanCollide = false
  314.  
  315. local distance = (handee.CFrame.p - position).magnitude
  316. beam.Size = Vector3.new(0.1, 0.1, distance)
  317. beam.CFrame = CFrame.new(handee.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  318. so("http://roblox.com/asset/?id=151414336",handee,1,1)
  319. game:GetService("Debris"):AddItem(beam, 0.1)
  320.  
  321. if part then
  322. local humanoid = part.Parent:FindFirstChild("Humanoid")
  323.  
  324. if not humanoid then
  325. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  326. end
  327.  
  328. if humanoid then
  329. part.Parent:BreakJoints()
  330.  
  331. local Sauce = Instance.new("Sound",part.Parent.Torso)
  332. Sauce.Volume = 1.5
  333. Sauce.SoundId = "rbxassetid://1224235449"
  334. Sauce.Looped = true
  335. Sauce.TimePosition = 10
  336. Sauce:Play()
  337.  
  338.  
  339. m = game.Players.LocalPlayer
  340. char = m.Character
  341. local txt = Instance.new("BillboardGui", part.Parent)
  342. txt.Adornee = part.Parent.Head
  343. txt.Name = "_status"
  344. txt.Size = UDim2.new(2, 0, 1.2, 0)
  345. txt.StudsOffset = Vector3.new(-9, 8, 0)
  346. local text = Instance.new("TextLabel", txt)
  347. text.Size = UDim2.new(10, 0, 7, 0)
  348. text.FontSize = "Size24"
  349. text.TextScaled = true
  350. text.TextTransparency = 0
  351. text.BackgroundTransparency = 1
  352. text.TextTransparency = 0
  353. text.TextStrokeTransparency = 0
  354. text.Font = "Bodoni"
  355. text.TextStrokeColor3 = Color3.new(0,0,0)
  356.  
  357. v=Instance.new("Part")
  358. v.Name = "ColorBrick"
  359. v.Parent=m.Character
  360. v.FormFactor="Symmetric"
  361. v.Anchored=true
  362. v.CanCollide=false
  363. v.BottomSurface="Smooth"
  364. v.TopSurface="Smooth"
  365. v.Size=Vector3.new(10,5,3)
  366. v.Transparency=1
  367. v.CFrame=char.Torso.CFrame
  368. v.BrickColor=BrickColor.new("Really black")
  369. v.Transparency=1
  370. text.TextColor3 = Color3.new(0,0,255)
  371. v.Shape="Block"
  372. text.Text = "Get Tinged Nub."
  373.  
  374.  
  375.  
  376. end
  377. end
  378. attack = false
  379. end
  380. end
  381. end)
  382.  
  383.  
  384.  
  385. mouse.Button1Up:connect(function()
  386. swait()
  387. niglet = false
  388. attack = true
  389. for i = 0,1,0.07 do
  390. swait()
  391. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.1)
  392. end
  393. attack = false
  394. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement