i have problems with this gui a lot so i will tell everything about it. i am making a warning gui when players coin leaderstats reach a certain amount and you use a toll to gain coins. I have a script in coins which fires a remote event which is in replicated storage and its picked up by this script. here are things you should know my gui is in starter gui all buttons have local scripts
game.ReplicatedStorage.coinsEvent.OnServerEvent:connect(function(player)
if player.leaderstats.coins.Value = player.Capacity.Value then
player.PlayerGui.Warning.Frame.Visible = true
end
end)
this part works but i think i should tell this because i think that server thinks that gui is not on from the server side so it dosent pick up when buttons in that gui are clicked cuz they are just on from client side. Anyways there are two buttons in the gui close and shop. My close script works so i will not mention it and here is the main problem
shop script
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
player.Character.Humanoid.CFrame = CFrame.new(--shop positions)
end)
this do not teleport the player when he clicks the button plz help

2 comments
use this explanation it's better @typhoon1421
also u didnt explain when he tried to move the humanoid which u couldnt!