#Need help with combining scripts

1 messages · Page 1 of 1 (latest)

lusty zodiac
#

Using debouncing and the tool.Activated connection could fix it

vagrant talon
#

could you just use for i and decrease transparency

vivid kettle
#

i dont know how to code

vivid kettle
lusty zodiac
#

you can connect tool.Activated to a function and it will be called when the player activates the tool (left click on pc and touch on mobile), the tool in this case is the sword

#

debouncing is basically cooldown

#
local debounce = false

if debounce == false then
    debounce = true
    task.wait(5)
    debounce = false
end
lusty zodiac
#

if there is a debounce the if statement wont go through but if there isnt it will make one and wait 5 seconds before removing it

#

essentially creating a cooldown effect

vivid kettle
#

my brain goes boom

lusty zodiac
#

Do you have prior experience coding or is lua-u roblox your first?

vivid kettle
#

i dont know how to code

#

i dont even understand anything in it

lusty zodiac
#

When did you start?

vivid kettle
#

when did i start creating games?

lusty zodiac
#

Coding

vivid kettle
#

never

#

nothing of this tool is mine

#

except model

lusty zodiac
#

I recommend you watch some beginner tutorials on lua/roblox and once you get comfortable with it, start making more, and more advanced stuff and break down all the things you need for that thing into small parts and research all those things and how to use them, that's basically how I did it.

vivid kettle
#

damn

lusty zodiac
#

First, you need to learn the basics of luau (a version of lua that roblox uses)

#

And then how roblox studio works, and how instances work

#

You could learn those at the same time if you want

#
vivid kettle
#

well i need to learn english first

#

but ill try

lusty zodiac
#

Don't worry, everyone starts somewhere and the beginning is usually the hardest so remember to never give up.

#

good luck