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

Script errors help?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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 :)

Answer this question