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

Script isn't working?

Asked by 10 years ago

So what this script is supposed to do is, when selected the bin is selected, a part will be created. And again, I have no errors in this script but the part won't be created. Oh and this is a local script inside the hopper bin. Script:

player = game.Players.LocalPlayer

script.Parent.Selected:connect(function(build)
    local l = Instance.new("Part")
    l.Name = "Wood"
    l.TopSurface = "Smooth"
    l.BottomSurface = "Smooth"
    l.Anchored = true
    l.Transparency = 0.4
    l.BrickColor = BrickColor.new("Brown")
end)

Answer this question