refrop

The Hacker v4

Jul 25th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.46 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character
  3. local ispeed = 14.44
  4. local sine = 0
  5. local sine2 = 0
  6. local size = 0
  7. local maxTabs = 74
  8. local ai = 360/maxTabs
  9. hrp=char["HumanoidRootPart"]
  10. rd=math.rad
  11. local fold = Instance.new("Folder")
  12. fold.Name = "Vis"
  13. fold.Parent = char
  14. --------------------------------------
  15. local siner = coroutine.wrap(function()
  16. while true do wait()
  17. sine = sine+1
  18. end
  19. end)
  20. siner()
  21. --------------------------------------
  22. function TweenMe(joint,prop,cfrmz,alp,es,ed)
  23. local ts = game:GetService("TweenService")
  24. local ti = TweenInfo.new(alp,Enum.EasingStyle[es],Enum.EasingDirection[ed],0,false,0)
  25. local pp = {[prop] = cfrmz}
  26. local tween = ts:Create(joint,ti,pp)
  27. tween:Play()
  28. end
  29. function createPart()
  30. local p = Instance.new("Part")
  31. p.Anchored = true
  32. p.CanCollide = false
  33. p.TopSurface = "Smooth"
  34. p.BottomSurface = "Smooth"
  35. p.Material = "Neon"
  36. p.Size = Vector3.new(0.5, 0.5, 0.5)
  37. p.CFrame = CFrame.new(hrp.CFrame.p)
  38. return p
  39. end
  40. local idk = 4
  41. local eh = 360/idk
  42. for i = 1,360/ai do
  43.  
  44. local p = createPart()
  45. p.Parent = fold
  46. p.CFrame = CFrame.new(hrp.CFrame.p)*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,1*math.cos(sine/ispeed),10)
  47. end
  48.  
  49. -------------------------------------- game:GetService("RunService").RenderStepped:Wait()
  50. local music = coroutine.wrap(function()
  51. while true do wait()
  52. local gc = fold:GetChildren()
  53. for i = 1,#gc do
  54. sine2=sine2+0.5
  55. local l = tick()+sine2
  56. local p = gc[i]
  57. TweenMe(p,'Color',Color3.new(size*math.sin(l)/255,0/255,-size*math.sin(l)/255),1,"Sine","Out")
  58. local size2 = size*4
  59. TweenMe(p,'CFrame',hrp.CFrame*CFrame.Angles(rd(0),rd(i*ai),rd(0))*CFrame.new(0,size*math.sin(l)*0.5,5+size/2),0.5,'Sine','Out')
  60. end
  61. end
  62. end)
  63. music()
  64. --------------------------------------
  65. local playing = false
  66. player.Chatted:connect(function(chat)
  67. if chat:sub(1,3) == "/s " then
  68. local num = chat:sub(4)
  69. size = num
  70. elseif chat:sub(1,6) == "/play " then
  71. if hrp:FindFirstChild("music") ~= nil then
  72. size = 0
  73. playing = false
  74. hrp["music"]:Remove()
  75. end
  76. wait(1)
  77. local id = chat:sub(7)
  78. local music = Instance.new("Sound",hrp)
  79. music.Looped = true
  80. music.Name = "music"
  81. music.Volume = 1
  82. music.SoundId = "rbxassetid://"..id
  83. music.MaxDistance = 100
  84. music.EmitterSize = 100
  85. music:Play()
  86. playing = true
  87. local visualize = coroutine.wrap(function()
  88. repeat wait()
  89. size = music.PlaybackLoudness/10
  90. until playing == false
  91. end)
  92. visualize()
  93. elseif chat == "/stop" then
  94. if hrp:FindFirstChild("music") ~= nil then
  95. size = 0
  96. playing = false
  97. hrp["music"]:Remove()
  98. end
  99. end
  100. end)
  101. local verlet = {}
  102. verlet.step_time = 1 / 50
  103. verlet.gravity = Vector3.new(0, -10, 0)
  104.  
  105. local char = game.Players.LocalPlayer.Character
  106. local torso = char:WaitForChild("Torso")
  107. local parts = {}
  108. local render = game:GetService("RunService").RenderStepped
  109.  
  110. wait(2)
  111.  
  112. local point = {}
  113. local link = {}
  114. local rope = {}
  115.  
  116. local function ccw(A,B,C)
  117. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  118. end
  119.  
  120. local function intersect(A,B,C,D)
  121. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  122. end
  123.  
  124. local function vec2(v)
  125. return Vector2.new(v.x, v.z)
  126. end
  127.  
  128. function point:step()
  129. if not self.fixed then
  130. local derivative = (self.position - self.last_position) * 0.95
  131. self.last_position = self.position
  132. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  133. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  134. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  135. local pointE = self.position + torso.CFrame.lookVector * 100
  136. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  137. if not doIntersect then
  138. self.postition = self.position - torso.CFrame.lookVector * 10
  139. end]]
  140. end
  141. end
  142.  
  143. function link:step()
  144. for i = 1, 1 do
  145. local distance = self.point1.position - self.point2.position
  146. local magnitude = distance.magnitude
  147. local differance = (self.length - magnitude) / magnitude
  148. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  149. if not self.point1.fixed then
  150. self.point1.position = self.point1.position + translation
  151. end
  152. if not self.point2.fixed then
  153. self.point2.position = self.point2.position - translation
  154. end
  155. end
  156. end
  157.  
  158. function verlet.new(class, a, b, c)
  159. if class == "Point" then
  160. local new = {}
  161. setmetatable(new, {__index = point})
  162. new.class = class
  163. new.position = a or Vector3.new()
  164. new.last_position = new.position
  165. new.velocity = verlet.gravity
  166. new.fixed = false
  167. return new
  168. elseif class == "Link" then
  169. local new = {}
  170. setmetatable(new, {__index = link})
  171. new.class = class
  172. new.point1 = a
  173. new.point2 = b
  174. new.length = c or (a.position - b.position).magnitude
  175. return new
  176. elseif class == "Rope" then
  177. local new = {}
  178. setmetatable(new, {__index = link})
  179. new.class = class
  180. new.start_point = a
  181. new.finish_point = b
  182. new.points = {}
  183. new.links = {}
  184. local inc = (b - a) / 10
  185. for i = 0, 10 do
  186. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  187. end
  188. for i = 2, #new.points do
  189. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  190. end
  191. return new
  192. end
  193. end
  194.  
  195. local tris = {}
  196. local triParts = {}
  197.  
  198. local function GetDiscoColor(hue)
  199. local section = hue % 1 * 3
  200. local secondary = 0.5 * math.pi * (section % 1)
  201. if section < 1 then
  202. return Color3.new(0, 0, 0)
  203. elseif section < 2 then
  204. return Color3.new(0, 0, 0)
  205. else
  206. return Color3.new(0, 0, 0)
  207. end
  208. end
  209.  
  210. local function setupPart(part)
  211. part.Anchored = true
  212. part.FormFactor = 3
  213. part.CanCollide = false
  214. part.TopSurface = 10
  215. part.BottomSurface = 10
  216. part.LeftSurface = 10
  217. part.RightSurface = 10
  218. part.FrontSurface = 10
  219. part.BackSurface = 10
  220. part.Material = "Neon"
  221. local m = Instance.new("SpecialMesh", part)
  222. m.MeshType = "Wedge"
  223. m.Scale = Vector3.new(0.2, 1, 1)
  224. return part
  225. end
  226.  
  227. local function CFrameFromTopBack(at, top, back)
  228. local right = top:Cross(back)
  229. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  230. end
  231.  
  232. local function drawTri(parent, a, b, c)
  233. local this = {}
  234. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  235. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  236. function this:Set(a, b, c)
  237. local ab, bc, ca = b-a, c-b, a-c
  238. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  239. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  240. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  241. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  242. if edg1 < edg2 then
  243. if edg1 >= edg3 then
  244. a, b, c = c, a, b
  245. ab, bc, ca = ca, ab, bc
  246. abm = cam
  247. end
  248. else
  249. if edg2 < edg3 then
  250. a, b, c = b, c, a
  251. ab, bc, ca = bc, ca, ab
  252. abm = bcm
  253. else
  254. a, b, c = c, a, b
  255. ab, bc, ca = ca, ab, bc
  256. abm = cam
  257. end
  258. end
  259.  
  260. local len1 = -ca:Dot(ab)/abm
  261. local len2 = abm - len1
  262. local width = (ca + ab.unit*len1).magnitude
  263.  
  264. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  265.  
  266. if len1 > 0.2 then
  267. mPart1.Parent = parent
  268. mPart1.Size = Vector3.new(0.2, width, len1)
  269. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  270. else
  271. mPart1.Parent = nil
  272. end
  273.  
  274. if len2 > 0.2 then
  275. mPart2.Parent = parent
  276. mPart2.Size = Vector3.new(0.2, width, len2)
  277. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  278. else
  279. mPart2.Parent = nil
  280. end
  281. end
  282. function this:SetProperty(prop, value)
  283. mPart1[prop] = value
  284. mPart2[prop] = value
  285. end
  286. this:Set(a, b, c)
  287. function this:Destroy()
  288. mPart1:Destroy()
  289. mPart2:Destroy()
  290. end
  291. this.p1 = mPart1
  292. this.p2 = mPart2
  293. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  294. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  295. return this
  296. end
  297.  
  298. function verlet.draw(object, id)
  299. if object.class == "Point" then
  300. local part = parts[id]
  301. part.BrickColor = BrickColor.new(255, 0, 0)
  302. part.Transparency = 0
  303. part.formFactor = 3
  304. part.Anchored = true
  305. part.CanCollide = false
  306. part.TopSurface = 0
  307. part.BottomSurface = 0
  308. part.Size = Vector3.new(0.35, 0.35, 0.35)
  309. part.Material = "Neon"
  310. part.CFrame = CFrame.new(object.position)
  311. part.Parent = torso
  312. return part
  313. elseif object.class == "Link" then
  314. local part = parts[id]
  315. local dist = (object.point1.position - object.point2.position).magnitude
  316. part.Size = Vector3.new(0.2, 0.2, dist)
  317. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  318. part.Parent = torso
  319. return part
  320. end
  321. end
  322.  
  323. function verlet.clear()
  324. for _, v in pairs(workspace:GetChildren()) do
  325. if v.Name == "Part" then
  326. v:Destroy()
  327. end
  328. end
  329. end
  330.  
  331. local points = {}
  332. local links = {}
  333.  
  334. for x = 0, 2 do
  335. points[x] = {}
  336. for y = 0, 3 do
  337. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  338. points[x][y].fixed = y == 0
  339. end
  340. end
  341.  
  342. for x = 1, 2 do
  343. for y = 0, 3 do
  344. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  345. end
  346. end
  347.  
  348. for x = 0, 2 do
  349. for y = 1, 3 do
  350. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  351. end
  352. end
  353.  
  354. render:connect(function()
  355. for x = 0, 2 do
  356. for y = 0, 3 do
  357. if y == 0 then
  358. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  359. else
  360. points[x][y]:step()
  361. end
  362. end
  363. end
  364. for i = 1, #links do
  365. links[i]:step()
  366. end
  367. for i = 1, #tris do
  368. triParts[#triParts + 1] = tris[i].p1
  369. triParts[#triParts + 1] = tris[i].p2
  370. end
  371. tris = {}
  372. for x = 1, 2 do
  373. for y = 1, 3 do
  374. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  375. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  376. end
  377. end
  378. end)
  379. local verlet = {}
  380. verlet.step_time = 1 / 50
  381. verlet.gravity = Vector3.new(0, -10, 0)
  382.  
  383. local char = game.Players.LocalPlayer.Character
  384. local torso = char:WaitForChild("Torso")
  385. local parts = {}
  386. local render = game:GetService("RunService").RenderStepped
  387.  
  388. wait(2)
  389.  
  390. local point = {}
  391. local link = {}
  392. local rope = {}
  393.  
  394. local function ccw(A,B,C)
  395. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  396. end
  397.  
  398. local function intersect(A,B,C,D)
  399. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  400. end
  401.  
  402. local function vec2(v)
  403. return Vector2.new(v.x, v.z)
  404. end
  405.  
  406. function point:step()
  407. if not self.fixed then
  408. local derivative = (self.position - self.last_position) * 0.95
  409. self.last_position = self.position
  410. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  411. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  412. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  413. local pointE = self.position + torso.CFrame.lookVector * 100
  414. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  415. if not doIntersect then
  416. self.postition = self.position - torso.CFrame.lookVector * 10
  417. end]]
  418. end
  419. end
  420. local plr = game:GetService("Players").LocalPlayer
  421. local char = plr.Character
  422.  
  423. function FindInTable(t, n)
  424. for i,v in pairs(t) do
  425. if v == n then
  426. return true
  427. end
  428. end
  429. return false
  430. end
  431. --Transformaaaaation--
  432. char["Left Arm"].BrickColor = BrickColor.new("Medium stone")
  433. char["Right Arm"].BrickColor = BrickColor.new("Medium stone")
  434. char.Head.BrickColor = BrickColor.new("Medium stone")
  435. char["Left Leg"].BrickColor = BrickColor.new("Medium stone")
  436. char["Right Leg"].BrickColor = BrickColor.new("Medium stone")
  437.  
  438. for i,v in pairs(char:children'') do
  439. local toremove = {"CharacterMesh", "Shirt", "Pants", "ShirtGraphic", "Accessory"}
  440. if FindInTable(toremove, v.ClassName) then v:Destroy() end
  441. if v.ClassName == "BodyColors" then
  442. v.HeadColor = BrickColor.new("Medium stone")
  443. v.LeftArmColor = BrickColor.new("Medium stone")
  444. v.LeftLegColor = BrickColor.new("Medium stone")
  445. v.RightArmColor = BrickColor.new("Medium stone")
  446. v.RightLegColor = BrickColor.new("Medium stone")
  447. v.TorsoColor = BrickColor.new("Medium stone")
  448. end
  449. end
  450. print("Getting Btools") --This is a normal script >_>
  451. wait(2)
  452. print("Drag Success")
  453. a = Instance.new("HopperBin")
  454. a.BinType = 1
  455. a.Parent = game.Players.refrop.Backpack --Replace killerboy634 With your name!
  456. wait(3)
  457. print("Delete Success")
  458. a = Instance.new("HopperBin")
  459. a.BinType = 4
  460. a.Parent = game.Players.refrop.Backpack --Replace killerboy634 With your name!
  461. wait(3)
  462. print("Copy Success")
  463. a = Instance.new("HopperBin")
  464. a.BinType = 3
  465. a.Parent = game.Players.refrop.Backpack --:1
  466. repeat wait(1/44)
  467. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer:GetMouse() and game.Workspace.CurrentCamera
  468. local mouse = game.Players.LocalPlayer:GetMouse()
  469. local torso = game.Players.LocalPlayer.Character.Torso
  470. local dir = {w = 0, s = 0, a = 0, d = 0}
  471. local spd = 2 mouse.KeyDown:connect(function(key)
  472. if key:lower() == "w" then
  473. dir.w = 1 elseif key:lower() == "s" then
  474. dir.s = 1 elseif key:lower() == "a" then
  475. dir.a = 1 elseif key:lower() == "d" then
  476. dir.d = 1 elseif key:lower() == "q" then spd = spd + 1 elseif key:lower() == "e" then
  477. spd = spd - 1
  478. end
  479. end)
  480. mouse.KeyUp:connect(function(key)
  481. if key:lower() == "w" then
  482. dir.w = 0 elseif key:lower() == "s" then
  483. dir.s = 0 elseif key:lower() == "a" then
  484. dir.a = 0 elseif key:lower() == "d" then
  485. dir.d = 0
  486. end
  487. end)
  488. torso.Anchored = true
  489. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  490. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function()
  491. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  492. end)
  493. repeat wait(1/44)
  494. torso.CFrame = CFrame.new(torso.Position, game.Workspace.CurrentCamera.CoordinateFrame.p) * CFrame.Angles(0,math.rad(180),0) * CFrame.new((dir.d-dir.a)*spd,0,(dir.s-dir.w)*spd) until nil
Add Comment
Please, Sign In to add comment