So I have a LocalScript in the starter pack. And its child is a sound, named sound. In Roblox Studio, line 6 gets underlined in blue. I have no idea what's wrong with it. Help?
local k = game.Players.LocalPlayer.Name
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key:byte() == 32 and
game.Workspace[k].Humanoid.JumpPower == 125 then
script.Sound:Play()
game.Workspace[k].Humanoid.JumpPower = 0
script.Disabled = true
end
end)

1 comment
Note: Always indent your code. It makes it easier to read and debug.