Advertisement
Guest User

Roblox Reaper Titan Script

a guest
Feb 19th, 2017
13,913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. local p = game:GetService("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 stanceToggle = "Normal"
  16. local l = game:GetService("Lighting")
  17. local rs = game:GetService("RunService").RenderStepped
  18. hum.DisplayDistanceType = "None"
  19. math.randomseed(os.time())
  20. for i,v in pairs(char:children()) do
  21. if v:IsA("Hat") then
  22. v:Destroy()
  23. end
  24. end
  25. for i,v in pairs (hed:GetChildren()) do
  26. if v:IsA("Sound") then
  27. v:Destroy()
  28. end
  29. end
  30. ----------------------------------------------------
  31. Debounces = {
  32. CanAttack = true;
  33. CanJoke = true;
  34. NoIdl = false;
  35. Slashing = false;
  36. Slashed = false;
  37. Slapping = false;
  38. Slapped = false;
  39. ks = false;
  40. }
  41. ----------------------------------------------------
  42. function weld5(part0, part1, c0, c1)
  43. weeld=Instance.new("Weld", part0)
  44. weeld.Part0=part0
  45. weeld.Part1=part1
  46. weeld.C0=c0
  47. weeld.C1=c1
  48. return weeld
  49. end
  50. ----------------------------------------------------
  51. mod4 = Instance.new("Model",char)
  52.  
  53. ptez = {0.7, 0.8, 0.9, 1}
  54.  
  55. function FindNearestTorso(Position,Distance,SinglePlayer)
  56. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  57. local List = {}
  58. for i,v in pairs(workspace:GetChildren())do
  59. if v:IsA("Model")then
  60. if v:findFirstChild("Torso")then
  61. if v ~= char then
  62. if(v.Torso.Position -Position).magnitude <= Distance then
  63. table.insert(List,v)
  64. end
  65. end
  66. end
  67. end
  68. end
  69. return List
  70. end
  71. ----------------------------------------------------
  72. GroundWave3 = function()
  73. local HandCF = CFrame.new(root.Position - Vector3.new(0,0,0)) * CFrame.Angles(0,0,0)
  74. local wave1 = Instance.new("Part", torso)
  75. wave1.BrickColor = BrickColor.new("Really black")
  76. wave1.Anchored = true
  77. wave1.CanCollide = false
  78. wave1.Locked = true
  79. wave1.Material = "Neon"
  80. wave1.Size = Vector3.new(1, 1, 1)
  81. wave1.TopSurface = "Smooth"
  82. wave1.BottomSurface = "Smooth"
  83. wave1.Transparency = 0.35
  84. wave1.CFrame = HandCF
  85. wm = Instance.new("SpecialMesh", wave1)
  86. wm.Scale = Vector3.new(.1,.1,.1)
  87. wm.MeshType = "Sphere"
  88. coroutine.wrap(function()
  89. for i = 1, 20, 1 do
  90. wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2)
  91. --wave1.Size = wm.Scale
  92. wave1.CFrame = HandCF
  93. wave1.Transparency = i/20
  94. wait()
  95. end
  96. wait()
  97. wave1:Destroy()
  98. end)()
  99. end
  100. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  101. local wave = Instance.new("Part", torso)
  102. wave.BrickColor = BrickColor.new("New Yeller")
  103. wave.Anchored = true
  104. wave.CanCollide = false
  105. wave.Locked = true
  106. wave.Size = Vector3.new(1, 1, 1)
  107. wave.TopSurface = "Smooth"
  108. wave.BottomSurface = "Smooth"
  109. wave.Transparency = 0.8
  110. wave.CFrame = HandCF
  111. wm = Instance.new("SpecialMesh", wave)
  112. wm.MeshId = "rbxassetid://3270017"
  113. coroutine.wrap(function()
  114. for i = 1, 14, 1 do
  115. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  116. wave.Size = wm.Scale
  117. wave.CFrame = HandCF
  118. wave.Transparency = i/14
  119. wait()
  120. end
  121. wait()
  122. wave:Destroy()
  123. end)()
  124. ----------------------------------------------------
  125. function lerp(a, b, t) -- Linear interpolation
  126. return a + (b - a)*t
  127. end
  128.  
  129. function slerp(a, b, t) --Spherical interpolation
  130. dot = a:Dot(b)
  131. if dot > 0.99999 or dot < -0.99999 then
  132. return t <= 0.5 and a or b
  133. else
  134. r = math.acos(dot)
  135. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  136. end
  137. end
  138.  
  139. function matrixInterpolate(a, b, t)
  140. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  141. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  142. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  143. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  144. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  145. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  146. local t = v1:Dot(v2)
  147. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  148. return CFrame.new()
  149. end
  150. return CFrame.new(
  151. v0.x, v0.y, v0.z,
  152. v1.x, v1.y, v1.z,
  153. v2.x, v2.y, v2.z,
  154. v3.x, v3.y, v3.z)
  155. end
  156. ----------------------------------------------------
  157. function genWeld(a,b)
  158. local w = Instance.new("Weld",a)
  159. w.Part0 = a
  160. w.Part1 = b
  161. return w
  162. end
  163. function weld(a, b)
  164. local weld = Instance.new("Weld")
  165. weld.Name = "W"
  166. weld.Part0 = a
  167. weld.Part1 = b
  168. weld.C0 = a.CFrame:inverse() * b.CFrame
  169. weld.Parent = a
  170. return weld;
  171. end
  172. ----------------------------------------------------
  173. function Lerp(c1,c2,al)
  174. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  175. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  176. for i,v in pairs(com1) do
  177. com1[i] = v+(com2[i]-v)*al
  178. end
  179. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  180. end
  181. ----------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement