AFriend21
(AFriend21)
#1
I am trying to reset a script that’s outside of starterplayer, as the title says.
The point of the script is for firing bullets, and it stops working after the player dies.
I’ve tried using CharacterAdded, but I’m pretty sure it does not work outside of starterplayer.
Is there another way to reset the script?
Edit: The script is in replicated storage.
When you say it’s outside of starterplayer, where actually is the local script located?
Lleventyate
(Sevtenonuhnder)
#3
my guess is some connections are tied to the previous character, so maybe reconnect those if they are.
AFriend21
(AFriend21)
#4
oh, i forgot to add that to the post, its in replicatedstorage.
AFriend21
(AFriend21)
#5
thats probably why its not working, but i still cant detect when the character respawns, so i dont know when to reconnect them.
xD3vilYT
(astrox)
#6
Can you send a photo of the script?
Pegagittt
(Pegagit)
#7
local resetScript = "Your Script"
local function resetScriptFunction()
resetScript.Enabled = false
resetScript.Enabled = true
end)
resetScriptFunction()
Profiessfo
(Profiessfo)
#8
why not just put the script inside of characterScripts?