So I'm trying to make a thing where it changes a person's nametag to say something if a remote event is fired. My serverside code is as follows:
local revent = game:GetService('ReplicatedStorage').class
local Player = game.Players.LocalPlayer
local function test (Player,classes)
if classes == 1 then
print(Player)
game.Workspace.Player.Humanoid.MaxHealth = 5--Just to test the waters.
end
end
revent.OnServerEvent:Connect(test)
When I run this, I get an error:
Player is not a valid member of Workspace
Please help.
