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

Why Doesn't This Work (2)?

Asked by 9 years ago

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)

0
Are there errors? What is the problem that it is having? We need more information . . . VariadicFunction 335 — 9y

Answer this question