#can i get help im quite new and i dont understand what to do
87 messages · Page 1 of 1 (latest)
Check if the script has a child named animation
Put the animation in replicated storage
and also it would need an object
** You are now Level 1! **
can you send a script and animation ID ?
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
I Saw nothing error
oh and i don't recommend playing animations on client
rbxassetid://16764414702
- when it's fighting game
why
ok i used a tutorial for it so i didnt know
cuz only you will see animation
no
yea?
animations replicates to the server
Explain the roblox goofy walking animation
They Made it in local script
Bruh
😭😭😭😭😭
so can yall help?
no i honestly dont understand any more rn
where you put the animation
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)
```?
and you can delete the anim object inside your script
i can add comments 🙂
I DONT UNDERSTAND THE WEIRD LANGUAGE U SPEAKING
** You are now Level 2! **
IS is a game processed event that roblox sends when u r on chat things like that
istyping?
bruh
to avoid pressing inputs when you're writing and things like that
no, it would be gPE but idk that name lol
....
@severe lava try this
How i
replace
alr
Are there any documention of gameprocessedevent
maybe
YES ITS WORKING
I search it up and it don't show up
ATTEMPT MARRY ME
can we be friends incase more problems
nice
?
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
yea
where would i place it tho
instead of this
alr tysm
👍
it worked
nice