I’m not really sure what to say other than I don’t know how I’m going to do this.
I’m just trying to make it so after using a proximity prompt it moves the player to the Cframe of a part in workspace through a server script.
Here is my code, I have also annotated what I have tried:
local Part = script.Parent.Parent
local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:connect(function(Player)
local currency2 = Player:WaitForChild("leaderstats"):WaitForChild("Macopoly Tickets")
if currency2.Value >= 20 then
currency2.Value -= 20
--Player.Character.Torso.Position = game.Workspace.TP.CFrame
end
end)
If you need additional information or if something doesn’t make sense, let me know.
Thanks!