SOMEONE IN SCRIPTERS HELPERS SOLVED THIS
“”
– Script → Frame → ScreenGui → PlayerGui → Player
local player = script.Parent.Parent.Parent.Parent
“”
Btw i’m new so I’m not up to speed of how this works
Updated explanation:
I have a zombie spawner which is also inside a text label the script is a server script. I have made an if statement so that if a players string value = 1 then the code runs so I need to get the players variable to run this piece of code
“”
if plr.Map.Value == 1 then
“”
I need to store the players variable. Should I try remote events? Basically I need to get a players variable inside a server/normal script inside a text label which is inside a gui
while true do
wait(1)
script.Parent.Text = "Pick a map"
if plr.Map.Value == 1 then -- I need the players variable to do this
if game.Workspace.Wave.Value == 1 then
-- the rest of my code this is a snipet to show u
-- I know there isn't any ends here
Basically I want to store the players value for example
something like this to get the players variable stored
“”
game.Players.PlayerAdded:Connect(function(plr)
“”
TextLabels cannot be edited by a server script, so you’d have to fire a remote event for the text to show to everyone. Change the script into a local script and access the player by game.Players.LocalPLayer
edit: I withdrawed it. please don’t flood replies like that. it is considered spam.