#i really need help :(
661 messages Β· Page 1 of 1 (latest)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local UIS = game:GetService("UserInputService")
local debounce = false
UIS.InputBegan:Connect(function(Input, IS)
if IS then return end
if debounce then return end
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
debounce = true
game.ReplicatedStorage.Unarmed:FireServer()
local animation = script:WaitForChild("Attack1")
local track = humanoid:LoadAnimation(animation)
track:Play()
print("F")
humanoid.WalkSpeed = 5
humanoid.JumpPower = 0
wait(.5)
humanoid.JumpPower = 50
humanoid.WalkSpeed = 16
debounce = false
end
end)``` local player script
local punch1 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1.Attack1)
print("playere")
local punch2 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1["Attack 3"])
local canDamage = false
m1count = 0
if m1count == 0 then
punch1:Play()
end
if m1count > 0 then
punch2:Play()
m1count = 3
end
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
m1count = 1
wait()
end
end
end)
end)
``` combat server script
i tried making a m1count var but it doesnt work
u need the animation of m1
@left scroll better use a combo as debounce
and do animation depending on what combo u have
attritubtes time
local Animation = Humanoid:LoadAnimation(Animations[Combo])```
attack3 is animation object
if combo is 1
it will play attack1
if combo is 2
it will play attack2
and so on
how u colourize
it doesnt colourize mine π¦
so i just delete the m1 count var?
just all white text
yup
just use combo
much better for handling later on
alright i am a little confused on how do i implement it into my code
make a global variable called combo
nerds
zzz
get this s0 outta here π£οΈ
on each call
dark pissname
ok mr.idontknowtables
how do i make it reset after 3 times
then make it equal 0 again
then set combo to 0 on the global variable at the top
and then inside the onserver event
if combo == 3 then
combo = 0
end
π€―
damn
stop talking hoss is teaching π
combo = combo == 3 and 0 or combo
im tryna give bro basic help π
easier
π
dont listen to this fraud
stfu yall shit
in the local script when i do the remote call?
or at start of the server script
start of server
why am i so dumb
and declare the variable in local?
or it doesnt matter
i am so confused rn that its actually crazy
take ur time to absorb the knowledge
do i make a function called combo with punch 1 and punch 2o r what
nice
local Combo = 0
game.ReplicatedStorage.Unarmed.OnServerEvent:Connect(function(player)
if Combo >= 3 then
Combo = 0
end
Combo += 1
local Animation = player.Character.Humanoid:LoadAnimation(Folder:GetChildren()[Combo])
Animation:Play()
local canDamage = false
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
m1count = 1
wait()
end
end
end)
end)```
i knew it
u sellout i knew youd just retype it
IM HERE TO HELP
average s2
begone demons
dawg
OH
he needed help to make it work π
who tf r u
let him get it out the mud
soft hands
nah id win
@left scroll make sure u have enough animations to fulfill a combo
otherwise it will error
yeah i do
im a university graduate with 69 phds in computer science, and you? π€
fuck off
no
im gonna touch u
proof
restraining order
WJAT
did we do that code just after remote event just so it starts immidetely ?
reverse it
MY MESSAGE GOT BLOCKED??
yup
and i made combo at the top
so combo doesnt reset on each call
so the combo variable will always stay
so when u call it again next time
ahhh
it wont start from 0
@left scroll Does it all make sense now?
it will start from whaterver it was last time
yep
so if last time left at 1
π
actually
i put all the animation locations instead of the Folder thing right
or i am too dumb
π
combo = combo == 3 and 0 or combo + 1
oh yay i got one thing correct
instead of using your goofy ass if statmenet
i am eating a full course meal on my bed because im depressed
if statement is more readable
would prefer that
π
Why are we harassing bros scripting help 
i do
tell em π£οΈ
no one gives a shit
i am ayoon supporter
ok s2s
local Animations = {
Asset.Animations["Tool Related"]["Dagger Anims"]["1"],
Asset.Animations["Tool Related"]["Dagger Anims"]["2"],
Asset.Animations["Tool Related"]["Dagger Anims"]["3"],
Asset.Animations["Tool Related"]["Dagger Anims"]["4"],
Asset.Animations["Tool Related"]["Dagger Anims"]["5"],
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])```
thats why yall s2
say it louder π£οΈ
when i used c# MY BASIC MOVEMENT SCRIPT HAD 120 LINES IN UNITY
i hate lines π
Ayoon supermacy
ok piss name
π
UR NAME IS LITERALLY PISS IF IT HAD DIABETES
GIF STEALER
@left scroll Make sure to thank hoss the least fraudelent s2
ok chat i am too dumb to figure out how do i make it so it knows what animation to play at what combo value
god should have given me some brain
s2??
@compact gate ty btw
the voices in my head while scripting
use this
local Animations = {
Asset.Animations["Tool Related"]["Dagger Anims"]["1"],
Asset.Animations["Tool Related"]["Dagger Anims"]["2"],
Asset.Animations["Tool Related"]["Dagger Anims"]["3"],
Asset.Animations["Tool Related"]["Dagger Anims"]["4"],
Asset.Animations["Tool Related"]["Dagger Anims"]["5"],
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])```
this will play it so combo 1 plays animation 1
combo 2 plays animation 2
tf is Asset. tho
1 2 3 4 5 for me is animation name
like what does it do?
π
I AM DUMB YK
I should sotp bullying marinated piss names
@novel lantern stop stalking
look at your name
after all i look like piss name hydrated
π
yes i can tell
i can just remove the tool related and dagger anims right
hoss has bloody diarheaa shit name
yes
thats ok
blocked
it isnt
STARTERPACK HAS A WHOLE DIFF USE
ion really give a shit
he does what he wants
kaalki is a exploiter victim
LET BRO

