#i made a dmg sound script but it aint workin bruv
177 messages · Page 1 of 1 (latest)
there is a error right
ohp is a number
at the bottom where is says ohp = health do humanoid.Health = health
make it print somthing inside the if
why but alright]
when u test
1 sec lemme test
um thats not the output
also in the output
ok then
do this
makes sense
its in server script service tho
but aight sure
aight
gimme a sec
wdym
i guess character
is it just a character in the workspace
no not really
should i remove it then?
its in server script?
where did you get these scripts from bro
i made some of em myself
crouchfix works
disableforcefield works
third one works
sway works
can i see crouch fix
sure
all works except the 2 last ones
(i didnt make the 2 last ones myself)
the other ones i did
alrighty
what is this script suposed to do?
this one blud
thats is supossed to make a sound when you get dmged
Your not even playing the sound
dang how you know
And hes destroying the sound without a delay
thats why its not correct
ik lil bro
local function PlayerAdded(player)
local function CharacterAdded(character)
local function Died()
end
end
character.Humanoid.Died:Connect(Died)
end
player.CharacterAdded:Connect(CharacterAdded)
end
wait
what is this for
crouchfix?
aight less go general
local newSound = sound:Clone
newSound.Parent = char
newSound:Play()
Debris:AddItem(newSound, 3)
oh k
so what now
um
lemme see
scrip
yh
ur mic work
legit delte everything
all the code
first u need players
local players = Game:Getservice("PlayerService")
dont copy paste
justr players
i forgor
then copy that thing i sent
local function PlayerAdded(player)
local function CharacterAdded(character)
local function Died()
end
end
character.Humanoid.Died:Connect(Died)
end
player.CharacterAdded:Connect(CharacterAdded)
end
mb
someone called
now we just need to add a sound to the char
when they are 'added'
put that sound in replicated storage
thats the proper place to put
then we need to get another variable for replicated
like how we did for players
?
next to the last varible
'players
local players = ...
local replicated = ...]
yh
then we just clone the sound when the char is added
parent it to the humanoid
sound.Parent = char.Humanoid
silly billy
sorry what did u say
inside the char added function
yea but
the variable thing is character
so change it to that
bro u cant script at all u need to do more simple things
yh thats fine
thats because the game doesnt know
it will work trust
WE AINT FINSIHED
BRUH
go back to the script
lemme see script
the end on top of char added needs to go
the died function needs to be inside of char added
tbh u dont even need died
where u connect it
other
** You are now Level 17! **