[All I want to know is what would I put in the parameters for the :GetPlayerFromCharacter(), or what could I do to get the player]
Code(it is in a TextButton that is inside a Gui that is inside StarterGui):
function onClicked()
local p = game.Players:GetPlayerFromCharacter()
local t = script.Parent.Parent.Parent.Parent.Character.Torso
if p.TeamColor == "Bright bluish green" then
t.CFrame = game.Workspace.MiningTycoon.Tycoons.Diamond.Essentials.Spawn.CFrame
elseif p.TeamColor == "Really red" then
t.CFrame = game.Workspace.MiningTycoon.Tycoons.Ruby.Essentials.Spawn.CFrame
end
end
script.Parent.MouseButton1Down:connect(onClicked)

3 comments
Please can you accept this answer??
Is this what Scripting Helpers has become? A place that used to have good questions, a place that people only answer questions for reputation instead of for the sake of helping people's games? You can't only like the reputation, which is a title, and not want to do it for the other people. You asking for acceptance twice?
Sorry if it seems mean but, It's the truth, gotta do things the hard way. I lost 100+ reputation because of a guy named Jaja.