Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a team name change with a click of a gui?

Heres my code I can't figure out why its not working I tried different variartions and its not working anyone can help.

local t = game.Teams.Home

function onLeftClick()
	t.Name = Away
end

1 comment

0

you forgot the most important part! lets add it..

2 answers

✓ Accepted answer

#you dropped something, sir.

local t = game.Teams.Home

function onLeftClick()
    t.Name = Away
end

script.Parent.MouseButton1Click:Connect(onLeftClick)--you dropped this, sir.

1 comment

1

thank you

  1. You need to be patient, you posted a chat message at 3:57 PM EST, not even a minute after posting and said "anyone?" like you were waiting two weeks. Be patent.
  2. You need to make it so when you click the button that you call the function.

1 comment

0

hi can you help me again i need help cuz i stuck on something

This discussion is preserved as it was. New answers, comments, and votes are closed.