How do I reference this in the local variable?

Whats the code for making the pathway for the players’s starter character scripts in a local variable? Im trying to make it so a local script goes into the starter character script folder as its child so it can be be used as an ability when the player presses a gui button, im fairly new to lua coding in roblox so i dont really know this yet

This is the local script for transfering the folder of the chosen ability
Screenshot 2024-07-20 181820

This is the ability folder
Screenshot 2024-07-20 181751

This is where i want the chosen player’s ability to be parented to
Screenshot 2024-07-20 182622

It does seem a bit confusing and i may have not provided enough information for assistance so please tell me if i have done that :pray:

1 Like

If you’re talking about where the StarterCharacterScripts are replicated during runtime, it’s directly to the players character.

So you’ll need to do:

local charscripts = Player.Character or Player.CharacterAdded:Wait()

Ok, thanks for telling me about this, it really helped :+1:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.