#Stomp people on death
67 messages · Page 1 of 1 (latest)
you don't have to do that
you can just enable the proximity prompt 😅
and have it "just there"
wym by that
oh yea i know that but it will be more easy if it just clone the replicated storage when the person died
bc i will add a script on the proximity prompt that will trigger it so it play an stomp anims
how?
it's literally just a line of code
I don't get your reasoning
I don't see how that would be an issue
it would be easier to just have a proximity prompt in the player
note: is not a great idea to put scripts in objects you should stop doing that when it's convenient for you
literally just a line of code
yes
sadly idk how to do it
what
proximity prompts have a property called Enabled
i know
just toggle it
but to put in player
put it in the humanoidrootpart
but how
oh, on character added
you can leverage the character added event here
when a players character is added just create a proximity prompt
it fires every single time the character spawns
for the proximity prompt enabled i do a server script or a local one
server script
server
to not have to ask that question again
if you do t hat client sided
the server will ignore you
and it'll just be enabled for the player that died
not the rest of the players
99% of the code that runs on the client you write
the server is oblivious to
okey
i got a thing on roblox dev forum
Players.PlayerAdded:Connect(function(player)
local ProximityPrompt = Instance.new("ProximityPrompt")
player.CharacterAdded:Wait()
ProximityPrompt.Parent = player.Character:WaitForChild("HumanoidRootPart")
end)```
local Prox = Instance.new("ProximityPrompt")
-- other changes here like distance
Prox.Parent = character.HumanoidRootPart
tha wont work either
that will only happen once
it does
it will work only once 🙂
when the player respawns
no more prox prompt
a.k.a it wont work
you need to do it on CharacterAdded
so just add the character added event
INSIDE the PlayerAdded you have there
and copy paste the code inside it
that's all you have to do, and it will work properly