#could anyone tell me why this script doesnt change my team upon click?

1 messages · Page 1 of 1 (latest)

worn flame
gloomy bane
#

You need to close brackets at the end

#

Put end)

worn flame
# gloomy bane Put end)

like this? - script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark blue")
end)

#

doesnt work, anymore fixes?

gloomy bane
#

It’s strange :Connect should be yellow

#

Perhaps you don’t have a click detector on your button

worn flame
#

but its a button

#

didnt work tho

warm summit
# worn flame

pretty sure it should be script.parent.MouseButtonClick:Connect(function())

warm summit
#

so:
script.parent.MouseButtonClick:Connect(function()
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark blue")
end)

worn flame
#

that didnt work

#

would that script be enough tp change a team, btw

warm summit
#

send a ss of it after the altering

worn flame
warm summit
#

honestly though, i would make a new variable instead of doing script,parent.parent

worn flame
tawdry pondBOT
#

studio** You are now Level 2! **studio

warm summit
#

hmm

worn flame
warm summit
#

so is that TeamColor a part inside the workspace?

worn flame
#

ive been following tuts so im not sure, however, i dont see it there

warm summit
#

then it probably wont work

#

ask the ai assistant whats wrong in the studio, its in the top right corner

worn flame
#

alright, thanks

#

it says "internal server error"

#

wait

#

the ai cooked!!!

#

tysm

warm summit
#

np, defo use that but try to write some of the code yourself too, good luck!

worn flame
#

i will, thank you!

languid jasper
#

I think ik the issue