- local rem,ogcf,roll,effect
- for _,v in pairs(game.ReplicatedStorage.Packages:GetDescendants()) do
- if v.Name == "ChangeVehicle" then
- rem = v
- elseif v.Name == "PurchaseRoll" then
- roll = v
- end
- if rem and roll and effect then
- break
- end
- end
- local on = false
- local n,n2 = 1,1
- game:GetService("UserInputService").InputBegan:Connect(function(k)
- if k.KeyCode == Enum.KeyCode.F5 then
- if on then
- on = false
- rem:FireServer()
- wait(.1)
- game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(ogcf)
- else
- ogcf = game.Players.LocalPlayer.Character.Head.CFrame
- rem:FireServer("Plane")
- wait(.1)
- on = true
- end
- elseif k.KeyCode == Enum.KeyCode.F6 then
- local co = workspace.Collectables:GetChildren()
- for _,v in pairs(co) do
- game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(v.CFrame)
- wait()
- end
- elseif k.KeyCode == Enum.KeyCode.F7 then
- spawn(function()
- roll:InvokeServer(n)
- end)
- n += 1
- if n > 14 then
- n = 1
- end
- end
- end)
- while wait() do
- local v = workspace["Air Race"].Airport:GetChildren()
- for _,v in pairs(v) do
- if on then
- rem:FireServer("Plane")
- wait(.1)
- v = v.Ring.TouchPart
- game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(v.CFrame)
- firetouchinterest(v,game.Players.LocalPlayer.Character.Head,0)
- rem:FireServer()
- wait(.1)
- end
- end
- end
- game.Players.LocalPlayer.Character.Head.Anchored = false