so you probably did not understand the question but what I want to do is make a textbox, whatever you put in it is the rate of particles of a particle emmiter except im getting a string value so how do I do this????? ill show you a screenshot and my code
script.Parent.InputChanged:Connect(function()
string = script.Parent.Text
local hi = tonumber(string)
hi = game.Workspace.Particle.ParticleEmitter.Rate
end
end)
oh yeah and if I do this:
script.Parent.InputChanged:Connect(function()
string = script.Parent.Text
for numbers in string.gmatch(string,"%d") do
print(numbers)
game.Workspace.Particle.ParticleEmitter.Rate = numbers
end
end)
it can only go up to 9 if I put 10 it will think I put 1 and 0 please help

1 comment
Good for figuring it out!!