LET ME COOK
ong
tell em hoss π£οΈ
LET BRO DISCOVER THE VOICES
QUIT SCRIPTING
FRIEREN TALK YO SHI π₯
OH NAH
π£οΈ
frieren ur gonna be new citrus if u dont stfu
BRO IS DEMOTIVATING π£οΈ
imagine asking for help
@cursive lynx did u see this
π«΅π€£
real [dont leak my convos]
what
im s4 but my rank has been taken away.
bojji?
π§»
he got banned?
im a hidden s3
same
if Combo >= 3 then
Combo = 0
local Unarmed = game.StarterPack.Unarmed1
local Animations = {
Unarmed.Attack1.Animations["1"],
Unarmed.Attack1.Animations["2"],
Unarmed.Parent.Melee1.Kick.Animations["3"],
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])```
IM SUPPROTNG U KID
shall this work
i am sorry but
*supporting
im fast typing
u forgot an end here
LMAO
dumbass
boiji down bad
rest is good yes
wrong gif
did bojji get banned
i ended it after
yea
local unarmed
wqait why
he was abusing mods
and now bojjji?
HE HAD MOD?
mods r strict
define combo at the top
my bad my bad
at the very very top
it is defined
i am sending partial screenshots lol
Im five seconds before i start laughing
the red line doesnt say so
global vars
its meant to be local?
someone said it has to be global π
oh yea what happened to boji
global variabls use alot of memory
local^
kaalki
0.0000007 memory
pls stfu i have autocorrect
LOL
i have chicken dip
LMFAO
that was a fake alugh
i am vegetarian!
define humanoid
im getting u banned
nu uh!
its defined later
@left scroll local Humanoid = Combo.Humanoid.Health
this
yw
the script works like this
its defined later π€
at the botto
i think bro thinks the script works like this β¬οΈ
the voices in his head
no i thought humanoid is defined
π
u said its defined later
which means u said it was defined at the bottom
W skin colors or am i gonna be cancelled
π«΅πΉ
@cursive lynx
L
no black color you are racist!
why
theres black
i thought its defined after me declaring combo
thats brown
ok idc
you racist guy
define it
ok @hybrid linden ur helping him
ok
im going back to scripting furries
@left scroll show code
die (in minecraft)
game.ReplicatedStorage.Unarmed.OnServerEvent:Connect(function(player)
if Combo >= 3 then
Combo = 0
end
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local Unarmed = game.StarterPack.Unarmed1
local Animations = {
Unarmed.Attack1["1"],
Unarmed.Attack1["2"],
Unarmed.Parent.Melee1.Kick["3"],
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])
local punch1 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1.Attack1)
print("playere")
local punch2 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1["Attack 3"])
local canDamage = false
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
m1count = 1
wait()
end
end
end)
end)
ok try it
in minecraft
TRY IT NOW
17:21:30.648 Players.Robloxfan000098.Backpack.Melee1:18: Incomplete statement: expected assignment or a function call - Studio - Melee1:18
WHERES LINE EIGHTEEN
ok fix it
done i had sssaufnsu typed in there randomly for some reason
probably me raging
17:23:12.769 ServerScriptService.CombatServer:10: attempt to index nil with 'Character' - Server - CombatServer:10
no
why does
hey
a server script
dont speak to him like that piss boy
um
ask reverse
reverse its true that server scripts need to be local
right
π
ok he saying yes in his spirtural body
i mean like
the problem SHOULD be
before hoss comes back and gets mad at me
try local character = workspace:WaitForChild(player.name)
QUICK
BEFORE HOSS FINDS OUT WHAT I DID
i wonder what you did but ok
name is null
π
i am quite sure local player isnt meant to work
on a non local scipt
isnt that what i said earlier
local player no exist here
i was asking for a local player substitute
i aint read allat
yeah sadly
SCREECHES
ReverseDat ur scirpting licesne is tgetting taken away
sending it to hoss too
-- Put the rest of script in this
end)```
π
no
wait
OMG
WAIt
I JUST READ THE SCRIPT FOR THE FIRS TTIME
kinda weird u aint define the remoteevent
all good tho
delete local player line
@left scroll
delete this shit
remove player from the script
PLEASe
ur not even s1
@brisk acorn revoke his rank pls
πΏ
what is null @left scroll
loadanimation
is nil
π
local Combo = 0
game.ReplicatedStorage.Unarmed.OnServerEvent:Connect(function(player)
if Combo >= 3 then
Combo = 0
end
local character = workspace:FindFirstChild(player.name)
local humanoid = character:WaitForChild("Humanoid")
local Unarmed = game.StarterPack.Unarmed1
local Animations = {
Unarmed.Attack1,
Unarmed.Attack3,
Unarmed.Parent.Melee1.Kick,
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])
local punch1 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1.Attack1)
print("playere")
local punch2 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1["Attack 3"])
local canDamage = false
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
m1count = 1
wait()
end
end
end)
end)
end )````
(i removed [1] [2] as it was null)
yeah ofc
hoss u fraud
works?
that was obvious to a monkey brain like me too
delete these 2
17:32:30.426 ServerScriptService.CombatServer:18: attempt to index nil with 'LoadAnimation' - Server - CombatServer:18
u dont need them
oh right
humanoid isnt defined
local Combo = 0
game.ReplicatedStorage.Unarmed.OnServerEvent:Connect(function(player)
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
if Combo >= 3 then
Combo = 0
end
local Unarmed = game.StarterPack.Unarmed1
local Animations = {
Unarmed.Attack1,
Unarmed.Attack3,
Unarmed.Parent.Melee1.Kick,
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])
local punch1 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1.Attack1)
print("playere")
local punch2 = player.Character.Humanoid:LoadAnimation(game.StarterPack.Unarmed1["Attack 3"])
local canDamage = false
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
wait()
end
end
end)
end)
@left scroll
they are trolling u
what were the changes
" 17:35:12.933 LoadAnimation requires an Animation object - Server - CombatServer:18"
deletd a variable we dont use
it wasnt needed?
still yapping here
after what
wdym
wait
is my local script causing problems
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local UIS = game:GetService("UserInputService")
local debounce = false
UIS.InputBegan:Connect(function(Input, IS)
if IS then return end
if debounce then return end
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
debounce = true
game.ReplicatedStorage.Unarmed:FireServer()
local animation = script:WaitForChild("Attack1")
local track = humanoid:LoadAnimation(animation)
track:Play()
print("F")
humanoid.WalkSpeed = 5
humanoid.JumpPower = 0
wait(.5)
humanoid.JumpPower = 50
humanoid.WalkSpeed = 16
debounce = false
end
end)```
as it does play the attack1 animation
on left click
that might actually be a problemo
now try
i got 2 errrors
" 17:38:00.049 OnServerEvent can only be used on the server - Client - Melee1:2"
" 17:38:00.717 LoadAnimation requires an Animation object - Server - CombatServer:18"
show me this
why do u have
on server event
on client
π
take pics of whole studio
wtf
he prolly meant to do onclientevent
u tell me
yo that player case sensitive
thanks
fixed that
@compact gate
it still says load animation needs a animation object
17:44:29.330 LoadAnimation requires an Animation object - Server - CombatServer:16
@void nexus
sure
which one of them will go first?
kick attack3 attack1
or what
kick is also used for heavy attack
and the animation plays perfectly in that
@void nexus
no animation works from that script
kick does work from another script tho
i am so annoyed by this probblem
game.ReplicatedStorage.Unarmed.OnServerEvent:Connect(function(player)
local Character = player.Character
local Humanoid = Character:WaitForChild("Humanoid")
if Combo >= 3 then
Combo = 0
end
local Unarmed = game.StarterPack.Unarmed1
local Animations = {
Unarmed.Attack1,
Unarmed.Attack3,
Unarmed.Parent.Melee1.Kick,
}
local Animation = Humanoid:LoadAnimation(Animations[Combo])
print("playere")
local canDamage = false
local hitbox = Instance.new("Part")
hitbox.Transparency = 1
hitbox.Parent = workspace
hitbox.Anchored = true
print("yes")
hitbox.CanCollide = false
hitbox.Shape = Enum.PartType.Block
hitbox.Size = Vector3.new (10,10,10)
hitbox.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-5)
game.Debris:AddItem(hitbox,2)
local Hits = {}
hitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent:FindFirstChild(player.Name) then
if Hits[hit.Parent.Name] then
return
end
Hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
print("damage")
task.wait(.5)
Hits[hit.Parent.Name] = false
wait()
end
end
end)
end)``` current code
counter?
** You are now Level 9! **
yeah
u know
the thing that increases the counter number
so it cycles through the animations
also
i have one question
ye
where does it play the animation
π
still same error
the list is suppose to be in that order
1 being the first thing
2 being the second
and so on
why does it get the loadanimation error then
π
DBD??
yappersville, rsc
:(
?
(i already fixed it all thank you yall)
