Anyone know why this part creating button won't work?

im trying to make a button creates a part but i don’t know why this won’t work any suggestions?

Mistypo? Lua is case-sensitive, so it doesn’t detect instance as a valid member but Instance is

local Player = game.Players.LocalPlayer
local Button = script.Parent

Button.MouseButton1Click:Connect(function()
    local Part = Instance.new("Part")
    Part.Parent = workspace
end)
1 Like

yeah i forgot that but it still isn’t working thank you though i would of been in even more of a mess lol and thanks for the super quick reply

Alright then, let me ask this :thinking:

  • Where is this LocalScript located?

  • Are there any errors on your Output tab at all? (If you don’t know where it is, head to View > Output on your top screen)

Never mind! you fixed it after mixing things around i realised part wasn’t capitalised and it now works! thank you so much im only new to insatnce.nwew and im really happy with what i just made thank you!!!

1 Like