#can i get help im quite new and i dont understand what to do

87 messages · Page 1 of 1 (latest)

severe lava
#

please tell me how to fix this and not ruin the script

eternal wave
#

Check if the script has a child named animation

severe lava
#

alr

#

ye it says script.animation but idk if i should remove animation

eternal wave
#

Put the animation in replicated storage

severe lava
#

and also it would need an object

agile heronBOT
#

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

severe lava
#

alr

#

nope not working

#

its a fighting animation

split wharf
#

can you send a script and animation ID ?

severe lava
#

huh

#

ye ill send id

#

local plr = game.Players.LocalPlayer

local UIS = game:GetService("UserInputService")

local debounce = false
UIS.InputBegan:Connect(function(Input, IS)
if IS == true then return end

if Input.KeyCode == Enum.KeyCode.E then
    if debounce == true then return end
    debounce = true
    game.ReplicatedStorage.CombatHit:FireServer()
    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
    animation:Play()
    print("E key is pressed")
    wait(3)
    debounce = false
end

end)

#

thats the script

eternal wave
#

I Saw nothing error

split wharf
#

oh and i don't recommend playing animations on client

severe lava
#

rbxassetid://16764414702

split wharf
#
  • when it's fighting game
eternal wave
#

why

severe lava
#

ok i used a tutorial for it so i didnt know

split wharf
#

cuz only you will see animation

wise rivet
split wharf
#

yea?

wise rivet
#

animations replicates to the server

eternal wave
#

They Made it in local script

#

Bruh

split wharf
#

oh

#

mb then 💀

eternal wave
#

😭😭😭😭😭

severe lava
#

so can yall help?

eternal wave
#

did you change

#

The animation parent

severe lava
#

no i honestly dont understand any more rn

eternal wave
#

where you put the animation

severe lava
#

in combat skill so local script

#

starter pack

#

what should i do

eternal wave
#

move the animation

#

To workspace

severe lava
#

alr

#

done

#

the animation is meant to go on the player

split wharf
#
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local replicatedstorage = game:GetService("ReplicatedStorage")
local Punch = replicatedstorage:WaitForChild("CombatHit")
local UIS = game:GetService("UserInputService")

local debounce = false
UIS.InputBegan:Connect(function(Input, IS)
    if IS then return end

    if Input.KeyCode == Enum.KeyCode.E then
        if debounce then return end
        debounce = true
        Punch:FireServer()
        
        local anim = Instance.new("Animation")
        anim.AnimationId = "rbxassetid://16764414702"
        local animation = hum:LoadAnimation(anim)
        animation:Play()
        
        print("E key is pressed")
        task.wait(3)
        debounce = false
    end
end)
```?
eternal wave
#

change the

#

That also work

#

not newbie friendly

split wharf
#

and you can delete the anim object inside your script

split wharf
severe lava
#

I DONT UNDERSTAND THE WEIRD LANGUAGE U SPEAKING

agile heronBOT
#

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

eternal wave
#

What is IS

#

i just know input

wise rivet
#

IS is a game processed event that roblox sends when u r on chat things like that

eternal wave
#

istyping?

split wharf
#

bruh

wise rivet
#

to avoid pressing inputs when you're writing and things like that

wise rivet
severe lava
#

....

severe lava
#

ok

#

should i delete the script and put that

eternal wave
#

How i

split wharf
#

replace

severe lava
#

alr

eternal wave
#

Are there any documention of gameprocessedevent

severe lava
#

YES ITS WORKING

eternal wave
#

I search it up and it don't show up

severe lava
#

ATTEMPT MARRY ME

wise rivet
severe lava
#

can we be friends incase more problems

split wharf
severe lava
#

oh btw if i want should i do this

#

instead of e

split wharf
#

?

severe lava
#

nvm but if i were to change e to mb1 how would i

#

in the original script id think itll be like

#

if Input.UserInputType == Enum.UserInputType.MouseButton1 then

split wharf
#

yea

severe lava
#

where would i place it tho

split wharf
#

instead of this

severe lava
#

alr tysm

split wharf
#

👍

severe lava
#

it worked

split wharf
#

nice