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

This works in solo but not in server (Start Server And Players) Help?

Asked by 7 years ago
Mn = game.Players.LocalPlayer
Tex1 = script.Parent.Texts.Text1
Tex2 = script.Parent.Texts.Text2
Tex3 = script.Parent.Texts.Text3
Tex4 = script.Parent.Texts.Text4
Pla = Mn.Character.Name
while true do
    wait(0.1)
if game.Players.LocalPlayer.Character.Name == "jack99921" then
    Tex1.Value = "Hello Jack"
    Tex2.Value = "Nice game you got here eh?"
    Tex3.Value = "Remember to finish it"
    Tex4.Value = "Have fun"
else
    Tex1.Value = "Hello, "..Pla
    Tex2.Value = "Welcome to my game"
    Tex3.Value = "Beta tester eh?"
    Tex4.Value = "Hop right in"
end
end

Anyone help?

2 answers

Log in to vote
0
Answered by 7 years ago

Are you using LocalScript? If you aren't try to do it with LocalScript.

Ad
Log in to vote
-1
Answered by 6 years ago
Edited 6 years ago
Mn = game.Players.LocalPlayer
Tex1 = script.Parent.Texts.Text1
Tex2 = script.Parent.Texts.Text2
Tex3 = script.Parent.Texts.Text3
Tex4 = script.Parent.Texts.Text4
Pla = Mn.Character.Name
while true do
    wait(0.1)
if game.Players.LocalPlayer.Character.Name = "jack99921" then --Use this
    Tex1.Value = "Hello Jack"
    Tex2.Value = "Nice game you got here eh?"
    Tex3.Value = "Remember to finish it"
    Tex4.Value = "Have fun"
else
    Tex1.Value = "Hello, "..Pla
    Tex2.Value = "Welcome to my game"
    Tex3.Value = "Beta tester eh?"
    Tex4.Value = "Hop right in"
end
end
0
really bad answer, stop doing that, '=' is for setting a variable, '==' is for testing if values are the same, so you should use '==' User#20388 0 — 6y

Answer this question