this is the script:

function onChatted(msg, speaker) local source = string.lower(speaker.Name) msg = string.lower(msg)

if msg == ":sfrtgive" then
	local textBox = game.StarterGui.TextBox.TextBox
	textBox.Visible = true
textBox.Focused:Connect(function()
		print("Player opened the text box")
		local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(inputObject) if inputObject.UserInputType == Enum.UserInputType.Keyboard then local value = inputObject.KeyCode.Value if value == 13 then print(string.char(value):upper()) local playername = textBox.Text textBox.Visible = false game.Players.playername.leaderstats.Cash.Value = game.Players.playername.leaderstats.Cash.Value + 100000 game.Players.playername.leaderstats.Strength.Value = game.Players.playername.leaderstats.Strength.Value + 100000 game.Players.playername.leaderstats.Experience.Value = game.Players.playername.leaderstats.Experience.Value + 250000 end

end

end)

end)
		
	
end
end

2 comments

0

bro what the fuck happened to your lua block

0

iiMegabyteGaming, there's no need to swear. Also fix your code block.