Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does it say Player is not a valid member of workspace?

Whenever I try this script in-game it says Player is not a valid member of workspace. It doesn't work in studio either. I tried changing the variable Player to Llayer, but it still doesn't work

local config = script.Parent.Configuration

script.Parent.Touched:connect(function(part) if part.Parent and game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then local Llayer = game:GetService('Players'):GetPlayerFromCharacter(part.Parent) if Llayer:GetRankInGroup(config.GroupId.Value) > config.RankId.Value then game.Workspace.Player.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-20.886, 5.01, 133.345)) end end end)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.