How do i make a pathway for this?

I put a local script inside the starterplayscript
Screenshot 2024-09-30 104201
And i made it so after a certain amount time, the script gets enabled ina server script but i dont know how to make a pathway to the starter player script and it says index nil with findfirstchild
Screenshot 2024-09-30 104104


Does anyone know how to make a correct pathway for the starterplayer script

1 Like

I’m not sure but you can easily check while playtesting by searching through the players directory

I tried that but still got the index nil for findfirstchild when i put in playerscripts in the pathway

It should be in Player.PlayerScripts, but if you can’t access it in the server, you could fire a RemoteEvent telling the player(s) to enable it in their own PlayerScripts folders.

-- Server
EnableScriptEvent:FireClient(Player)
-- Client
local Players = game:GetService("Players")
EnableScriptEvent.OnClientEvent:Connect(function()
    Players.LocalPlayer.PlayerScripts:FindFirstChild("PointsHandler").Enabled = true
end)