I put this in a normal Script, here's the layout: http://prntscr.com/5uy02p (Image)

function Click(mouse)
	if game:GetService("MarketplaceService"):PlayerOwnsAsset(script.Parent.Parent.Parent.Parent.Parent,0) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright green")
end


script.Parent.MouseButton1Down:connect(Click)

wait (0.5)

function onButtonClicked()
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

1 comment

0

Are there errors? What is the problem that it is having? We need more information . . .