#i need help idk why it wont work

123 messages · Page 1 of 1 (latest)

spiral talon
#

you need say what even you want

quaint marten
#

can you make it work?

spiral talon
#

Local punch1 = script.punch/1 won’t even work

quaint marten
#

why?

spiral talon
quaint marten
#

to play a punch animation

spiral talon
quaint marten
spiral talon
quaint marten
#

let me try it

shy canopyBOT
#

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

spiral talon
#

Or I think it gonna use str divide str

quaint marten
#

nope

#

any other ideas i can try?

spiral talon
#

Does it give you an error code?

quaint marten
#

nope

spiral talon
#

Ok wait let’s me see

quaint marten
#

tysm btw

spiral talon
#

Add a print after Anim:play()

quaint marten
#

print?

spiral talon
#

Yes

#

Press Q in game

#

Then check F9

#

It will show you does script load animation

quaint marten
#

wait

#

think i found eror

#

when i click q nothing happens

#

punch is not a valid menber of localscript "players.myusername.Playerscripts.m1 attacks"

spiral talon
#

shy canopyBOT
#

studio** You are now Level 8! **studio

quaint marten
#

am i st upid?

spiral talon
#

You even not read the error log

quaint marten
#

stupid*

#

how do i read the eror log 😦

spiral talon
#

Uhhh

#

It will till u which script and which line

quaint marten
#

can i screen share?

spiral talon
#

Just screenshot I am not in home

quaint marten
#

ok

#

this right

spiral talon
#

No

#

You should have 4 box all ticked

quaint marten
shy canopyBOT
#

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

spiral talon
#

Did u add print?

quaint marten
#

idk whwat that means

spiral talon
#

What is the code you have rn

quaint marten
#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script.punch/1

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
end

end)

spiral talon
#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script.punch/1

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
    print(“Played”)
end

end)

#

Use this instead

quaint marten
spiral talon
#

When you press Q it should have Output Played in F9

quaint marten
#

its meant to be in starter player scripts right?

spiral talon
quaint marten
#

i did

spiral talon
#

Cuz I am on phone so you need type yourself not copy and paste

quaint marten
#

oh

#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script{"punch/1"}

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
    print("Played")
end

end)

spiral talon
#

Bruh

#

You does listen

quaint marten
#

😦

spiral talon
quaint marten
#

like that

spiral talon
quaint marten
#

let me check

#

yeah

#

i added what u said

#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script{"punch/1"}

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
    print("Played")
end

end)

spiral talon
#

Not{}

quaint marten
#

()

#

?

spiral talon
#

It should be []

quaint marten
#

[]

#

let me try rq

spiral talon
#

Any error?

quaint marten
#

YOOOOO

#

IT WORKS

#

TYSM

spiral talon
#

Np

quaint marten
#

NOW

spiral talon
#

Now you can remove print

quaint marten
#

aight

#

btw

#

how tf do i make it deal damage

#

lol

spiral talon
#

Easy

#

Add a bool under tool

quaint marten
#

"bool"

spiral talon
#

Yes

#

Search bool then you can find

quaint marten
#

on google?

spiral talon
#

No

quaint marten
#

i feel like a damage rn

#

dumbass

spiral talon
#

Press + under your script

#

And search bool

quaint marten
#

boolvalue?

shy canopyBOT
#

studio** You are now Level 3! **studio

spiral talon
#

Yes

quaint marten
#

ok

spiral talon
#

Then rename bool to isusing

quaint marten
#

aight

spiral talon
#

Better do no space and no cap

quaint marten
spiral talon
#

Ok

#

Now

quaint marten
#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script["punch/1"]

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
    print("Played")
end

end)

spiral talon
#

local rs = game.ReplicatedStorage
local ws = game.Workspace
local UIS = game:GetService("UserInputService")
local punch1 = script["punch/1"]

UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
script.isusing.Value = true
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

    local Anim = Humanoid:LoadAnimation(punch1)
    Anim:Play()
    script.isusing.Value = false
end

end)

#

You can copy and paste that

quaint marten
#

will it deal damage?

spiral talon
#

Not now, this set allow deal damage when swing

#

You need another script to deal damage

spiral talon
quaint marten
#

so what next?

spiral talon
#

Ok wait 5 mins

#

I just arrived home

#

Also mark this solved first

quaint marten
#

k

#

can i add you\

spiral talon
#

ok now i am on PC