Short and simple. The title is the error code I get when I hover over the “ends”
local menu = game.StarterGui:WaitForChild("Menu")
local blur = game.Lighting:WaitForChild("MainMenuBlur")
local color = game.Lighting:WaitForChild("MainMenuColor")
local menuToggle = game.ReplicatedStorage:WaitForChild("MenuToggle")
local playerMod = require(game:GetService("Players").LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local controls = playerMod:GetControls()
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.M then
menuToggle:PropertyChangedSignal("Value"):Connect(function()
if menuToggle.Value == true then
print("true")
else
print("false")
end
end
end)
I’ve tried so many different combinations of “ends”, but it just keeps giving me issues. What did I do wrong?