Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local positionfunc
- for _,a in pairs (getgc()) do
- if type(a)=='function' then
- if debug.getupvalues(a).Position then
- positionfunc = a
- break
- end
- end
- end
- local function findfinish()
- for a,b in pairs(workspace.Model:FindFirstChildOfClass("Model"):GetDescendants()) do
- if b.Name == 'MapFinish' and b:IsA("Part") then
- return b
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(function(i,g)
- if i.KeyCode == Enum.KeyCode.Q and not g then
- debug.setupvalue(positionfunc,"Position",findfinish().Position)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement