I'm trying to make a script that freezes the player if the intro is still active. But humanoid is underline, and there is no signs of errors in the box.
local PlayerName = game.Players.LocalPlayer.Name
if game.Players.LocalPlayer.PlayerGui.ScreenGui.Main.Visible == true then
game.Workspace[""..PlayerName..""]Humanoid.WalkSpeed.Value = 0
else game.Workspace[""..PlayerName..""]Humanoid.WalkSpeed.Value = 16
end

1 comment
You need a . after the bracket, and there is no need for the "".. ..""