I'm trying to transfer a player to a new scene. I use a trigger with a function to press that trigger ("f" key). I then use a script for that trigger which is :
I change the sceneName with the new scene that I made but when I go into preview mode I get to the trigger and press f and nothing happens. I know I'm missing something.......Also it states on the core website that the transfer player feature doesn't work in preview mode or single player. So how am I suppose to test out my levels? Your insights are much appreciated.
---code to transfer player to a new scence---
local TRIGGER = script:GetCustomProperty("trigger"):WaitForObject()
-- Name of scene to transfer too
local sceneName = "Tutorial"
-- Transfer player when they overlap the trigger
function OnOverlap(trigger, other)
if other:IsA("Player") then