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

MouseButton1Click Script team thing?

Asked by 3 years ago

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)

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 elijahhtown -22 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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.

Ad

Answer this question