So the script worked fine before I made the game FE. Does anyone know why it doesn't work anymore? I'm using a LocalScript for this by the way.
Thanks
guiClose = true
gamepassid=114227218
player = game.Players.LocalPlayer
torso = game.Players.LocalPlayer.Character.Torso
function onClicked()
if game:GetService("GamePassService"):PlayerHasPass(player, gamepassid) then
torso.CFrame = CFrame.new(Vector3.new(-8.788, 11.54, -18.071))
end
else
guiClose = true
script.Parent:FindFirstChild("ClickSound"):Play()
if game:GetService("GamePassService"):PlayerHasPass(player, gamepassid) then
torso.CFrame = CFrame.new(Vector3.new(-55.788, 11.54, -18.071))
end
end
end
script.Parent.MouseButton1Down:connect(onClicked)

1 comment
I believe it is due to line 4, where you are referring to the player's character, something which is not allowed with FE on. When FE is enabled, LocalScripts are not allowed to touch the workspace or any of its children