#Can you help me make a tool

60 messages · Page 1 of 1 (latest)

ornate salmon
#

I created an animation but I don't know how to use the tool, I wanted someone to help me, every time I click on the screen with the left button it does damage, I just want the player to only be able to do damage if they have the "Combat" tool in his hand, I also made an animation of him in the fighting position... could someone help me connect everything so that when the tool is in the player's hand he would do the "idle" animation and he could click on the screen and do damage, in this case start the fight..
-I'm Brazilian, I don't speak English well, sorry if I couldn't understand

#

Can you help me make a tool

errant pendant
#

Do you know how to look for something inside of a player's character?

ornate salmon
errant pendant
#

Bueno.

ornate salmon
errant pendant
#

¿Eh?

errant pendant
ornate salmon
# errant pendant Do you know how to look for something inside of a player's character?

local function verificarFerramentaEquipada(jogador)

local personagem = jogador.Character
if personagem then
    
    local ferramentaEquipada = personagem:FindFirstChildOfClass("Tool")

    
    if ferramentaEquipada then
        print(jogador.Name .. " possui uma ferramenta equipada!")
        
        print(jogador.Name .. " não possui uma ferramenta equipada.")
        
    end
end

end

game.Players.PlayerAdded:Connect(function(jogador)

verificarFerramentaEquipada(jogador)


jogador.CharacterAdded:Connect(function()
    verificarFerramentaEquipada(jogador)
end)

end)

#

esse script??

errant pendant
#

Espera.

ornate salmon
steep quailBOT
#

studio** You are now Level 1! **studio

ornate salmon
#

coloco a tool depois o localscript e depois combat e a animaçao idle?

ornate salmon
ornate salmon
ornate salmon
ornate salmon
#

deixa eu ja consegui

#

muito obrigado

errant pendant
#

Back.

errant pendant
ornate salmon
errant pendant
#

My bad, I walked away to be with my dog.

#

Glad you fixed it though.

#

Parabéns.

ornate salmon
#

muito obrigado pela ajudo

#

de verdade ajudou muito

#

usei esse scrpit

#

meio grande ksksk

errant pendant
#

I just know a few phrases and stuff

#

I'm learning though to make Brasilian friends

ornate salmon
steep quailBOT
#

studio** You are now Level 2! **studio

ornate salmon
errant pendant
ornate salmon
#

I wanted to start making a sword so I wanted more or less an inventory to equip and unequip

errant pendant
#

Yup, you can check how many tools a user has in their backpack and character, if it's more than 3 for example, then don't add any more tools.

#

Is that what you meant?

ornate salmon
#

SIM

errant pendant
ornate salmon
errant pendant
# ornate salmon

Show me the part in the script where you think this issue is happening.

ornate salmon
#

the worst of all is that I have no idea... I already had the script that made the animations when I clicked on the screen I attacked, I just combined it with the script that made

ornate salmon
errant pendant
#

Alright one second.

ornate salmon
errant pendant
#

Can we talk in Direct Messages?