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

Why doesn't LoadCharacter() doesn't work in servers?

Asked by
TMGOR 20
6 years ago
Edited 6 years ago
local player = game.Players.LocalPlayer
local cgui = game.StarterGui:WaitForChild("Change Team")


script.Parent.MouseButton1Click:connect (function()
player.TeamColor = BrickColor.new ('Really red')

player:LoadCharacter()

local gear = game.ReplicatedStorage:WaitForChild("RedHyperLaser"):Clone()
gear.Parent = game.Players.LocalPlayer.Backpack
cgui.Enabled = true

end)

In solo, the character reloads but in a server it doesn't

0
Do you have filtering enabled? dukeispie 0 — 6y
2
It's very simple. You can't LoadCharacter from LocalScripts. RubenKan 3615 — 6y
2
And team changes won't replicate to the server, and startergui will copy to playergui,... User#20388 0 — 6y

Answer this question