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
60 messages · Page 1 of 1 (latest)
Você fala espanhol?
Not sure how far your understanding of English is, but I'll try my best.
For you to detect if a player has the tool currently in their hand is by looking inside of their character.
Do you know how to look for something inside of a player's character?
un poco es un lenguaje fácil de entender
Bueno.
¿Me entiendes?
mas o menos
si sin ningun problema
¿Eh?
¿Sí?
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??
Espera.
Sí.
mas eu crio um novo local script?
** You are now Level 1! **
coloco a tool depois o localscript e depois combat e a animaçao idle?
??
eu queria so quando eu equipasse o "Combat" eu desse dano e fissese essa animação
poderia me ajudar eu começei a pouco tempo
Back.
Are you still here?
Yes I am, I managed to fix it, I did it another way
muito obrigado pela ajudo
de verdade ajudou muito
usei esse scrpit
meio grande ksksk
I'm not that fluent in Portuguese lol
I just know a few phrases and stuff
I'm learning though to make Brasilian friends
Thank you very much for your help, I used that script, I modified it a little because it wasn't working
** You are now Level 2! **
Ah, okay.
De nada.
what a cool guy

Hey, do you know if there is any inventory model or template?
I wanted to start making a sword so I wanted more or less an inventory to equip and unequip
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?
SIM
there was a problem, the animations are buggy
Show me the script
Show me the part in the script where you think this issue is happening.
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
I start normally, not even a buggy animation, but when I stay in the game for a little while, like 5 minutes, I start to jump and get thrown away
Alright one second.
That's exactly when I hold "combat"
Can we talk in Direct Messages?