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

MouseButton1Click Script team thing?

MouseButton1Click is not a valid member of ImageLabel "Players.DisasterHotelGiant.PlayerGui.ChooseJob.ChooseJob.Chooser.Choose.Frame.ImageLabel" Suçlu Team? this does not work!! send help!!!

local player = script.Parent.Parent.Parent.Parent.Parent script.Parent.MouseButton1Click:connect(function() player.Team = game.Teams:FindFirstChild("Suçlu") player.Character.Humanoid.Health = 0 end)

1 comment

0

Try this Script function Click(mouse) if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(0000) then --Replace '000000' with your Groups ID. script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Color") --Change this to whatever Team Colour the DEFENDING Team is. Get Caps right. end end script.Parent.MouseButton1Click:connect(Click)  | And If you need a On Click Respawn Take Thi

1 answer

It's exactly as it says, MouseButton1Click is not a valid member of ImageLabel. Did you mean to use an ImageButton? A label is just a label, it cannot be clicked, but you can click a button.

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