I'm making a script where when you touch the brick, it will copy itself and put that copy somewhere else. When I do this I get the error "players is not a valid member of DataModel". What does this mean? Here's the script:
Brick = game.Workspace.Part function OnTouched(Part) if game.players:GetPlayerFromCharacter(script.Parent)then clone(Brick, Vector3.new(-33, 6.59, -35)) end end script.Parent.Touched:connect(OnTouched)
Brick = game.Workspace.Part function OnTouched(Part) if game.players:GetPlayerFromCharacter(Part.Parent) then local clone = Brick:Clone() clone.Position = Vector3.new(-33, 6.59, -35) clone.Parent = Workspace end end script.Parent.Touched:connect(OnTouched)