#In need of help with coding

1 messages · Page 1 of 1 (latest)

graceful viper
#

tool.Activated:Connect(function()
if weaponActivated == false then
weaponActivated = true
tool:ScaleTo(1.1)
weaponActivated = false
end
end)

why after 1 click it dosent work??

#

full script

vital perch
graceful viper
#

You mean the activate deactivate?

silk fractalBOT
#

studio** You are now Level 9! **studio

vital perch
#

you have 2 .Activated

graceful viper
#

ohhh

#

I changed it to that

#

but it didnt fix it

#

@vital perch

neat shuttle
#

is it a debounce

graceful viper
#

I know about boolians

#

but my thing is that

#

scaleto only works for 1 click

#

while the rest works fine

neat shuttle
graceful viper
#

only ScaleTo yes

neat shuttle
graceful viper
#

yes

#

I want the handle to get bigger with each click

neat shuttle
#

ohhh

#

ok so you're just assigning a set number everytime

#

so you would probably use an operator like this *=

graceful viper
#

ScaleTo *= 1.1

#

??

neat shuttle
#

no scaleto is a function

#

just change the scale property directly

graceful viper
#

oh yeah

#

how do apply then *= then??

neat shuttle
#

one sec

#

tool.Size.X *= number

#

same for Y and Z

graceful viper
#

don't I have to do the math. stuff

neat shuttle
graceful viper
#

ok wait lemme cook

#

I'll send in a moment

neat shuttle
#

not sure if you can do this but I would try

tool.Size *= (number, number, number)

graceful viper
#

Size isnt a thing sadly

#

wait I'm lost

#

oh wait what

neat shuttle
#

oh how about tool.handle.Size

graceful viper
#

size is a real thing

#

even tho it dosen't let me quick write it?

neat shuttle
#

you can say
tool:Tool = path

#

the :Tool lets the script know that the variable is supposed to be a Tool

graceful viper
#

I'm so lost

#

like ngl I did the tutorial step already but I just want to make it size up each time I press it

#

😭

neat shuttle
#

ok lemme make a script and send a video so you can see

graceful viper
#

ok

#

I could just screen share if you want

#

@neat shuttle

#

and you could tell me what to do

neat shuttle
#

bet

#

call me