Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago

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
0
you forgot the most important part! lets add it.. speedyfox66 237 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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
thank you KronxGoat 50 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
  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.
0
hi can you help me again i need help cuz i stuck on something speedyfox66 237 — 4y

Answer this question