Trying to make a gui where you can change the size of the particles
this is the script of the button. it gets the size value from textbox
what went wrong?
wait(2)
local box = script.Parent.Parent.TextBox
local var = 0
function onClicked()
local num=(tonumber(box.Text)or 1)-1
wait()
game.Players.LocalPlayer.Character.Torso.ParticleEmitter.Size = num
end
script.Parent.MouseButton1Click:connect(onClicked) |