MaddyRing
(red_shifty)
January 16, 2025, 11:37am
#1
What do you want to achieve? Keep it simple and clear!
no issue
What is the issue? Include screenshots / videos if possible!
the humanoid.died function on r6 startercharacer ain’t working
i looked for solutions but i didnt see
local char = script.Parent
local event = game:GetService("ReplicatedStorage").Died
char.Humanoid.Died:Connect(function()
event:Fire()
end)
MaddyRing
(red_shifty)
January 16, 2025, 12:15pm
#3
Bindable, startercharacterscripts
(there is another script that when the event is fired it does something but it didnt do something)
sodadrink4
(GreenSoda)
January 16, 2025, 12:17pm
#4
so is it firing the event?
if not, put a print before event:Fire()
for debugging
1 Like
MaddyRing
(red_shifty)
January 16, 2025, 12:17pm
#5
oops accidently made u solution, meant to heart comment
I put a print but didnt work
sodadrink4
(GreenSoda)
January 16, 2025, 12:18pm
#6
print(char.Name)
is it printing ur username?
sodadrink4
(GreenSoda)
January 16, 2025, 12:20pm
#8
local char = script.Parent
print(char.Name)
local event = game:GetService("ReplicatedStorage").Died
char.Humanoid.Died:Connect(function()
event:Fire()
end)
1 Like
MaddyRing
(red_shifty)
January 16, 2025, 12:21pm
#9
nope
Dont work
( if u were wondering its server sided and the other script is also server sided)
What causing?
MaddyRing
(red_shifty)
January 16, 2025, 12:32pm
#10
I definitely found a solution (or not)
sodadrink4
(GreenSoda)
January 16, 2025, 12:33pm
#11
print("test")
local char = script.Parent
local event = game:GetService("ReplicatedStorage").Died
char.Humanoid.Died:Connect(function()
event:Fire()
end)
You can not put server sided scripts in StarterCharacterScripts, only local scripts.
sodadrink4
(GreenSoda)
January 16, 2025, 12:36pm
#13
rlly? i didnt know that
then how does the health script work in ur character
It’s a server script parented to the Humanoid instance. You can check this in playtesting.
sodadrink4
(GreenSoda)
January 16, 2025, 12:37pm
#15
isnt it parented to the character model
I’m not sure. My point is that StarterCharacterScripts and StarterPlayerScripts only accept local scripts.
system
(system)
Closed
January 30, 2025, 12:38pm
#17
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.