it keeps saying 11:49:10.771 - Players.09Chicken_Master.Backpack.Cheese.LocalScript:6: attempt to index nil with 'Remotes'

with the top script what do i do?

local module = {} local ReplicatedStorage = game:GetService("ReplicatedStorage")

function module.Lift()

ReplicatedStorage.Remote.Lift:FireServer()	

end

return module

and this script will say 11:49:06.237 - Players.09Chicken_Master.PlayerGui.Main.LocalScript:40: Expected identifier when parsing expression, got ')' that script is on the bottem

local starterRebirthAmount = 5000

local player = game.Players.LocalPlayer local mainFrame = script.Parent:WaitForChild("MainFrame") local rebirthMenu = mainFrame:WaitForChild("RebirthMenu") local mainButton = script.Parent:WaitForChild("MainButton") local rebirthButton = rebirthMenu:WaitForChild("RebirthButton") local strengthToRebirth = rebirthMenu:WaitForChild("StrengthToRebirth") local rebirths = player:WaitForChild("leaderstats").Rebirths

strengthToRebirth.Text = "You Need At Least "..Math.floor((starterRebirthAmount + (rebirths.Value)* math.sqrt(500000))).. " Strength to rebirth"

mainButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end)

rebirthButton.MouseButton1Click:Connect(function() local result = replicatedStorage.Remotes.Rebirth:InvokeServer()

if result == true then
	
	rebirthbuton.Text = "You Are A New Man(Or Woman)"
	wait(1)
	rebirthButton.Text = "CLICK HERE TO REBIRTH"
	elseif result == "Get Cheeze"then
	rebirthButton.Text = "Get Sum Cheese"
	wait(1)
	rebirthButton.Text "CLICK HERE TO REBIRTH"
	
end

end)

rebirths:GetPropertyChangedSignal("Value"):Connect(function()

strengthToRebirth.Text = "You Need At Least "..Math.floor((starterRebirthAmount)) + (rebirths.Value)* math.sqrt(500000)))).. " Strength to rebirth"

1 comment

0

Please format your code correctly