Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

give a certain player a starter character script?

is there a way to give a certain player a script in their starter character scripts when they join the game?

2 answers

✓ Accepted answer

you need to check if the player exist in the game and if the player exist then put the script into that players backpack

1 comment

0

ah ok

EDITED!

Just like this:

local MyScript = script.Parent
MyScript.Disabled = true

function GiveScript(p)
    local NewScript = MyScript:Clone()
    NewScript.Parent = p.PlayerScripts
    NewScript.Disabled = false
end

GiveScript(--[[Player here, I'll just put myself if I was in the game,]] game.Players["MrOpScripter"])

Please up vote, -MrOpScripter

7 comments

0

No what im asking is how to give a certain player that script

0

OHH!

0

is there a way to do that?

0

yeah

0

yeah

0

how?

0

Read it.

This discussion is preserved as it was. New answers, comments, and votes are closed.