Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Having troubles finding the Error i made within this script and doesn't print wow, Any help?

Asked by
oSyM8V3N 429 Moderation Voter
7 years ago
01local UIS = game:GetService("UserInputService")
02local p = game.Players.LocalPlayer
03chain = 0
04 
05--//Animations
06local combat1 = Instance.new("Animation")
08local animTrack1 = p.Character.Humanoid:LoadAnimation(combat1)
09--
10 
11 
12local function Combat(Input, gameProcessedEvent)
13    local KeyCode = Input.KeyCode
14 
15    if KeyCode == Enum.UserInputType.MouseButton1 and script.canAttack == true and chain == 0 then
View all 21 lines...

1 answer

Log in to vote
0
Answered by
imaski4 42
7 years ago

It looks fine, It could be that canAttack is false or maybe you can use classic mouse functions instead of UserInputService.

0
I found the problem, but this also works, so thank you oSyM8V3N 429 — 7y
0
KeyDown is deprecated. theCJarmy7 1293 — 7y
Ad

Answer this question