More than two weeks ago, I tried to make a script whose task was to teleport the player who was activating ProximityPromt.
The task seemed simple as I usually do. Unfortunately, nothing worked in this case. There was also no error on the console.
script.Parent.ProximityPrompt.Triggered:Connect(function() local Players = game:GetService("Players") local Player = Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() Character:MoveTo(game.Workspace.LeaveHouseTeleport.Position) end)
I tried to fix everything from moving the script to server script and ending with a complete script change. Neither of these actions worked or generated further errors.
I also asked people on the dev forum, but they didn’t tell me anything specific, just asked to send the entire script, or they wrote the script from scratch, completely out of context, e.g. adding debounce, changing ProximityPromt to a UI button or something like that.
I’ve already done a similar script in the GUI and it worked without a problem. Now, however, difficulties have arisen.