I made a script that would play audio when "E" is pressed and I get this error whenever I load the game.
'end' expected (to close 'while' at line 8) near ''
Any ideas how to fix this? Here is the script
local Fireing = false
local IsEquipped = false
local Clicking = false
local MouseTarget = false
Mouse.KeyUp:connect(function(key) if key == "e" then
while IsEquipped == true do
if IsEquipped == true and Clicking==true then
game.Workspace.Sound:Play(821439273)
end

4 comments
Is this the whole script? If it is then, this isn't the script the error is coming from. It would come from line 113, but this script only has 26.
Sorry about that, edited it.
U need 2 ends at the bottom.
Now it says 'end' expected (to close 'if' at line 7) near ''