I have tried to make a script that works in a GUI text box but I cannot seem to do it because I just recently started coding. Please tell me where to put the new script and here is a script I tried to code. Edit: The "RopeConstraint" is located in the tool and the default length is 8 and please tell me what type of script to put it in.
function type()
local player = game.Players.LocalPlayer
local target
wait(Random)
game.Workspace.Localplayer.FishingRod.RopeConstraint.Length = Parent.Text.Value
end

2 comments
If Parent.Text.Value isn't a numbervalue but a textbox you should use Parent.Text.Text
Thanks Derzett. I will try that out.