You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Have the player be teleported on the Tycoon that the server has picked for them
What is the issue? The player isnt being teleported
What solutions have you tried so far? I’ve tried looking for people who had similar problems but It wasnt any help
function TycoonHandler.GiveTycoon(HumanoidRootPart)
local Selected_Tycoon = OpenTycoons[math.random(1, #OpenTycoons)]
for _, Physical_Tycoon in pairs(Tycoons) do
if Selected_Tycoon == Physical_Tycoon.Name then
repeat RunService.Heartbeat:Wait() until HumanoidRootPart
HumanoidRootPart.CFrame = workspace.Part.CFrame
TycoonInfos.TycoonInfos[Selected_Tycoon] = true
end
end
end