So i made a script that sells items and its a hopper bin it sells stuff you place down only and i have a string value inside the thing that you place down which is the owner's name this script will test if the owner name is the same thing as the players. This script is also a local script and a part of a script.
elseif mouse.Target.Parent.OwnerName.Value == game.Players.LocalPlayer.Name then mouse.Target.Parent.Parent:Destroy() r = script.Parent.Sound:Clone() r.Script.Disabled = false r.Parent = workspace game.Players.LocalPlayer.leaderstats.Gold.Value = game.Players.LocalPlayer.leaderstats.Gold.Value + 75 -- don't answer with there's no end or elseif is suppost to be if. Its a part of a script :)