I have a play button on my ROBLOX game, this is the code so far...
local function OnClick()
script.Parent.Parent:Remove()
end
script.Parent.MouseButton1Click:connect(OnClick)
and that works, but after they click it, I want to teleport them and refresh their character. (code below)
game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(422.054, 830.4, 645.525))
game.Players.PlayerAdded:connect(function(player)
wait(1)
player:LoadCharacter()
end)
I'm unsure how to combine this, please help.

1 comment
It is not ConvertToCFrame, it is CFrame.new. Treat it like Vector3. https://scriptinghelpers.org/questions/47938/how-do-i-make-a-randomizer-with-different-levels-of-rarity-and-then-teleport-meshparts-using-it#48371