local plr = game.Players.LocalPlayer local event = game.ReplicatedStorage.BuyEvent local item = script.Parent.Parent.SelectedItem.Value local price = script.Parent.Parent.ScrollingFrame:WaitForChild(item).Price.Value script.Parent.MouseButton1Click:Connect(function() if script.Parent.Text ~= "Owned" and game.ReplicatedStorage:WaitForChild(plr)[item].Value ~= true and plr.leaderstats.Money >= price then event:FireServer(item, price) script.Parent.Text = "Owned" end end)
any idea because I'm stumped
When you typed waitforchild it should have quotations around the name. Also you need to tell us what the error message was
Waitforchild("name")