RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"improve the 'Istyping' code"
-- local script UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then if UserInputService:GetFocusedTextBox() then return else game.ReplicatedStorage.RespawnRequest:FireServer() for i = 0.05, 0, -0.01 do soundAFL.Volume = i task.wait(0.1) end soundAFL:Stop() script.Parent.Enabled = false buttonS.Visible = false StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true) StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true) redeploytext.Position = rePosOrigin canRespawn = false return false end end end)