Advertisement
Jan_Simon12

Sonic speed simulator

Jun 5th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. --> Declarations <--
  2. local FastCFrame = CFrame.new(0,0,0)
  3. local OldNamecall = nil
  4.  
  5.  
  6.  
  7. --> Main <--
  8. OldNamecall = hookmetamethod(game, '__namecall', function(self,...)
  9. local args = {...}
  10. local method = getnamecallmethod()
  11.  
  12. if tostring(self) == 'UpdateCharacterState' and method == 'FireServer' then
  13. args = {
  14. [1] = {
  15. ['Character'] = game:GetService('Players').LocalPlayer.Character,
  16. ['CFrame'] = FastCFrame,
  17. ['IsRunning'] = true
  18. }
  19. }
  20. for i = 1,100 do
  21. return self.FireServer(self, unpack(args))
  22. end
  23. end
  24.  
  25. return OldNamecall(self,...)
  26. end)
  27.  
  28.  
  29.  
  30. --> Loops <--
  31. game:GetService('RunService').Heartbeat:Connect(function()
  32. FastCFrame = FastCFrame + Vector3.new(10,10,10)
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement