i have a gui that is supposed to give me an item called good build which is in ReplicatedStorage. Can you point out whats wrong here? I looked, and couldn't find anything.
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textButton = Instance.new("TextButton")
textButton.Parent = screenGui
textButton.Position = UDim2.new(0, 300, 0, 650)
textButton.Size = UDim2.new(0, 150, 0, 100)
textButton.BackgroundColor3 = BrickColor.White().Color
textButton.Style = 3
textButton.Text = "builder"
textButton.MouseButton1Down:connect(function()
end)
if not game.Players.LocalPlayer.Backpack:FindFirstChild("good build") then
print("Giving "..game.Players.LocalPlayer.Name.." the builder.")
good = game.ReplicatedStorage:FindFirstChild("good build"):Clone()
good = good_build.Parent = game.Players.LocalPlayer.Backpack
elseif game.Players.LocalPlayer:FindFirstChild("good build") then
print(game.Players.LocalPlayer.Name.." You dont need it.")
end

1 comment
Is this a LocalScript? It needs to be. Also, put your code inside the function, not outside of it.