Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

give a certain player a starter character script?

Asked by 5 years ago
Edited 5 years ago

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

2 answers

Log in to vote
0
Answered by 5 years ago

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

0
ah ok Bylli_Oruze 38 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 4 years ago

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

0
No what im asking is how to give a certain player that script Bylli_Oruze 38 — 5y
0
OHH! MrOpScripter 81 — 5y
0
is there a way to do that? Bylli_Oruze 38 — 5y
0
yeah MrOpScripter 81 — 5y
View all comments (3 more)
0
yeah MrOpScripter 81 — 5y
0
how? Bylli_Oruze 38 — 4y
0
Read it. MrOpScripter 81 — 4y

Answer this question