Advertisement
Guest User

asd

a guest
Jan 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. local positionfunc
  2. for _,a in pairs (getgc()) do
  3. if type(a)=='function' then
  4. if debug.getupvalues(a).Position then
  5. positionfunc = a
  6. break
  7. end
  8. end
  9. end
  10.  
  11. local function findfinish()
  12. for a,b in pairs(workspace.Model:FindFirstChildOfClass("Model"):GetDescendants()) do
  13. if b.Name == 'MapFinish' and b:IsA("Part") then
  14. return b
  15. end
  16. end
  17. end
  18.  
  19. game:GetService("UserInputService").InputBegan:connect(function(i,g)
  20. if i.KeyCode == Enum.KeyCode.Q and not g then
  21. debug.setupvalue(positionfunc,"Position",findfinish().Position)
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement