- local RunService = game:GetService("RunService")
- local function teleportToCrate()
- local cashCrate = game:GetService("Workspace").Crates.CashCrate
- local goldCrate = game:GetService("Workspace").Crates.GoldCrate
- if cashCrate then
- game.Players.LocalPlayer.Character:MoveTo(cashCrate.Position)
- end
- if goldCrate then
- game.Players.LocalPlayer.Character:MoveTo(goldCrate.Position)
- end
- end
- RunService.Heartbeat:Connect(teleportToCrate)
Recent Pastes