Tried Making a WS speed script for my admin commands i using a string it does not work i dont see a error in the output what did i wrong?

local function GetWalkSpeed() --[2] Adds Walkspeed To The Player
	if string.split(TextBox.text,"")[1] == "WS" then
		local speed = string.split(TextBox.Text, "")[2]
		 Plr.Humanoid.WalkSpeed = speed
	end
end

3 comments

0

The script thinks you want walkspeed to have WS in it which is invalid

0

If im sure im right but this is such a small script so its kinda confusing

0

I might not be right*