Hey There!
I have a script that should place something in your Backpack when you click the brick... However, it gives me a error. This is probably very wrong, because im kinda new to scripting. This is my script:
function onClick(Player)
wait(0.1)
Pizza = script.Parent.Parent:Clone()
Pizza.Parent = Player.Backpack
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
This is the error:
11:39:58.792 - Attempt to connect failed: Passed value is not a function
Help :D?
THX!
Planesoldier |