SythicalScripts

Sythical | Minershaft Script

Jan 8th, 2023
2,894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. -- Made by PLATINA#3009
  2. -- https://www.roblox.com/games/11270995869/MinerShaft-Minecraft
  3.  
  4. local x = nil
  5. local y = nil
  6. local z = nil
  7. OldNamecall = hookmetamethod(game, "__namecall", function(self, ...)
  8. local args = {...}
  9. if getnamecallmethod() == "InvokeServer" and self.Name == "LoadBlock" then
  10. x = args[1]
  11. y = args[2]
  12. z = args[3]
  13. end
  14. return OldNamecall(self, unpack(args))
  15. end)
  16.  
  17.  
  18. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  19. if key == "z" then
  20. local args = {
  21. [1] = 36
  22. }
  23.  
  24. game:GetService("ReplicatedStorage").GameRemotes.SortItem:InvokeServer(unpack(args))
  25. game:GetService("ReplicatedStorage").GameRemotes.ExitBlock:InvokeServer()
  26. local args = {
  27. [1] = x,
  28. [2] = y,
  29. [3] = z
  30. }
  31.  
  32. game:GetService("ReplicatedStorage").GameRemotes.LoadBlock:InvokeServer(unpack(args))
  33. end
  34. wait()
  35. end)
Add Comment
Please, Sign In to add comment