Guest User

Snap Sim Script

a guest
May 22nd, 2019
2,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. --Game: https://www.roblox.com/games/2998714569/UPDATE-Snap-Simulator
  2.  
  3. --Edited/made by brianops1
  4.  
  5. --Execute this a few times and you will have an insta kill (pretty much) per click
  6.  
  7.  
  8. function define()
  9. player = game.Players.LocalPlayer
  10. clickEvent = game.ReplicatedStorage.Eventos.Herramienta.ClickEvent
  11. InvocarTiempo = game.ReplicatedStorage.Eventos.Boosts.RecogeReloadTimeBoost
  12. tool = game.Workspace[player.Name]:FindFirstChildOfClass("Tool")
  13. script = tool:FindFirstChild("LocalScript")
  14. ping = false
  15. mouse = player:GetMouse()
  16. CantiGiro = Vector3.new(0, 40, 0)
  17. Key53 = 8186484168865098
  18. Key14 = 4887
  19. end
  20. local inv256
  21. define()
  22. local function Encode(str)
  23. define()
  24. if not inv256 then
  25. inv256 = {}
  26. for M = 0, 127 do
  27. local inv = -1
  28. repeat
  29. inv = inv + 2
  30. until inv * (2 * M + 1) % 256 == 1
  31. inv256[M] = inv
  32. end
  33. end
  34. local K, F = Key53, 16384 + Key14
  35. return (str:gsub(".", function(m)
  36. local L = K % 274877906944
  37. local H = (K - L) / 274877906944
  38. local M = H % 128
  39. m = m:byte()
  40. local c = (m * inv256[M] - (H - M) / 128) % 256
  41. K = L * F + H + c + m
  42. return ("%02x"):format(c)
  43. end))
  44. end
  45. local function onClick(player, clickLocation, ParteTocada)
  46. define()
  47. if ParteTocada:FindFirstChild("Stats") and ParteTocada:FindFirstChild("Stats"):FindFirstChild("Alive") and ParteTocada:FindFirstChild("Stats").Alive.Value == true then
  48. local encripta
  49. if ParteTocada.Parent.Name == "Workspace" then
  50. encripta = Encode("TUTORIAL" .. "#" .. ParteTocada.Parent.Name .. "#" .. ParteTocada.aquenosabesparaquesesto.Value .. "#" .. ParteTocada.Name)
  51. else
  52. encripta = Encode(ParteTocada.Parent.Parent.Name .. "#" .. ParteTocada.Parent.Name .. "#" .. ParteTocada.aquenosabesparaquesesto.Value .. "#" .. ParteTocada.Parent.Parent.Parent.Name)
  53. end
  54. clickEvent:FireServer(ParteTocada, script.Parent, encripta)
  55. script.Parent.Dedos.Orientation = script.Parent.Dedos.Orientation + CantiGiro
  56. script.Parent.Handle.Boom:Play()
  57. script.Parent.Dedos.Orientation = script.Parent.Dedos.Orientation - CantiGiro
  58. end
  59. end
  60. tool.Equipped:Connect(function()
  61. define()
  62. local character = player.Character
  63. local Root = character:FindFirstChild("HumanoidRootPart")
  64. if Root then
  65. script.Parent.Dedos.BrickColor = character.Head.BrickColor
  66. script.Parent.Handle.BrickColor = character.Head.BrickColor
  67. character.RightHand.Transparency = 1
  68. end
  69. end)
  70. tool.Unequipped:Connect(function()
  71. define()
  72. local character = player.Character
  73. local Root = character:FindFirstChild("HumanoidRootPart")
  74. if Root then
  75. character.RightHand.Transparency = 0
  76. end
  77. end)
  78. tool.Activated:Connect(function()
  79. define()
  80. if ping == false then
  81. ping = true
  82. local clickLocation = mouse.Hit
  83. local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit * 5000)
  84. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  85. if part ~= nil then
  86. for i = 1,10 do
  87. onClick(player, clickLocation, part.Parent)
  88. end
  89. wait()
  90. end
  91. local Players = game:GetService("Players")
  92. local plr = Players.LocalPlayer
  93. local GUI = plr:WaitForChild("PlayerGui"):WaitForChild("ReloadingHand")
  94. GUI.Enabled = true
  95. GUI.Frame.ColorBg.Size = UDim2.new(0, 0, 0.6, 0)
  96. local willTween = GUI.Frame.ColorBg:TweenSize(UDim2.new(0.9, 0, 0.6, 0), Enum.EasingDirection.In, Enum.EasingStyle.Linear, Tiempo, true)
  97. GUI.Enabled = false
  98. GUI.Frame.ColorBg.Size = UDim2.new(0, 0, 0.6, 0)
  99. ping = false
  100. end
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment