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

Trying to get a script to load a character doesn't work.What's wrong?

Asked by
fdfxd 50
8 years ago

at all

Not even printing

The script is on replicated first

and it is a local script

--Locks the player in the beginning of the match
--By FDFXD Cluster Studios
local player = game.Players.LocalPlayer --To get the player
local character = player.Character --To get the player character
print("working")
print(player.Name)
function start()
    player:LoadCharacter()
end



game.Workspace.FireEvent.Changed:connect(start)

1 answer

Log in to vote
1
Answered by 8 years ago

If F.E is enabled then LoadCharacter() will only work in a Regular Script and not a LocalScript since LoadCharacter() is more Server base then client base.

Ad

Answer this question