So, sorry.. I'm not too good at scripting... I made a GUI that teleports a player to somewhere when they click it and don't know why it doesn't work..
function clicked (click)
local target = CFrame.new(189.87, 69.6, -216.3)
player = click.Parent:FindFirstChild("Torso")
player.CFrame = target
end
script.Parent.MouseButton1Click:connect(clicked)
AND, output said this when I clicked the GUI to test:
18:44:31.449 - Players.Player.PlayerGui.BattlefieldTeleportGUI.TextButton.:4: attempt to index local 'click' (a nil value) 18:44:31.451 - Stack Begin 18:44:31.453 - Script 'Players.Player.PlayerGui.BattlefieldTeleportGUI.TextButton.', Line 4 18:44:31.454 - Stack End

2 comments
Ok, I'll try it....
worked